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