10 #define CHANSTRUCT 0x1000L
11 #define RXTXBUF 0x4000L
17 volatile ushort cstart
;
21 volatile ushort istart
;
41 volatile ushort rhigh
;
44 volatile ushort etime
;
45 volatile ushort edelay
;
48 volatile ushort iflag
;
49 volatile ushort oflag
;
50 volatile ushort cflag
;
51 volatile ushort gmask
;
54 volatile ushort delay
;
55 volatile ushort imask
;
56 volatile ushort tflush
;
65 volatile unchar bstat
;
66 volatile unchar tbusy
;
67 volatile unchar iempty
;
69 volatile unchar idata
;
70 volatile unchar eflag
;
72 volatile unchar tflag
;
73 volatile unchar rflag
;
74 volatile unchar xmask
;
76 volatile unchar mstat
;
77 volatile unchar mchange
;
79 volatile unchar lstat
;
81 volatile unchar mtran
;
83 volatile unchar startca
;
84 volatile unchar stopca
;
85 volatile unchar startc
;
86 volatile unchar stopc
;
87 volatile unchar vnext
;
88 volatile unchar hflow
;
90 volatile unchar fillc
;
91 volatile unchar ochar
;
92 volatile unchar omask
;
99 #define SRXLWATER 0xE0
100 #define SRXHWATER 0xE1
103 #define RESUMETX 0xE4
104 #define SAUXONOFFC 0xE6
105 #define SENDBREAK 0xE8
106 #define SETMODEM 0xE9
107 #define SETIFLAGS 0xEA
109 #define STXLWATER 0xEC
111 #define RESUMERX 0xEF
112 #define SETBUFFER 0xF2
113 #define SETCOOKED 0xF3
114 #define SETHFLOW 0xF4
115 #define SETCTRLFLAGS 0xF5
116 #define SETVNEXT 0xF6
119 #define BREAK_IND 0x01
120 #define LOWTX_IND 0x02
121 #define EMPTYTX_IND 0x04
122 #define DATA_IND 0x08
123 #define MODEMCHG_IND 0x20
133 /* These are termios bits as the FEP understands them */
135 /* c_cflag bit meaning */
136 #define FEP_CBAUD 0000017
137 #define FEP_B0 0000000 /* hang up */
138 #define FEP_B50 0000001
139 #define FEP_B75 0000002
140 #define FEP_B110 0000003
141 #define FEP_B134 0000004
142 #define FEP_B150 0000005
143 #define FEP_B200 0000006
144 #define FEP_B300 0000007
145 #define FEP_B600 0000010
146 #define FEP_B1200 0000011
147 #define FEP_B1800 0000012
148 #define FEP_B2400 0000013
149 #define FEP_B4800 0000014
150 #define FEP_B9600 0000015
151 #define FEP_B19200 0000016
152 #define FEP_B38400 0000017
153 #define FEP_EXTA FEP_B19200
154 #define FEP_EXTB FEP_B38400
155 #define FEP_CSIZE 0000060
156 #define FEP_CS5 0000000
157 #define FEP_CS6 0000020
158 #define FEP_CS7 0000040
159 #define FEP_CS8 0000060
160 #define FEP_CSTOPB 0000100
161 #define FEP_CREAD 0000200
162 #define FEP_PARENB 0000400
163 #define FEP_PARODD 0001000
164 #define FEP_HUPCL 0002000
165 #define FEP_CLOCAL 0004000
166 #define FEP_CIBAUD 03600000 /* input baud rate (not used) */
167 #define FEP_CRTSCTS 020000000000 /* flow control */