1 #ifndef __ASM_ARM_TERMBITS_H
2 #define __ASM_ARM_TERMBITS_H
4 typedef unsigned char cc_t
;
5 typedef unsigned int speed_t
;
6 typedef unsigned int tcflag_t
;
10 tcflag_t c_iflag
; /* input mode flags */
11 tcflag_t c_oflag
; /* output mode flags */
12 tcflag_t c_cflag
; /* control mode flags */
13 tcflag_t c_lflag
; /* local mode flags */
14 cc_t c_line
; /* line discipline */
15 cc_t c_cc
[NCCS
]; /* control characters */
19 tcflag_t c_iflag
; /* input mode flags */
20 tcflag_t c_oflag
; /* output mode flags */
21 tcflag_t c_cflag
; /* control mode flags */
22 tcflag_t c_lflag
; /* local mode flags */
23 cc_t c_line
; /* line discipline */
24 cc_t c_cc
[NCCS
]; /* control characters */
25 speed_t c_ispeed
; /* input speed */
26 speed_t c_ospeed
; /* output speed */
50 #define IGNBRK 0000001
51 #define BRKINT 0000002
52 #define IGNPAR 0000004
53 #define PARMRK 0000010
55 #define ISTRIP 0000040
63 #define IMAXBEL 0020000
72 #define ONLRET 0000040
83 #define TABDLY 0014000
99 /* c_cflag bit meaning */
100 #define CBAUD 0010017
101 #define B0 0000000 /* hang up */
110 #define B1200 0000011
111 #define B1800 0000012
112 #define B2400 0000013
113 #define B4800 0000014
114 #define B9600 0000015
115 #define B19200 0000016
116 #define B38400 0000017
119 #define CSIZE 0000060
124 #define CSTOPB 0000100
125 #define CREAD 0000200
126 #define PARENB 0000400
127 #define PARODD 0001000
128 #define HUPCL 0002000
129 #define CLOCAL 0004000
130 #define CBAUDEX 0010000
131 #define B57600 0010001
132 #define B115200 0010002
133 #define B230400 0010003
134 #define B460800 0010004
135 #define B500000 0010005
136 #define B576000 0010006
137 #define B921600 0010007
138 #define B1000000 0010010
139 #define B1152000 0010011
140 #define B1500000 0010012
141 #define B2000000 0010013
142 #define B2500000 0010014
143 #define B3000000 0010015
144 #define B3500000 0010016
145 #define B4000000 0010017
146 #define CIBAUD 002003600000 /* input baud rate (not used) */
147 #define CMSPAR 010000000000 /* mark or space (stick) parity */
148 #define CRTSCTS 020000000000 /* flow control */
152 #define ICANON 0000002
153 #define XCASE 0000004
155 #define ECHOE 0000020
156 #define ECHOK 0000040
157 #define ECHONL 0000100
158 #define NOFLSH 0000200
159 #define TOSTOP 0000400
160 #define ECHOCTL 0001000
161 #define ECHOPRT 0002000
162 #define ECHOKE 0004000
163 #define FLUSHO 0010000
164 #define PENDIN 0040000
165 #define IEXTEN 0100000
167 /* tcflow() and TCXONC use these */
173 /* tcflush() and TCFLSH use these */
178 /* tcsetattr uses these */
183 #endif /* __ASM_ARM_TERMBITS_H */