Portability cleanup as required by Linus.
[linux-2.6/linux-mips.git] / drivers / char / pcxx.h
blob6d7a08b85f87f3007da4f74d9fc18bf19795a1fb
1 #define FEPCODESEG 0x0200L
2 #define FEPCODE 0x2000L
3 #define BIOSCODE 0xf800L
5 #define MISCGLOBAL 0x0C00L
6 #define NPORT 0x0C22L
7 #define MBOX 0x0C40L
8 #define PORTBASE 0x0C90L
10 #define FEPCLR 0x00
11 #define FEPMEM 0x02
12 #define FEPRST 0x04
13 #define FEPINT 0x08
14 #define FEPMASK 0x0e
15 #define FEPWIN 0x80
17 /* Maximum Number of Boards supported */
18 #define MAX_DIGI_BOARDS 4
20 #define PCXX_NUM_TYPES 4
22 #define PCXI 0
23 #define PCXE 1
24 #define PCXEVE 2
25 #define PCXEM 3
27 static char *board_desc[] = {
28 "PC/Xi",
29 "PC/Xe",
30 "PC/Xeve",
31 "PC/Xem",
34 static char *board_mem[] = {
35 "64k",
36 "64k",
37 "8k",
38 "32k",
40 #define STARTC 021
41 #define STOPC 023
42 #define IAIXON 0x2000
45 struct board_info {
46 unchar status;
47 unchar type;
48 unchar altpin;
49 ushort numports;
50 ushort port;
51 ulong membase;
52 ulong memsize;
53 ushort first_minor;
57 #define TXSTOPPED 0x01
58 #define LOWWAIT 0x02
59 #define EMPTYWAIT 0x04
60 #define RXSTOPPED 0x08
61 #define TXBUSY 0x10
63 #define DISABLED 0
64 #define ENABLED 1
65 #define OFF 0
66 #define ON 1
68 #define FEPTIMEOUT 200000
69 #define SERIAL_TYPE_NORMAL 1
70 #define SERIAL_TYPE_CALLOUT 2
71 #define PCXE_EVENT_HANGUP 1
72 #define PCXX_MAGIC 0x5c6df104L
74 struct channel {
75 /* --------- Board/channel information ---------- */
76 long magic;
77 unchar boardnum;
78 unchar channelnum;
79 uint dev;
80 long session;
81 long pgrp;
82 struct tty_struct *tty;
83 struct board_info *board;
84 volatile struct board_chan *brdchan;
85 volatile struct global_data *mailbox;
86 int asyncflags;
87 int count;
88 int blocked_open;
89 int close_delay;
90 int event;
91 wait_queue_head_t open_wait;
92 wait_queue_head_t close_wait;
93 struct tq_struct tqueue;
94 /* ------------ Async control data ------------- */
95 unchar modemfake; /* Modem values to be forced */
96 unchar modem; /* Force values */
97 ulong statusflags;
98 unchar omodem; /* FEP output modem status */
99 unchar imodem; /* FEP input modem status */
100 unchar hflow;
101 unchar dsr;
102 unchar dcd;
103 unchar stopc;
104 unchar startc;
105 unchar stopca;
106 unchar startca;
107 unchar fepstopc;
108 unchar fepstartc;
109 unchar fepstopca;
110 unchar fepstartca;
111 ushort fepiflag;
112 ushort fepcflag;
113 ushort fepoflag;
114 /* ---------- Transmit/receive system ---------- */
115 unchar txwin;
116 unchar rxwin;
117 ushort txbufsize;
118 ushort rxbufsize;
119 unchar *txptr;
120 unchar *rxptr;
121 unchar *tmp_buf; /* Temp buffer */
122 /* ---- Termios data ---- */
123 ulong c_iflag;
124 ulong c_cflag;
125 ulong c_lflag;
126 ulong c_oflag;
127 struct termios normal_termios;
128 struct termios callout_termios;
129 struct digi_struct digiext;
130 ulong dummy[8];