4 #define MAX_ALLOC 0x100
7 #define FEPCODESEG 0x0200L
8 #define FEPCODE 0x2000L
9 #define BIOSCODE 0xf800L
11 #define MISCGLOBAL 0x0C00L
14 #define PORTBASE 0x0C90L
16 /* Begin code defines used for epca_setup */
18 #define INVALID_BOARD_TYPE 0x1
19 #define INVALID_NUM_PORTS 0x2
20 #define INVALID_MEM_BASE 0x4
21 #define INVALID_PORT_BASE 0x8
22 #define INVALID_BOARD_STATUS 0x10
23 #define INVALID_ALTPIN 0x20
25 /* End code defines used for epca_setup */
45 #define EPCA_NUM_TYPES 6
48 static char *board_desc
[] =
79 #define FEPTIMEOUT 200000
80 #define SERIAL_TYPE_NORMAL 1
81 #define SERIAL_TYPE_CALLOUT 2
82 #define SERIAL_TYPE_INFO 3
83 #define EPCA_EVENT_HANGUP 1
84 #define EPCA_MAGIC 0x5c6df104L
91 unchar omodem
; /* FEP output modem status */
92 unchar imodem
; /* FEP input modem status */
93 unchar modemfake
; /* Modem values to be forced */
94 unchar modem
; /* Force values */
98 unchar m_rts
; /* The bits used in whatever FEP */
99 unchar m_dcd
; /* is indiginous to this board to */
100 unchar m_dsr
; /* represent each of the physical */
101 unchar m_cts
; /* handshake lines */
137 struct board_info
*board
;
138 volatile struct board_chan
*brdchan
;
139 struct digi_struct digiext
;
140 struct tty_struct
*tty
;
141 struct termios normal_termios
;
142 struct termios callout_termios
;
143 wait_queue_head_t open_wait
;
144 wait_queue_head_t close_wait
;
145 struct tq_struct tqueue
;
146 volatile struct global_data
*mailbox
;
158 unchar
*re_map_membase
;
160 void ( * memwinon
) (struct board_info
*, unsigned int) ;
161 void ( * memwinoff
) (struct board_info
*, unsigned int) ;
162 void ( * globalwinon
) (struct channel
*) ;
163 void ( * txwinon
) (struct channel
*) ;
164 void ( * rxwinon
) (struct channel
*) ;
165 void ( * memoff
) (struct channel
*) ;
166 void ( * assertgwinon
) (struct channel
*) ;
167 void ( * assertmemoff
) (struct channel
*) ;
168 unchar poller_inhibited
;