• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>
22 typedef unsigned char cc_t;
23 typedef unsigned int speed_t;
24 typedef unsigned int tcflag_t;
25 #define NCCS 23
26 struct termios {
27   tcflag_t c_iflag;
28   tcflag_t c_oflag;
29   tcflag_t c_cflag;
30   tcflag_t c_lflag;
31   cc_t c_line;
32   cc_t c_cc[NCCS];
33 };
34 struct termios2 {
35   tcflag_t c_iflag;
36   tcflag_t c_oflag;
37   tcflag_t c_cflag;
38   tcflag_t c_lflag;
39   cc_t c_line;
40   cc_t c_cc[NCCS];
41   speed_t c_ispeed;
42   speed_t c_ospeed;
43 };
44 struct ktermios {
45   tcflag_t c_iflag;
46   tcflag_t c_oflag;
47   tcflag_t c_cflag;
48   tcflag_t c_lflag;
49   cc_t c_line;
50   cc_t c_cc[NCCS];
51   speed_t c_ispeed;
52   speed_t c_ospeed;
53 };
54 #define VINTR 0
55 #define VQUIT 1
56 #define VERASE 2
57 #define VKILL 3
58 #define VMIN 4
59 #define VTIME 5
60 #define VEOL2 6
61 #define VSWTC 7
62 #define VSWTCH VSWTC
63 #define VSTART 8
64 #define VSTOP 9
65 #define VSUSP 10
66 #define VREPRINT 12
67 #define VDISCARD 13
68 #define VWERASE 14
69 #define VLNEXT 15
70 #define VEOF 16
71 #define VEOL 17
72 #define IGNBRK 0000001
73 #define BRKINT 0000002
74 #define IGNPAR 0000004
75 #define PARMRK 0000010
76 #define INPCK 0000020
77 #define ISTRIP 0000040
78 #define INLCR 0000100
79 #define IGNCR 0000200
80 #define ICRNL 0000400
81 #define IUCLC 0001000
82 #define IXON 0002000
83 #define IXANY 0004000
84 #define IXOFF 0010000
85 #define IMAXBEL 0020000
86 #define IUTF8 0040000
87 #define OPOST 0000001
88 #define OLCUC 0000002
89 #define ONLCR 0000004
90 #define OCRNL 0000010
91 #define ONOCR 0000020
92 #define ONLRET 0000040
93 #define OFILL 0000100
94 #define OFDEL 0000200
95 #define NLDLY 0000400
96 #define NL0 0000000
97 #define NL1 0000400
98 #define CRDLY 0003000
99 #define CR0 0000000
100 #define CR1 0001000
101 #define CR2 0002000
102 #define CR3 0003000
103 #define TABDLY 0014000
104 #define TAB0 0000000
105 #define TAB1 0004000
106 #define TAB2 0010000
107 #define TAB3 0014000
108 #define XTABS 0014000
109 #define BSDLY 0020000
110 #define BS0 0000000
111 #define BS1 0020000
112 #define VTDLY 0040000
113 #define VT0 0000000
114 #define VT1 0040000
115 #define FFDLY 0100000
116 #define FF0 0000000
117 #define FF1 0100000
118 #define CBAUD 0010017
119 #define B0 0000000
120 #define B50 0000001
121 #define B75 0000002
122 #define B110 0000003
123 #define B134 0000004
124 #define B150 0000005
125 #define B200 0000006
126 #define B300 0000007
127 #define B600 0000010
128 #define B1200 0000011
129 #define B1800 0000012
130 #define B2400 0000013
131 #define B4800 0000014
132 #define B9600 0000015
133 #define B19200 0000016
134 #define B38400 0000017
135 #define EXTA B19200
136 #define EXTB B38400
137 #define CSIZE 0000060
138 #define CS5 0000000
139 #define CS6 0000020
140 #define CS7 0000040
141 #define CS8 0000060
142 #define CSTOPB 0000100
143 #define CREAD 0000200
144 #define PARENB 0000400
145 #define PARODD 0001000
146 #define HUPCL 0002000
147 #define CLOCAL 0004000
148 #define CBAUDEX 0010000
149 #define BOTHER 0010000
150 #define B57600 0010001
151 #define B115200 0010002
152 #define B230400 0010003
153 #define B460800 0010004
154 #define B500000 0010005
155 #define B576000 0010006
156 #define B921600 0010007
157 #define B1000000 0010010
158 #define B1152000 0010011
159 #define B1500000 0010012
160 #define B2000000 0010013
161 #define B2500000 0010014
162 #define B3000000 0010015
163 #define B3500000 0010016
164 #define B4000000 0010017
165 #define CIBAUD 002003600000
166 #define CMSPAR 010000000000
167 #define CRTSCTS 020000000000
168 #define IBSHIFT 16
169 #define ISIG 0000001
170 #define ICANON 0000002
171 #define XCASE 0000004
172 #define ECHO 0000010
173 #define ECHOE 0000020
174 #define ECHOK 0000040
175 #define ECHONL 0000100
176 #define NOFLSH 0000200
177 #define IEXTEN 0000400
178 #define ECHOCTL 0001000
179 #define ECHOPRT 0002000
180 #define ECHOKE 0004000
181 #define FLUSHO 0020000
182 #define PENDIN 0040000
183 #define TOSTOP 0100000
184 #define ITOSTOP TOSTOP
185 #define EXTPROC 0200000
186 #define TIOCSER_TEMT 0x01
187 #define TCOOFF 0
188 #define TCOON 1
189 #define TCIOFF 2
190 #define TCION 3
191 #define TCIFLUSH 0
192 #define TCOFLUSH 1
193 #define TCIOFLUSH 2
194 #define TCSANOW TCSETS
195 #define TCSADRAIN TCSETSW
196 #define TCSAFLUSH TCSETSF
197 #endif
198