Go to the documentation of this file.
17 #define MAX_PCBIT_CARDS 4
26 unsigned short callref;
29 unsigned char layer2link;
31 unsigned short s_refnum;
32 unsigned short r_refnum;
33 unsigned short fsm_state;
42 struct msn_entry *
next;
48 volatile unsigned char __iomem *sh_mem;
57 struct msn_entry *msn_list;
65 unsigned char l2_state;
82 volatile unsigned char __iomem *readptr;
83 volatile unsigned char __iomem *writeptr;
87 unsigned short fsize[8];
90 unsigned char rcv_seq;
91 unsigned char unack_seq;
97 struct pcbit_chan *b1;
98 struct pcbit_chan *b2;
101 #define STATS_TIMER (10 * HZ)
102 #define ERRTIME (HZ / 10)
105 #define MAXBUFSIZE 1534
106 #define MRU MAXBUFSIZE
108 #define STATBUF_LEN 2048
129 #define PCBIT_IOCTL_GETSTAT 0x01
130 #define PCBIT_IOCTL_LWMODE 0x02
131 #define PCBIT_IOCTL_STRLOAD 0x03
132 #define PCBIT_IOCTL_ENDLOAD 0x04
133 #define PCBIT_IOCTL_SETBYTE 0x05
134 #define PCBIT_IOCTL_GETBYTE 0x06
135 #define PCBIT_IOCTL_RUNNING 0x07
136 #define PCBIT_IOCTL_WATCH188 0x08
137 #define PCBIT_IOCTL_PING188 0x09
138 #define PCBIT_IOCTL_FWMODE 0x0A
139 #define PCBIT_IOCTL_STOP 0x0B
140 #define PCBIT_IOCTL_APION 0x0C
144 #define PCBIT_GETSTAT (PCBIT_IOCTL_GETSTAT + IIOCDRVCTL)
145 #define PCBIT_LWMODE (PCBIT_IOCTL_LWMODE + IIOCDRVCTL)
146 #define PCBIT_STRLOAD (PCBIT_IOCTL_STRLOAD + IIOCDRVCTL)
147 #define PCBIT_ENDLOAD (PCBIT_IOCTL_ENDLOAD + IIOCDRVCTL)
148 #define PCBIT_SETBYTE (PCBIT_IOCTL_SETBYTE + IIOCDRVCTL)
149 #define PCBIT_GETBYTE (PCBIT_IOCTL_GETBYTE + IIOCDRVCTL)
150 #define PCBIT_RUNNING (PCBIT_IOCTL_RUNNING + IIOCDRVCTL)
151 #define PCBIT_WATCH188 (PCBIT_IOCTL_WATCH188 + IIOCDRVCTL)
152 #define PCBIT_PING188 (PCBIT_IOCTL_PING188 + IIOCDRVCTL)
153 #define PCBIT_FWMODE (PCBIT_IOCTL_FWMODE + IIOCDRVCTL)
154 #define PCBIT_STOP (PCBIT_IOCTL_STOP + IIOCDRVCTL)
155 #define PCBIT_APION (PCBIT_IOCTL_APION + IIOCDRVCTL)
157 #define MAXSUPERLINE 3000
165 #define L2_STARTING 4
175 unsigned short i,
unsigned short ev,
unsigned short f);