Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
isdn.h File Reference
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/major.h>
#include <asm/io.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <linux/wait.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/serial_reg.h>
#include <linux/fcntl.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/ip.h>
#include <linux/in.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/tcp.h>
#include <linux/mutex.h>
#include <uapi/linux/isdn.h>
#include <linux/isdnif.h>

Go to the source code of this file.

Data Structures

struct  isdn_net_phone
 
struct  isdn_net_local_s
 
struct  isdn_net_dev_s
 
struct  atemu
 
struct  modem_info
 
struct  _isdn_modem
 
struct  isdn_v110_stream
 
struct  infostruct
 
struct  _isdn_driver
 
struct  isdn_devt
 

Macros

#define ISDN_TTY_MAJOR   43
 
#define ISDN_TTYAUX_MAJOR   44
 
#define ISDN_MAJOR   45
 
#define ISDN_MINOR_B   0
 
#define ISDN_MINOR_BMAX   (ISDN_MAX_CHANNELS-1)
 
#define ISDN_MINOR_CTRL   64
 
#define ISDN_MINOR_CTRLMAX   (64 + (ISDN_MAX_CHANNELS-1))
 
#define ISDN_MINOR_PPP   128
 
#define ISDN_MINOR_PPPMAX   (128 + (ISDN_MAX_CHANNELS-1))
 
#define ISDN_MINOR_STATUS   255
 
#define ISDN_DRVIOCTL_MASK   0x7f /* Mask for Device-ioctl */
 
#define ISDN_SERVICE_VOICE   1
 
#define ISDN_SERVICE_AB   1<<1
 
#define ISDN_SERVICE_X21   1<<2
 
#define ISDN_SERVICE_G4   1<<3
 
#define ISDN_SERVICE_BTX   1<<4
 
#define ISDN_SERVICE_DFUE   1<<5
 
#define ISDN_SERVICE_X25   1<<6
 
#define ISDN_SERVICE_TTX   1<<7
 
#define ISDN_SERVICE_MIXED   1<<8
 
#define ISDN_SERVICE_FW   1<<9
 
#define ISDN_SERVICE_GTEL   1<<10
 
#define ISDN_SERVICE_BTXN   1<<11
 
#define ISDN_SERVICE_BTEL   1<<12
 
#define USG_NONE(x)   ((x & ISDN_USAGE_MASK)==ISDN_USAGE_NONE)
 
#define USG_RAW(x)   ((x & ISDN_USAGE_MASK)==ISDN_USAGE_RAW)
 
#define USG_MODEM(x)   ((x & ISDN_USAGE_MASK)==ISDN_USAGE_MODEM)
 
#define USG_VOICE(x)   ((x & ISDN_USAGE_MASK)==ISDN_USAGE_VOICE)
 
#define USG_NET(x)   ((x & ISDN_USAGE_MASK)==ISDN_USAGE_NET)
 
#define USG_FAX(x)   ((x & ISDN_USAGE_MASK)==ISDN_USAGE_FAX)
 
#define USG_OUTGOING(x)   ((x & ISDN_USAGE_OUTGOING)==ISDN_USAGE_OUTGOING)
 
#define USG_MODEMORVOICE(x)
 
#define ISDN_TIMER_RES   4 /* Main Timer-Resolution */
 
#define ISDN_TIMER_02SEC   (HZ/ISDN_TIMER_RES/5) /* Slow-Timer1 .2 sec */
 
#define ISDN_TIMER_1SEC   (HZ/ISDN_TIMER_RES) /* Slow-Timer2 1 sec */
 
#define ISDN_TIMER_RINGING   5 /* tty RINGs = ISDN_TIMER_1SEC * this factor */
 
#define ISDN_TIMER_KEEPINT   10 /* Cisco-Keepalive = ISDN_TIMER_1SEC * this factor */
 
#define ISDN_TIMER_MODEMREAD   1
 
#define ISDN_TIMER_MODEMPLUS   2
 
#define ISDN_TIMER_MODEMRING   4
 
#define ISDN_TIMER_MODEMXMIT   8
 
#define ISDN_TIMER_NETDIAL   16
 
#define ISDN_TIMER_NETHANGUP   32
 
#define ISDN_TIMER_CARRIER   256 /* Wait for Carrier */
 
#define ISDN_TIMER_FAST
 
#define ISDN_TIMER_SLOW
 
#define ISDN_TIMER_DTIMEOUT10   (10*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))
 
#define ISDN_TIMER_DTIMEOUT15   (15*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))
 
#define ISDN_TIMER_DTIMEOUT60   (60*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))
 
#define ISDN_GLOBAL_STOPPED   1
 
