1 #ifndef __ARCH_ETRAX100_TERMBITS_H__
2 #define __ARCH_ETRAX100_TERMBITS_H__
4 #include <linux/posix_types.h>
6 typedef unsigned char cc_t;
7 typedef unsigned int speed_t;
8 typedef unsigned int tcflag_t;
12 tcflag_t c_iflag; /* input mode flags */
13 tcflag_t c_oflag; /* output mode flags */
14 tcflag_t c_cflag; /* control mode flags */
15 tcflag_t c_lflag; /* local mode flags */
16 cc_t c_line; /* line discipline */
17 cc_t c_cc[NCCS]; /* control characters */
40 #define IGNBRK 0000001
41 #define BRKINT 0000002
42 #define IGNPAR 0000004
43 #define PARMRK 0000010
45 #define ISTRIP 0000040
53 #define IMAXBEL 0020000
61 #define ONLRET 0000040
72 #define TABDLY 0014000
88 /* c_cflag bit meaning */
90 #define B0 0000000 /* hang up */
100 #define B1800 0000012
101 #define B2400 0000013
102 #define B4800 0000014
103 #define B9600 0000015
104 #define B19200 0000016
105 #define B38400 0000017
108 #define CSIZE 0000060
113 #define CSTOPB 0000100
114 #define CREAD 0000200
115 #define PARENB 0000400
116 #define PARODD 0001000
117 #define HUPCL 0002000
118 #define CLOCAL 0004000
119 #define CBAUDEX 0010000
120 #define B57600 0010001
121 #define B115200 0010002
122 #define B230400 0010003
123 #define B460800 0010004
124 /* etrax100 supports these additional three baud rates */
125 #define B921600 0010005
126 #define B1843200 0010006
127 #define B6250000 0010007
128 #define CIBAUD 002003600000 /* input baud rate (not used) */
129 #define CMSPAR 010000000000 /* mark or space (stick) parity, PARODD => mark parity */
130 #define CRTSCTS 020000000000 /* flow control */
134 #define ICANON 0000002
135 #define XCASE 0000004
137 #define ECHOE 0000020
138 #define ECHOK 0000040
139 #define ECHONL 0000100
140 #define NOFLSH 0000200
141 #define TOSTOP 0000400
142 #define ECHOCTL 0001000
143 #define ECHOPRT 0002000
144 #define ECHOKE 0004000
145 #define FLUSHO 0010000
146 #define PENDIN 0040000
147 #define IEXTEN 0100000
149 /* tcflow() and TCXONC use these */
155 /* tcflush() and TCFLSH use these */
160 /* tcsetattr uses these */