1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __ASM_GENERIC_TERMBITS_H
3 #define __ASM_GENERIC_TERMBITS_H
5 #include <asm-generic/termbits-common.h>
7 typedef unsigned int tcflag_t;
11 tcflag_t c_iflag; /* input mode flags */
12 tcflag_t c_oflag; /* output mode flags */
13 tcflag_t c_cflag; /* control mode flags */
14 tcflag_t c_lflag; /* local mode flags */
15 cc_t c_line; /* line discipline */
16 cc_t c_cc[NCCS]; /* control characters */
20 tcflag_t c_iflag; /* input mode flags */
21 tcflag_t c_oflag; /* output mode flags */
22 tcflag_t c_cflag; /* control mode flags */
23 tcflag_t c_lflag; /* local mode flags */
24 cc_t c_line; /* line discipline */
25 cc_t c_cc[NCCS]; /* control characters */
26 speed_t c_ispeed; /* input speed */
27 speed_t c_ospeed; /* output speed */
31 tcflag_t c_iflag; /* input mode flags */
32 tcflag_t c_oflag; /* output mode flags */
33 tcflag_t c_cflag; /* control mode flags */
34 tcflag_t c_lflag; /* local mode flags */
35 cc_t c_line; /* line discipline */
36 cc_t c_cc[NCCS]; /* control characters */
37 speed_t c_ispeed; /* input speed */
38 speed_t c_ospeed; /* output speed */
64 #define IMAXBEL 0x2000
78 #define TABDLY 0x01800
94 /* c_cflag bit meaning */
95 #define CBAUD 0x0000100f
96 #define CSIZE 0x00000030
97 #define CS5 0x00000000
98 #define CS6 0x00000010
99 #define CS7 0x00000020
100 #define CS8 0x00000030
101 #define CSTOPB 0x00000040
102 #define CREAD 0x00000080
103 #define PARENB 0x00000100
104 #define PARODD 0x00000200
105 #define HUPCL 0x00000400
106 #define CLOCAL 0x00000800
107 #define CBAUDEX 0x00001000
108 #define BOTHER 0x00001000
109 #define B57600 0x00001001
110 #define B115200 0x00001002
111 #define B230400 0x00001003
112 #define B460800 0x00001004
113 #define B500000 0x00001005
114 #define B576000 0x00001006
115 #define B921600 0x00001007
116 #define B1000000 0x00001008
117 #define B1152000 0x00001009
118 #define B1500000 0x0000100a
119 #define B2000000 0x0000100b
120 #define B2500000 0x0000100c
121 #define B3000000 0x0000100d
122 #define B3500000 0x0000100e
123 #define B4000000 0x0000100f
124 #define CIBAUD 0x100f0000 /* input baud rate */
128 #define ICANON 0x00002
129 #define XCASE 0x00004
131 #define ECHOE 0x00010
132 #define ECHOK 0x00020
133 #define ECHONL 0x00040
134 #define NOFLSH 0x00080
135 #define TOSTOP 0x00100
136 #define ECHOCTL 0x00200
137 #define ECHOPRT 0x00400
138 #define ECHOKE 0x00800
139 #define FLUSHO 0x01000
140 #define PENDIN 0x04000
141 #define IEXTEN 0x08000
142 #define EXTPROC 0x10000
144 /* tcsetattr uses these */
149 #endif /* __ASM_GENERIC_TERMBITS_H */