#define ISDN_NET_CONNECTED   0x01 /* Bound to ISDN-Channel */
 
#define ISDN_NET_SECURE   0x02 /* Accept calls from phonelist only */
 
#define ISDN_NET_CALLBACK   0x04 /* activate callback */
 
#define ISDN_NET_CBHUP   0x08 /* hangup before callback */
 
#define ISDN_NET_CBOUT   0x10 /* remote machine does callback */
 
#define ISDN_NET_MAGIC   0x49344C02 /* for paranoia-checking */
 
#define ISDN_ASYNC_MAGIC   0x49344C01 /* for paranoia-checking */
 
#define ISDN_SERIAL_XMIT_SIZE   1024 /* Default bufsize for write */
 
#define ISDN_SERIAL_XMIT_MAX   4000 /* Maximum bufsize for write */
 
#define ISDN_MODEM_WINSIZE   8
 
#define V110_BUFSIZE   1024
 
#define DRV_FLAG_RUNNING   1
 
#define DRV_FLAG_REJBUS   2
 
#define DRV_FLAG_LOADED   4
 

Typedefs

typedef struct isdn_net_local_s isdn_net_local
 
typedef struct isdn_net_dev_s isdn_net_dev
 
typedef struct atemu atemu
 
typedef struct modem_info modem_info
 
typedef struct _isdn_modem isdn_modem_t
 
typedef struct _isdn_driver isdn_driver_t
 
typedef struct isdn_devt isdn_dev
 

Variables

isdn_devdev
 

Macro Definition Documentation

#define DRV_FLAG_LOADED   4

Definition at line 407 of file isdn.h.

#define DRV_FLAG_REJBUS   2

Definition at line 406 of file isdn.h.

#define DRV_FLAG_RUNNING   1

Definition at line 405 of file isdn.h.

#define ISDN_ASYNC_MAGIC   0x49344C01 /* for paranoia-checking */

Definition at line 269 of file isdn.h.

#define ISDN_DRVIOCTL_MASK   0x7f /* Mask for Device-ioctl */

Definition at line 76 of file isdn.h.

#define ISDN_GLOBAL_STOPPED   1

Definition at line 128 of file isdn.h.

#define ISDN_MAJOR   45

Definition at line 43 of file isdn.h.

#define ISDN_MINOR_B   0

Definition at line 50 of file isdn.h.

#define ISDN_MINOR_BMAX   (ISDN_MAX_CHANNELS-1)

Definition at line 51 of file isdn.h.

#define ISDN_MINOR_CTRL   64

Definition at line 52 of file isdn.h.

#define ISDN_MINOR_CTRLMAX   (64 + (ISDN_MAX_CHANNELS-1))

Definition at line 53 of file isdn.h.

#define ISDN_MINOR_PPP   128

Definition at line 54 of file isdn.h.

#define ISDN_MINOR_PPPMAX   (128 + (ISDN_MAX_CHANNELS-1))

Definition at line 55 of file isdn.h.

#define ISDN_MINOR_STATUS   255

Definition at line 56 of file isdn.h.

#define ISDN_MODEM_WINSIZE   8

Definition at line 359 of file isdn.h.

#define ISDN_NET_CALLBACK   0x04 /* activate callback */

Definition at line 135 of file isdn.h.

#define ISDN_NET_CBHUP   0x08 /* hangup before callback */

Definition at line 136 of file isdn.h.

#define ISDN_NET_CBOUT   0x10 /* remote machine does callback */

Definition at line 137 of file isdn.h.

#define ISDN_NET_CONNECTED   0x01 /* Bound to ISDN-Channel */

Definition at line 133 of file isdn.h.

#define ISDN_NET_MAGIC   0x49344C02 /* for paranoia-checking */

Definition at line 139 of file isdn.h.

#define ISDN_NET_SECURE   0x02 /* Accept calls from phonelist only */

Definition at line 134 of file isdn.h.

#define ISDN_SERIAL_XMIT_MAX   4000 /* Maximum bufsize for write */

Definition at line 271 of file isdn.h.

#define ISDN_SERIAL_XMIT_SIZE   1024 /* Default bufsize for write */

Definition at line 270 of file isdn.h.

#define ISDN_SERVICE_AB   1<<1

Definition at line 80 of file isdn.h.

#define ISDN_SERVICE_BTEL   1<<12

Definition at line 91 of file isdn.h.

#define ISDN_SERVICE_BTX   1<<4

Definition at line 83 of file isdn.h.

#define ISDN_SERVICE_BTXN   1<<11

Definition at line 90 of file isdn.h.

