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 */
38 #define IGNBRK 0000001
39 #define BRKINT 0000002
40 #define IGNPAR 0000004
41 #define PARMRK 0000010
43 #define ISTRIP 0000040
51 #define IMAXBEL 0020000
60 #define ONLRET 0000040
71 #define TABDLY 0014000
87 /* c_cflag bit meaning */
89 #define B0 0000000 /* hang up */
100 #define B2400 0000013
101 #define B4800 0000014
102 #define B9600 0000015
103 #define B19200 0000016
104 #define B38400 0000017
107 #define CSIZE 0000060
112 #define CSTOPB 0000100
113 #define CREAD 0000200
114 #define PARENB 0000400
115 #define PARODD 0001000
116 #define HUPCL 0002000
117 #define CLOCAL 0004000
118 #define CBAUDEX 0010000
119 #define B57600 0010001
120 #define B115200 0010002
121 #define B230400 0010003
122 #define B460800 0010004
123 #define B500000 0010005
124 #define B576000 0010006
125 #define B921600 0010007
126 #define B1000000 0010010
127 #define B1152000 0010011
128 #define B1500000 0010012
129 #define B2000000 0010013
130 #define B2500000 0010014
131 #define B3000000 0010015
132 #define B3500000 0010016
133 #define B4000000 0010017
134 #define CIBAUD 002003600000 /* input baud rate (not used) */
135 #define CMSPAR 010000000000 /* mark or space (stick) parity */
136 #define CRTSCTS 020000000000 /* flow control */
140 #define ICANON 0000002
141 #define XCASE 0000004
143 #define ECHOE 0000020
144 #define ECHOK 0000040
145 #define ECHONL 0000100
146 #define NOFLSH 0000200
147 #define TOSTOP 0000400
148 #define ECHOCTL 0001000
149 #define ECHOPRT 0002000
150 #define ECHOKE 0004000
151 #define FLUSHO 0010000
152 #define PENDIN 0040000
153 #define IEXTEN 0100000
155 /* tcflow() and TCXONC use these */
161 /* tcflush() and TCFLSH use these */
166 /* tcsetattr uses these */
171 #endif /* __ASM_ARM_TERMBITS_H */