• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*
2   * This file is auto-generated. Modifications will be lost.
3   *
4   * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5   * for more information.
6   */
7  #ifndef __ASM_GENERIC_TERMBITS_H
8  #define __ASM_GENERIC_TERMBITS_H
9  #include <asm-generic/termbits-common.h>
10  typedef unsigned int tcflag_t;
11  #define NCCS 19
12  struct termios {
13    tcflag_t c_iflag;
14    tcflag_t c_oflag;
15    tcflag_t c_cflag;
16    tcflag_t c_lflag;
17    cc_t c_line;
18    cc_t c_cc[NCCS];
19  };
20  struct termios2 {
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    speed_t c_ispeed;
28    speed_t c_ospeed;
29  };
30  struct ktermios {
31    tcflag_t c_iflag;
32    tcflag_t c_oflag;
33    tcflag_t c_cflag;
34    tcflag_t c_lflag;
35    cc_t c_line;
36    cc_t c_cc[NCCS];
37    speed_t c_ispeed;
38    speed_t c_ospeed;
39  };
40  #define VINTR 0
41  #define VQUIT 1
42  #define VERASE 2
43  #define VKILL 3
44  #define VEOF 4
45  #define VTIME 5
46  #define VMIN 6
47  #define VSWTC 7
48  #define VSTART 8
49  #define VSTOP 9
50  #define VSUSP 10
51  #define VEOL 11
52  #define VREPRINT 12
53  #define VDISCARD 13
54  #define VWERASE 14
55  #define VLNEXT 15
56  #define VEOL2 16
57  #define IUCLC 0x0200
58  #define IXON 0x0400
59  #define IXOFF 0x1000
60  #define IMAXBEL 0x2000
61  #define IUTF8 0x4000
62  #define OLCUC 0x00002
63  #define ONLCR 0x00004
64  #define NLDLY 0x00100
65  #define NL0 0x00000
66  #define NL1 0x00100
67  #define CRDLY 0x00600
68  #define CR0 0x00000
69  #define CR1 0x00200
70  #define CR2 0x00400
71  #define CR3 0x00600
72  #define TABDLY 0x01800
73  #define TAB0 0x00000
74  #define TAB1 0x00800
75  #define TAB2 0x01000
76  #define TAB3 0x01800
77  #define XTABS 0x01800
78  #define BSDLY 0x02000
79  #define BS0 0x00000
80  #define BS1 0x02000
81  #define VTDLY 0x04000
82  #define VT0 0x00000
83  #define VT1 0x04000
84  #define FFDLY 0x08000
85  #define FF0 0x00000
86  #define FF1 0x08000
87  #define CBAUD 0x0000100f
88  #define CSIZE 0x00000030
89  #define CS5 0x00000000
90  #define CS6 0x00000010
91  #define CS7 0x00000020
92  #define CS8 0x00000030
93  #define CSTOPB 0x00000040
94  #define CREAD 0x00000080
95  #define PARENB 0x00000100
96  #define PARODD 0x00000200
97  #define HUPCL 0x00000400
98  #define CLOCAL 0x00000800
99  #define CBAUDEX 0x00001000
100  #define BOTHER 0x00001000
101  #define B57600 0x00001001
102  #define B115200 0x00001002
103  #define B230400 0x00001003
104  #define B460800 0x00001004
105  #define B500000 0x00001005
106  #define B576000 0x00001006
107  #define B921600 0x00001007
108  #define B1000000 0x00001008
109  #define B1152000 0x00001009
110  #define B1500000 0x0000100a
111  #define B2000000 0x0000100b
112  #define B2500000 0x0000100c
113  #define B3000000 0x0000100d
114  #define B3500000 0x0000100e
115  #define B4000000 0x0000100f
116  #define CIBAUD 0x100f0000
117  #define ISIG 0x00001
118  #define ICANON 0x00002
119  #define XCASE 0x00004
120  #define ECHO 0x00008
121  #define ECHOE 0x00010
122  #define ECHOK 0x00020
123  #define ECHONL 0x00040
124  #define NOFLSH 0x00080
125  #define TOSTOP 0x00100
126  #define ECHOCTL 0x00200
127  #define ECHOPRT 0x00400
128  #define ECHOKE 0x00800
129  #define FLUSHO 0x01000
130  #define PENDIN 0x04000
131  #define IEXTEN 0x08000
132  #define EXTPROC 0x10000
133  #define TCSANOW 0
134  #define TCSADRAIN 1
135  #define TCSAFLUSH 2
136  #endif
137