#define ISDN_SERVICE_DFUE   1<<5

Definition at line 84 of file isdn.h.

#define ISDN_SERVICE_FW   1<<9

Definition at line 88 of file isdn.h.

#define ISDN_SERVICE_G4   1<<3

Definition at line 82 of file isdn.h.

#define ISDN_SERVICE_GTEL   1<<10

Definition at line 89 of file isdn.h.

#define ISDN_SERVICE_MIXED   1<<8

Definition at line 87 of file isdn.h.

#define ISDN_SERVICE_TTX   1<<7

Definition at line 86 of file isdn.h.

#define ISDN_SERVICE_VOICE   1

Definition at line 79 of file isdn.h.

#define ISDN_SERVICE_X21   1<<2

Definition at line 81 of file isdn.h.

#define ISDN_SERVICE_X25   1<<6

Definition at line 85 of file isdn.h.

#define ISDN_TIMER_02SEC   (HZ/ISDN_TIMER_RES/5) /* Slow-Timer1 .2 sec */

Definition at line 106 of file isdn.h.

#define ISDN_TIMER_1SEC   (HZ/ISDN_TIMER_RES) /* Slow-Timer2 1 sec */

Definition at line 107 of file isdn.h.

#define ISDN_TIMER_CARRIER   256 /* Wait for Carrier */

Definition at line 116 of file isdn.h.

#define ISDN_TIMER_DTIMEOUT10   (10*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))

Definition at line 123 of file isdn.h.

#define ISDN_TIMER_DTIMEOUT15   (15*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))

Definition at line 124 of file isdn.h.

#define ISDN_TIMER_DTIMEOUT60   (60*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))

Definition at line 125 of file isdn.h.

#define ISDN_TIMER_FAST
Value:
ISDN_TIMER_MODEMXMIT)

Definition at line 117 of file isdn.h.

#define ISDN_TIMER_KEEPINT   10 /* Cisco-Keepalive = ISDN_TIMER_1SEC * this factor */

Definition at line 109 of file isdn.h.

#define ISDN_TIMER_MODEMPLUS   2

Definition at line 111 of file isdn.h.

#define ISDN_TIMER_MODEMREAD   1

Definition at line 110 of file isdn.h.

#define ISDN_TIMER_MODEMRING   4

Definition at line 112 of file isdn.h.

#define ISDN_TIMER_MODEMXMIT   8

Definition at line 113 of file isdn.h.

#define ISDN_TIMER_NETDIAL   16

Definition at line 114 of file isdn.h.

#define ISDN_TIMER_NETHANGUP   32

Definition at line 115 of file isdn.h.

#define ISDN_TIMER_RES   4 /* Main Timer-Resolution */

Definition at line 105 of file isdn.h.

#define ISDN_TIMER_RINGING   5 /* tty RINGs = ISDN_TIMER_1SEC * this factor */

Definition at line 108 of file isdn.h.

#define ISDN_TIMER_SLOW
Value:

Definition at line 119 of file isdn.h.

#define ISDN_TTY_MAJOR   43

Definition at line 41 of file isdn.h.

#define ISDN_TTYAUX_MAJOR   44

Definition at line 42 of file isdn.h.

#define USG_FAX (   x)    ((x & ISDN_USAGE_MASK)==ISDN_USAGE_FAX)

Definition at line 99 of file isdn.h.

#define USG_MODEM (   x)    ((x & ISDN_USAGE_MASK)==ISDN_USAGE_MODEM)

Definition at line 96 of file isdn.h.

#define USG_MODEMORVOICE (   x)
Value:

Definition at line 101 of file isdn.h.

#define USG_NET (   x)    ((x & ISDN_USAGE_MASK)==ISDN_USAGE_NET)

Definition at line 98 of file isdn.h.

#define USG_NONE (   x)    ((x & ISDN_USAGE_MASK)==ISDN_USAGE_NONE)

Definition at line 94 of file isdn.h.

#define USG_OUTGOING (   x)    ((x & ISDN_USAGE_OUTGOING)==ISDN_USAGE_OUTGOING)

Definition at line 100 of file isdn.h.

#define USG_RAW (   x)    ((x & ISDN_USAGE_MASK)==ISDN_USAGE_RAW)

Definition at line 95 of file isdn.h.

#define USG_VOICE (   x)    ((x & ISDN_USAGE_MASK)==ISDN_USAGE_VOICE)

Definition at line 97 of file isdn.h.

#define V110_BUFSIZE   1024

Definition at line 374 of file isdn.h.

Typedef Documentation

typedef struct atemu atemu

Variable Documentation

isdn_dev* dev

Definition at line 296 of file setup.c.