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_INFO 3
81 #define EPCA_EVENT_HANGUP 1
82 #define EPCA_MAGIC 0x5c6df104L
88 unsigned char boardnum;
89 unsigned char channelnum;
90 unsigned char omodem; /* FEP output modem status */
91 unsigned char imodem; /* FEP input modem status */
92 unsigned char modemfake; /* Modem values to be forced */
93 unsigned char modem; /* Force values */
97 unsigned char m_rts ; /* The bits used in whatever FEP */
98 unsigned char m_dcd ; /* is indiginous to this board to */
99 unsigned char m_dsr ; /* represent each of the physical */
100 unsigned char m_cts ; /* handshake lines */
102 unsigned char m_dtr ;
104 unsigned char startc;
105 unsigned char stopca;
106 unsigned char startca;
107 unsigned char fepstopc;
108 unsigned char fepstartc;
109 unsigned char fepstopca;
110 unsigned char fepstartca;
113 unsigned short fepiflag;
114 unsigned short fepcflag;
115 unsigned short fepoflag;
116 unsigned short txbufhead;
117 unsigned short txbufsize;
118 unsigned short rxbufhead;
119 unsigned short rxbufsize;
123 unsigned long statusflags;
124 unsigned long c_iflag;
125 unsigned long c_cflag;
126 unsigned long c_lflag;
127 unsigned long c_oflag;
128 unsigned char __iomem *txptr;
129 unsigned char __iomem *rxptr;
130 struct board_info *board;
131 struct board_chan __iomem *brdchan;
132 struct digi_struct digiext;
133 struct work_struct tqueue;
134 struct global_data __iomem *mailbox;
139 unsigned char status;
141 unsigned char altpin;
142 unsigned short numports;
144 unsigned long membase;
145 void __iomem *re_map_port;
146 void __iomem *re_map_membase;
147 unsigned long memory_seg;
148 void ( * memwinon ) (struct board_info *, unsigned int) ;
149 void ( * memwinoff ) (struct board_info *, unsigned int) ;
150 void ( * globalwinon ) (struct channel *) ;
151 void ( * txwinon ) (struct channel *) ;
152 void ( * rxwinon ) (struct channel *) ;
153 void ( * memoff ) (struct channel *) ;
154 void ( * assertgwinon ) (struct channel *) ;
155 void ( * assertmemoff ) (struct channel *) ;
156 unsigned char poller_inhibited ;