blob: a913ee3bc76835cfedfd81723e6fbd765a412c8c [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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;
Elliott Hughesabd62612013-11-08 11:45:48 -080023typedef unsigned int speed_t;
24typedef unsigned int tcflag_t;
25#define NCCS 23
26struct termios {
Tao Baod7db5942015-01-28 10:07:51 -080027 tcflag_t c_iflag;
28 tcflag_t c_oflag;
29 tcflag_t c_cflag;
30 tcflag_t c_lflag;
Tao Baod7db5942015-01-28 10:07:51 -080031 cc_t c_line;
32 cc_t c_cc[NCCS];
Elliott Hughesabd62612013-11-08 11:45:48 -080033};
34struct termios2 {
Tao Baod7db5942015-01-28 10:07:51 -080035 tcflag_t c_iflag;
36 tcflag_t c_oflag;
37 tcflag_t c_cflag;
38 tcflag_t c_lflag;
Tao Baod7db5942015-01-28 10:07:51 -080039 cc_t c_line;
40 cc_t c_cc[NCCS];
41 speed_t c_ispeed;
42 speed_t c_ospeed;
Elliott Hughesabd62612013-11-08 11:45:48 -080043};
44struct ktermios {
Tao Baod7db5942015-01-28 10:07:51 -080045 tcflag_t c_iflag;
46 tcflag_t c_oflag;
Tao Baod7db5942015-01-28 10:07:51 -080047 tcflag_t c_cflag;
48 tcflag_t c_lflag;
49 cc_t c_line;
50 cc_t c_cc[NCCS];
Tao Baod7db5942015-01-28 10:07:51 -080051 speed_t c_ispeed;
52 speed_t c_ospeed;
Elliott Hughesabd62612013-11-08 11:45:48 -080053};
54#define VINTR 0
Elliott Hughesabd62612013-11-08 11:45:48 -080055#define VQUIT 1
56#define VERASE 2
57#define VKILL 3
58#define VMIN 4
Elliott Hughesabd62612013-11-08 11:45:48 -080059#define VTIME 5
60#define VEOL2 6
61#define VSWTC 7
62#define VSWTCH VSWTC
Elliott Hughesabd62612013-11-08 11:45:48 -080063#define VSTART 8
64#define VSTOP 9
65#define VSUSP 10
66#define VREPRINT 12
Elliott Hughesabd62612013-11-08 11:45:48 -080067#define VDISCARD 13
68#define VWERASE 14
69#define VLNEXT 15
70#define VEOF 16
Elliott Hughesabd62612013-11-08 11:45:48 -080071#define VEOL 17
72#define IGNBRK 0000001
73#define BRKINT 0000002
74#define IGNPAR 0000004
Elliott Hughesabd62612013-11-08 11:45:48 -080075#define PARMRK 0000010
76#define INPCK 0000020
77#define ISTRIP 0000040
78#define INLCR 0000100
Elliott Hughesabd62612013-11-08 11:45:48 -080079#define IGNCR 0000200
80#define ICRNL 0000400
81#define IUCLC 0001000
82#define IXON 0002000
Elliott Hughesabd62612013-11-08 11:45:48 -080083#define IXANY 0004000
84#define IXOFF 0010000
85#define IMAXBEL 0020000
86#define IUTF8 0040000
Elliott Hughesabd62612013-11-08 11:45:48 -080087#define OPOST 0000001
88#define OLCUC 0000002
89#define ONLCR 0000004
90#define OCRNL 0000010
Elliott Hughesabd62612013-11-08 11:45:48 -080091#define ONOCR 0000020
92#define ONLRET 0000040
93#define OFILL 0000100
94#define OFDEL 0000200
Elliott Hughesabd62612013-11-08 11:45:48 -080095#define NLDLY 0000400
96#define NL0 0000000
97#define NL1 0000400
98#define CRDLY 0003000
Elliott Hughesabd62612013-11-08 11:45:48 -080099#define CR0 0000000
100#define CR1 0001000
101#define CR2 0002000
102#define CR3 0003000
Elliott Hughesabd62612013-11-08 11:45:48 -0800103#define TABDLY 0014000
104#define TAB0 0000000
105#define TAB1 0004000
106#define TAB2 0010000
Elliott Hughesabd62612013-11-08 11:45:48 -0800107#define TAB3 0014000
108#define XTABS 0014000
109#define BSDLY 0020000
110#define BS0 0000000
Elliott Hughesabd62612013-11-08 11:45:48 -0800111#define BS1 0020000
112#define VTDLY 0040000
113#define VT0 0000000
114#define VT1 0040000
Elliott Hughesabd62612013-11-08 11:45:48 -0800115#define FFDLY 0100000
116#define FF0 0000000
117#define FF1 0100000
118#define CBAUD 0010017
Elliott Hughesabd62612013-11-08 11:45:48 -0800119#define B0 0000000
120#define B50 0000001
121#define B75 0000002
122#define B110 0000003
Elliott Hughesabd62612013-11-08 11:45:48 -0800123#define B134 0000004
124#define B150 0000005
125#define B200 0000006
126#define B300 0000007
Elliott Hughesabd62612013-11-08 11:45:48 -0800127#define B600 0000010
128#define B1200 0000011
129#define B1800 0000012
130#define B2400 0000013
Elliott Hughesabd62612013-11-08 11:45:48 -0800131#define B4800 0000014
132#define B9600 0000015
133#define B19200 0000016
134#define B38400 0000017
Elliott Hughesabd62612013-11-08 11:45:48 -0800135#define EXTA B19200
136#define EXTB B38400
137#define CSIZE 0000060
138#define CS5 0000000
Elliott Hughesabd62612013-11-08 11:45:48 -0800139#define CS6 0000020
140#define CS7 0000040
141#define CS8 0000060
142#define CSTOPB 0000100
Elliott Hughesabd62612013-11-08 11:45:48 -0800143#define CREAD 0000200
144#define PARENB 0000400
145#define PARODD 0001000
146#define HUPCL 0002000
Elliott Hughesabd62612013-11-08 11:45:48 -0800147#define CLOCAL 0004000
148#define CBAUDEX 0010000
149#define BOTHER 0010000
150#define B57600 0010001
Elliott Hughesabd62612013-11-08 11:45:48 -0800151#define B115200 0010002
152#define B230400 0010003
153#define B460800 0010004
154#define B500000 0010005
Elliott Hughesabd62612013-11-08 11:45:48 -0800155#define B576000 0010006
156#define B921600 0010007
157#define B1000000 0010010
158#define B1152000 0010011
Elliott Hughesabd62612013-11-08 11:45:48 -0800159#define B1500000 0010012
160#define B2000000 0010013
161#define B2500000 0010014
162#define B3000000 0010015
Elliott Hughesabd62612013-11-08 11:45:48 -0800163#define B3500000 0010016
164#define B4000000 0010017
165#define CIBAUD 002003600000
166#define CMSPAR 010000000000
Elliott Hughesabd62612013-11-08 11:45:48 -0800167#define CRTSCTS 020000000000
168#define IBSHIFT 16
169#define ISIG 0000001
170#define ICANON 0000002
Elliott Hughesabd62612013-11-08 11:45:48 -0800171#define XCASE 0000004
172#define ECHO 0000010
173#define ECHOE 0000020
174#define ECHOK 0000040
Elliott Hughesabd62612013-11-08 11:45:48 -0800175#define ECHONL 0000100
176#define NOFLSH 0000200
177#define IEXTEN 0000400
178#define ECHOCTL 0001000
Elliott Hughesabd62612013-11-08 11:45:48 -0800179#define ECHOPRT 0002000
180#define ECHOKE 0004000
181#define FLUSHO 0020000
182#define PENDIN 0040000
Elliott Hughesabd62612013-11-08 11:45:48 -0800183#define TOSTOP 0100000
184#define ITOSTOP TOSTOP
185#define EXTPROC 0200000
186#define TIOCSER_TEMT 0x01
Elliott Hughesabd62612013-11-08 11:45:48 -0800187#define TCOOFF 0
188#define TCOON 1
189#define TCIOFF 2
190#define TCION 3
Elliott Hughesabd62612013-11-08 11:45:48 -0800191#define TCIFLUSH 0
192#define TCOFLUSH 1
193#define TCIOFLUSH 2
194#define TCSANOW TCSETS
Elliott Hughesabd62612013-11-08 11:45:48 -0800195#define TCSADRAIN TCSETSW
196#define TCSAFLUSH TCSETSF
197#endif