blob: cf6eb10a9cae990c6d6b5d9c56a56f80264f40d5 [file] [log] [blame]
Raghu Gandham82fa43f2012-03-27 11:37:17 -07001/****************************************************************************
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};
Elliott Hughesc95eb572013-01-29 18:15:55 -080062#define VINTR 0
Raghu Gandham82fa43f2012-03-27 11:37:17 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080064#define VQUIT 1
65#define VERASE 2
66#define VKILL 3
67#define VMIN 4
Raghu Gandham82fa43f2012-03-27 11:37:17 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080069#define VTIME 5
70#define VEOL2 6
71#define VSWTC 7
Raghu Gandham82fa43f2012-03-27 11:37:17 -070072#define VSWTCH VSWTC
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080074#define VSTART 8
75#define VSTOP 9
76#define VSUSP 10
77#define VREPRINT 12
Raghu Gandham82fa43f2012-03-27 11:37:17 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080079#define VDISCARD 13
80#define VWERASE 14
81#define VLNEXT 15
82#define VEOF 16
Raghu Gandham82fa43f2012-03-27 11:37:17 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080084#define VEOL 17
85#define IGNBRK 0000001
86#define BRKINT 0000002
87#define IGNPAR 0000004
Raghu Gandham82fa43f2012-03-27 11:37:17 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080089#define PARMRK 0000010
90#define INPCK 0000020
91#define ISTRIP 0000040
92#define INLCR 0000100
Raghu Gandham82fa43f2012-03-27 11:37:17 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080094#define IGNCR 0000200
95#define ICRNL 0000400
96#define IUCLC 0001000
97#define IXON 0002000
Raghu Gandham82fa43f2012-03-27 11:37:17 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080099#define IXANY 0004000
100#define IXOFF 0010000
101#define IMAXBEL 0020000
102#define IUTF8 0040000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800104#define OPOST 0000001
105#define OLCUC 0000002
106#define ONLCR 0000004
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700107#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 */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800144#define B0 0000000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700145#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
Elliott Hughesc95eb572013-01-29 18:15:55 -0800166#define CSIZE 0000060
167#define CS5 0000000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800169#define CS6 0000020
170#define CS7 0000040
171#define CS8 0000060
172#define CSTOPB 0000100
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800174#define CREAD 0000200
175#define PARENB 0000400
176#define PARODD 0001000
177#define HUPCL 0002000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800179#define CLOCAL 0004000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700180#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
Elliott Hughesc95eb572013-01-29 18:15:55 -0800201#define CIBAUD 002003600000
202#define CMSPAR 010000000000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800204#define CRTSCTS 020000000000
205#define IBSHIFT 16
206#define ISIG 0000001
207#define ICANON 0000002
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209#define XCASE 0000004
Elliott Hughesc95eb572013-01-29 18:15:55 -0800210#define ECHO 0000010
211#define ECHOE 0000020
212#define ECHOK 0000040
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800214#define ECHONL 0000100
215#define NOFLSH 0000200
216#define IEXTEN 0000400
217#define ECHOCTL 0001000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800219#define ECHOPRT 0002000
220#define ECHOKE 0004000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700221#define FLUSHO 0020000
Elliott Hughesc95eb572013-01-29 18:15:55 -0800222#define PENDIN 0040000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800224#define TOSTOP 0100000
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700225#define ITOSTOP TOSTOP
Elliott Hughesc95eb572013-01-29 18:15:55 -0800226#define TIOCSER_TEMT 0x01
227#define TCOOFF 0
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800229#define TCOON 1
230#define TCIOFF 2
231#define TCION 3
232#define TCIFLUSH 0
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800234#define TCOFLUSH 1
235#define TCIOFLUSH 2
236#define TCSANOW TCSETS
237#define TCSADRAIN TCSETSW
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -0800239#define TCSAFLUSH TCSETSF
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700240#endif