termbits.h revision 0523af7ca2f475ad6bcb5543e5c52cc6836d9457
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_X86_TERMBITS_H
20#define _ASM_X86_TERMBITS_H
21#include <linux/posix_types.h>
22typedef unsigned char cc_t;
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24typedef unsigned int speed_t;
25typedef unsigned int tcflag_t;
26#define NCCS 19
27struct termios {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 tcflag_t c_iflag;
30 tcflag_t c_oflag;
31 tcflag_t c_cflag;
32 tcflag_t c_lflag;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 cc_t c_line;
35 cc_t c_cc[NCCS];
36};
37struct termios2 {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 tcflag_t c_iflag;
40 tcflag_t c_oflag;
41 tcflag_t c_cflag;
42 tcflag_t c_lflag;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 cc_t c_line;
45 cc_t c_cc[NCCS];
46 speed_t c_ispeed;
47 speed_t c_ospeed;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49};
50struct ktermios {
51 tcflag_t c_iflag;
52 tcflag_t c_oflag;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 tcflag_t c_cflag;
55 tcflag_t c_lflag;
56 cc_t c_line;
57 cc_t c_cc[NCCS];
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 speed_t c_ispeed;
60 speed_t c_ospeed;
61};
62#define VINTR 0
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define VQUIT 1
65#define VERASE 2
66#define VKILL 3
67#define VEOF 4
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define VTIME 5
70#define VMIN 6
71#define VSWTC 7
72#define VSTART 8
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define VSTOP 9
75#define VSUSP 10
76#define VEOL 11
77#define VREPRINT 12
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define VDISCARD 13
80#define VWERASE 14
81#define VLNEXT 15
82#define VEOL2 16
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define IGNBRK 0000001
85#define BRKINT 0000002
86#define IGNPAR 0000004
87#define PARMRK 0000010
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define INPCK 0000020
90#define ISTRIP 0000040
91#define INLCR 0000100
92#define IGNCR 0000200
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define ICRNL 0000400
95#define IUCLC 0001000
96#define IXON 0002000
97#define IXANY 0004000
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define IXOFF 0010000
100#define IMAXBEL 0020000
101#define IUTF8 0040000
102#define OPOST 0000001
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define OLCUC 0000002
105#define ONLCR 0000004
106#define OCRNL 0000010
107#define ONOCR 0000020
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define ONLRET 0000040
110#define OFILL 0000100
111#define OFDEL 0000200
112#define NLDLY 0000400
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define NL0 0000000
115#define NL1 0000400
116#define CRDLY 0003000
117#define CR0 0000000
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define CR1 0001000
120#define CR2 0002000
121#define CR3 0003000
122#define TABDLY 0014000
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define TAB0 0000000
125#define TAB1 0004000
126#define TAB2 0010000
127#define TAB3 0014000
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define XTABS 0014000
130#define BSDLY 0020000
131#define BS0 0000000
132#define BS1 0020000
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define VTDLY 0040000
135#define VT0 0000000
136#define VT1 0040000
137#define FFDLY 0100000
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#define FF0 0000000
140#define FF1 0100000
141#define CBAUD 0010017
142#define B0 0000000
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144#define B50 0000001
145#define B75 0000002
146#define B110 0000003
147#define B134 0000004
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149#define B150 0000005
150#define B200 0000006
151#define B300 0000007
152#define B600 0000010
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154#define B1200 0000011
155#define B1800 0000012
156#define B2400 0000013
157#define B4800 0000014
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159#define B9600 0000015
160#define B19200 0000016
161#define B38400 0000017
162#define EXTA B19200
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164#define EXTB B38400
165#define CSIZE 0000060
166#define CS5 0000000
167#define CS6 0000020
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169#define CS7 0000040
170#define CS8 0000060
171#define CSTOPB 0000100
172#define CREAD 0000200
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174#define PARENB 0000400
175#define PARODD 0001000
176#define HUPCL 0002000
177#define CLOCAL 0004000
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179#define CBAUDEX 0010000
180#define BOTHER 0010000
181#define B57600 0010001
182#define B115200 0010002
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define B230400 0010003
185#define B460800 0010004
186#define B500000 0010005
187#define B576000 0010006
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189#define B921600 0010007
190#define B1000000 0010010
191#define B1152000 0010011
192#define B1500000 0010012
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194#define B2000000 0010013
195#define B2500000 0010014
196#define B3000000 0010015
197#define B3500000 0010016
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199#define B4000000 0010017
200#define CIBAUD 002003600000
201#define CMSPAR 010000000000
202#define CRTSCTS 020000000000
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204#define IBSHIFT 16
205#define ISIG 0000001
206#define ICANON 0000002
207#define XCASE 0000004
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209#define ECHO 0000010
210#define ECHOE 0000020
211#define ECHOK 0000040
212#define ECHONL 0000100
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214#define NOFLSH 0000200
215#define TOSTOP 0000400
216#define ECHOCTL 0001000
217#define ECHOPRT 0002000
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219#define ECHOKE 0004000
220#define FLUSHO 0010000
221#define PENDIN 0040000
222#define IEXTEN 0100000
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224#define TCOOFF 0
225#define TCOON 1
226#define TCIOFF 2
227#define TCION 3
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229#define TCIFLUSH 0
230#define TCOFLUSH 1
231#define TCIOFLUSH 2
232#define TCSANOW 0
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234#define TCSADRAIN 1
235#define TCSAFLUSH 2
236#endif
237