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_TERMBITS_H
20#define _ASM_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 23
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 VMIN 4
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define VTIME 5
70#define VEOL2 6
71#define VSWTC 7
72#define VSWTCH VSWTC
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define VSTART 8
75#define VSTOP 9
76#define VSUSP 10
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 VEOF 16
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define VEOL 17
85#define IGNBRK 0000001
86#define BRKINT 0000002
87#define IGNPAR 0000004
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define PARMRK 0000010
90#define INPCK 0000020
91#define ISTRIP 0000040
92#define INLCR 0000100
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define IGNCR 0000200
95#define ICRNL 0000400
96#define IUCLC 0001000
97#define IXON 0002000
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define IXANY 0004000
100#define IXOFF 0010000
101#define IMAXBEL 0020000
102#define IUTF8 0040000
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define OPOST 0000001
105#define OLCUC 0000002
106#define ONLCR 0000004
107#define OCRNL 0000010
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define ONOCR 0000020
110#define ONLRET 0000040
111#define OFILL 0000100
112#define OFDEL 0000200
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define NLDLY 0000400
115#define NL0 0000000
116#define NL1 0000400
117#define CRDLY 0003000
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define CR0 0000000
120#define CR1 0001000
121#define CR2 0002000
122#define CR3 0003000
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define TABDLY 0014000
125#define TAB0 0000000
126#define TAB1 0004000
127#define TAB2 0010000
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define TAB3 0014000
130#define XTABS 0014000
131#define BSDLY 0020000
132#define BS0 0000000
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define BS1 0020000
135#define VTDLY 0040000
136#define VT0 0000000
137#define VT1 0040000
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#define FFDLY 0100000
140#define FF0 0000000
141#define FF1 0100000
142#define CBAUD 0010017
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144#define B0 0000000
145#define B50 0000001
146#define B75 0000002
147#define B110 0000003
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149#define B134 0000004
150#define B150 0000005
151#define B200 0000006
152#define B300 0000007
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154#define B600 0000010
155#define B1200 0000011
156#define B1800 0000012
157#define B2400 0000013
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159#define B4800 0000014
160#define B9600 0000015
161#define B19200 0000016
162#define B38400 0000017
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164#define EXTA B19200
165#define EXTB B38400
166#define CSIZE 0000060
167#define CS5 0000000
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169#define CS6 0000020
170#define CS7 0000040
171#define CS8 0000060
172#define CSTOPB 0000100
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174#define CREAD 0000200
175#define PARENB 0000400
176#define PARODD 0001000
177#define HUPCL 0002000
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179#define CLOCAL 0004000
180#define CBAUDEX 0010000
181#define BOTHER 0010000
182#define B57600 0010001
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define B115200 0010002
185#define B230400 0010003
186#define B460800 0010004
187#define B500000 0010005
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189#define B576000 0010006
190#define B921600 0010007
191#define B1000000 0010010
192#define B1152000 0010011
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194#define B1500000 0010012
195#define B2000000 0010013
196#define B2500000 0010014
197#define B3000000 0010015
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199#define B3500000 0010016
200#define B4000000 0010017
201#define CIBAUD 002003600000
202#define CMSPAR 010000000000
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204#define CRTSCTS 020000000000
205#define IBSHIFT 16
206#define ISIG 0000001
207#define ICANON 0000002
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209#define XCASE 0000004
210#define ECHO 0000010
211#define ECHOE 0000020
212#define ECHOK 0000040
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214#define ECHONL 0000100
215#define NOFLSH 0000200
216#define IEXTEN 0000400
217#define ECHOCTL 0001000
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219#define ECHOPRT 0002000
220#define ECHOKE 0004000
221#define FLUSHO 0020000
222#define PENDIN 0040000
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224#define TOSTOP 0100000
225#define ITOSTOP TOSTOP
226#define TIOCSER_TEMT 0x01
227#define TCOOFF 0
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229#define TCOON 1
230#define TCIOFF 2
231#define TCION 3
232#define TCIFLUSH 0
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234#define TCOFLUSH 1
235#define TCIOFLUSH 2
236#define TCSANOW TCSETS
237#define TCSADRAIN TCSETSW
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239#define TCSAFLUSH TCSETSF
240#endif
241