[PATCH] s390: Increase spinlock retry code performance
[linux/fpc-iii.git] / include / asm-xtensa / termbits.h
blobc780593ff5f9080a0cd69dccaca80d2f67f40baa
1 /*
2 * include/asm-xtensa/termbits.h
4 * Copied from SH.
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
8 * for more details.
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;
23 #define NCCS 19
24 struct termios {
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 */
33 /* c_cc characters */
35 #define VINTR 0
36 #define VQUIT 1
37 #define VERASE 2
38 #define VKILL 3
39 #define VEOF 4
40 #define VTIME 5
41 #define VMIN 6
42 #define VSWTC 7
43 #define VSTART 8
44 #define VSTOP 9
45 #define VSUSP 10
46 #define VEOL 11
47 #define VREPRINT 12
48 #define VDISCARD 13
49 #define VWERASE 14
50 #define VLNEXT 15
51 #define VEOL2 16
53 /* c_iflag bits */
55 #define IGNBRK 0000001
56 #define BRKINT 0000002
57 #define IGNPAR 0000004
58 #define PARMRK 0000010
59 #define INPCK 0000020
60 #define ISTRIP 0000040
61 #define INLCR 0000100
62 #define IGNCR 0000200
63 #define ICRNL 0000400
64 #define IUCLC 0001000
65 #define IXON 0002000
66 #define IXANY 0004000
67 #define IXOFF 0010000
68 #define IMAXBEL 0020000
69 #define IUTF8 0040000
71 /* c_oflag bits */
73 #define OPOST 0000001
74 #define OLCUC 0000002
75 #define ONLCR 0000004
76 #define OCRNL 0000010
77 #define ONOCR 0000020
78 #define ONLRET 0000040
79 #define OFILL 0000100
80 #define OFDEL 0000200
81 #define NLDLY 0000400
82 #define NL0 0000000
83 #define NL1 0000400
84 #define CRDLY 0003000
85 #define CR0 0000000
86 #define CR1 0001000
87 #define CR2 0002000
88 #define CR3 0003000
89 #define TABDLY 0014000
90 #define TAB0 0000000
91 #define TAB1 0004000
92 #define TAB2 0010000
93 #define TAB3 0014000
94 #define XTABS 0014000
95 #define BSDLY 0020000
96 #define BS0 0000000
97 #define BS1 0020000
98 #define VTDLY 0040000
99 #define VT0 0000000
100 #define VT1 0040000
101 #define FFDLY 0100000
102 #define FF0 0000000
103 #define FF1 0100000
105 /* c_cflag bit meaning */
107 #define CBAUD 0010017
108 #define B0 0000000 /* hang up */
109 #define B50 0000001
110 #define B75 0000002
111 #define B110 0000003
112 #define B134 0000004
113 #define B150 0000005
114 #define B200 0000006
115 #define B300 0000007
116 #define B600 0000010
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
124 #define EXTA B19200
125 #define EXTB B38400
126 #define CSIZE 0000060
127 #define CS5 0000000
128 #define CS6 0000020
129 #define CS7 0000040
130 #define CS8 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 */
157 /* c_lflag bits */
159 #define ISIG 0000001
160 #define ICANON 0000002
161 #define XCASE 0000004
162 #define ECHO 0000010
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 */
177 #define TCOOFF 0
178 #define TCOON 1
179 #define TCIOFF 2
180 #define TCION 3
182 /* tcflush() and TCFLSH use these */
184 #define TCIFLUSH 0
185 #define TCOFLUSH 1
186 #define TCIOFLUSH 2
188 /* tcsetattr uses these */
190 #define TCSANOW 0
191 #define TCSADRAIN 1
192 #define TCSAFLUSH 2
194 #endif /* _XTENSA_TERMBITS_H */