2 * include/asm-xtensa/termbits.h
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
10 * Copyright (C) 2001 - 2005 Tensilica Inc.
13 #ifndef _XTENSA_TERMBITS_H
14 #define _XTENSA_TERMBITS_H
17 #include <linux/posix_types.h>
19 typedef unsigned char cc_t
;
20 typedef unsigned int speed_t
;
21 typedef unsigned int tcflag_t
;
25 tcflag_t c_iflag
; /* input mode flags */
26 tcflag_t c_oflag
; /* output mode flags */
27 tcflag_t c_cflag
; /* control mode flags */
28 tcflag_t c_lflag
; /* local mode flags */
29 cc_t c_line
; /* line discipline */
30 cc_t c_cc
[NCCS
]; /* control characters */
55 #define IGNBRK 0000001
56 #define BRKINT 0000002
57 #define IGNPAR 0000004
58 #define PARMRK 0000010
60 #define ISTRIP 0000040
68 #define IMAXBEL 0020000
78 #define ONLRET 0000040
89 #define TABDLY 0014000
101 #define FFDLY 0100000
105 /* c_cflag bit meaning */
107 #define CBAUD 0010017
108 #define B0 0000000 /* hang up */
117 #define B1200 0000011
118 #define B1800 0000012
119 #define B2400 0000013
120 #define B4800 0000014
121 #define B9600 0000015
122 #define B19200 0000016
123 #define B38400 0000017
126 #define CSIZE 0000060
131 #define CSTOPB 0000100
132 #define CREAD 0000200
133 #define PARENB 0000400
134 #define PARODD 0001000
135 #define HUPCL 0002000
136 #define CLOCAL 0004000
137 #define CBAUDEX 0010000
138 #define B57600 0010001
139 #define B115200 0010002
140 #define B230400 0010003
141 #define B460800 0010004
142 #define B500000 0010005
143 #define B576000 0010006
144 #define B921600 0010007
145 #define B1000000 0010010
146 #define B1152000 0010011
147 #define B1500000 0010012
148 #define B2000000 0010013
149 #define B2500000 0010014
150 #define B3000000 0010015
151 #define B3500000 0010016
152 #define B4000000 0010017
153 #define CIBAUD 002003600000 /* input baud rate (not used) */
154 #define CMSPAR 010000000000 /* mark or space (stick) parity */
155 #define CRTSCTS 020000000000 /* flow control */
160 #define ICANON 0000002
161 #define XCASE 0000004
163 #define ECHOE 0000020
164 #define ECHOK 0000040
165 #define ECHONL 0000100
166 #define NOFLSH 0000200
167 #define TOSTOP 0000400
168 #define ECHOCTL 0001000
169 #define ECHOPRT 0002000
170 #define ECHOKE 0004000
171 #define FLUSHO 0010000
172 #define PENDIN 0040000
173 #define IEXTEN 0100000
175 /* tcflow() and TCXONC use these */
182 /* tcflush() and TCFLSH use these */
188 /* tcsetattr uses these */
194 #endif /* _XTENSA_TERMBITS_H */