blob: 87d6c8239809c32d61c10396582c7130f5df0921 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_GENERIC_TERMBITS_H
20#define __ASM_GENERIC_TERMBITS_H
Christopher Ferris80ae69d2022-08-02 16:32:21 -070021#include <asm-generic/termbits-common.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070022typedef unsigned int tcflag_t;
23#define NCCS 19
24struct termios {
Tao Baod7db5942015-01-28 10:07:51 -080025 tcflag_t c_iflag;
26 tcflag_t c_oflag;
27 tcflag_t c_cflag;
28 tcflag_t c_lflag;
Tao Baod7db5942015-01-28 10:07:51 -080029 cc_t c_line;
30 cc_t c_cc[NCCS];
Ben Cheng655a7c02013-10-16 16:09:24 -070031};
32struct termios2 {
Tao Baod7db5942015-01-28 10:07:51 -080033 tcflag_t c_iflag;
34 tcflag_t c_oflag;
35 tcflag_t c_cflag;
36 tcflag_t c_lflag;
Tao Baod7db5942015-01-28 10:07:51 -080037 cc_t c_line;
38 cc_t c_cc[NCCS];
39 speed_t c_ispeed;
40 speed_t c_ospeed;
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
42struct ktermios {
Tao Baod7db5942015-01-28 10:07:51 -080043 tcflag_t c_iflag;
44 tcflag_t c_oflag;
Tao Baod7db5942015-01-28 10:07:51 -080045 tcflag_t c_cflag;
46 tcflag_t c_lflag;
47 cc_t c_line;
48 cc_t c_cc[NCCS];
Tao Baod7db5942015-01-28 10:07:51 -080049 speed_t c_ispeed;
50 speed_t c_ospeed;
Ben Cheng655a7c02013-10-16 16:09:24 -070051};
52#define VINTR 0
Ben Cheng655a7c02013-10-16 16:09:24 -070053#define VQUIT 1
54#define VERASE 2
55#define VKILL 3
56#define VEOF 4
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define VTIME 5
58#define VMIN 6
59#define VSWTC 7
60#define VSTART 8
Ben Cheng655a7c02013-10-16 16:09:24 -070061#define VSTOP 9
62#define VSUSP 10
63#define VEOL 11
64#define VREPRINT 12
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define VDISCARD 13
66#define VWERASE 14
67#define VLNEXT 15
68#define VEOL2 16
Christopher Ferris80ae69d2022-08-02 16:32:21 -070069#define IUCLC 0x0200
70#define IXON 0x0400
71#define IXOFF 0x1000
72#define IMAXBEL 0x2000
73#define IUTF8 0x4000
74#define OLCUC 0x00002
75#define ONLCR 0x00004
76#define NLDLY 0x00100
77#define NL0 0x00000
78#define NL1 0x00100
79#define CRDLY 0x00600
80#define CR0 0x00000
81#define CR1 0x00200
82#define CR2 0x00400
83#define CR3 0x00600
84#define TABDLY 0x01800
85#define TAB0 0x00000
86#define TAB1 0x00800
87#define TAB2 0x01000
88#define TAB3 0x01800
89#define XTABS 0x01800
90#define BSDLY 0x02000
91#define BS0 0x00000
92#define BS1 0x02000
93#define VTDLY 0x04000
94#define VT0 0x00000
95#define VT1 0x04000
96#define FFDLY 0x08000
97#define FF0 0x00000
98#define FF1 0x08000
99#define CBAUD 0x0000100f
100#define CSIZE 0x00000030
101#define CS5 0x00000000
102#define CS6 0x00000010
103#define CS7 0x00000020
104#define CS8 0x00000030
105#define CSTOPB 0x00000040
106#define CREAD 0x00000080
107#define PARENB 0x00000100
108#define PARODD 0x00000200
109#define HUPCL 0x00000400
110#define CLOCAL 0x00000800
111#define CBAUDEX 0x00001000
112#define BOTHER 0x00001000
113#define B57600 0x00001001
114#define B115200 0x00001002
115#define B230400 0x00001003
116#define B460800 0x00001004
117#define B500000 0x00001005
118#define B576000 0x00001006
119#define B921600 0x00001007
120#define B1000000 0x00001008
121#define B1152000 0x00001009
122#define B1500000 0x0000100a
123#define B2000000 0x0000100b
124#define B2500000 0x0000100c
125#define B3000000 0x0000100d
126#define B3500000 0x0000100e
127#define B4000000 0x0000100f
128#define CIBAUD 0x100f0000
129#define ISIG 0x00001
130#define ICANON 0x00002
131#define XCASE 0x00004
132#define ECHO 0x00008
133#define ECHOE 0x00010
134#define ECHOK 0x00020
135#define ECHONL 0x00040
136#define NOFLSH 0x00080
137#define TOSTOP 0x00100
138#define ECHOCTL 0x00200
139#define ECHOPRT 0x00400
140#define ECHOKE 0x00800
141#define FLUSHO 0x01000
142#define PENDIN 0x04000
143#define IEXTEN 0x08000
144#define EXTPROC 0x10000
Ben Cheng655a7c02013-10-16 16:09:24 -0700145#define TCSANOW 0
146#define TCSADRAIN 1
147#define TCSAFLUSH 2
148#endif