0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef _ASM_TERMBITS_H
0012 #define _ASM_TERMBITS_H
0013
0014 #include <asm-generic/termbits-common.h>
0015
0016 typedef unsigned int tcflag_t;
0017
0018
0019
0020
0021
0022 #define NCCS 23
0023 struct termios {
0024 tcflag_t c_iflag;
0025 tcflag_t c_oflag;
0026 tcflag_t c_cflag;
0027 tcflag_t c_lflag;
0028 cc_t c_line;
0029 cc_t c_cc[NCCS];
0030 };
0031
0032 struct termios2 {
0033 tcflag_t c_iflag;
0034 tcflag_t c_oflag;
0035 tcflag_t c_cflag;
0036 tcflag_t c_lflag;
0037 cc_t c_line;
0038 cc_t c_cc[NCCS];
0039 speed_t c_ispeed;
0040 speed_t c_ospeed;
0041 };
0042
0043 struct ktermios {
0044 tcflag_t c_iflag;
0045 tcflag_t c_oflag;
0046 tcflag_t c_cflag;
0047 tcflag_t c_lflag;
0048 cc_t c_line;
0049 cc_t c_cc[NCCS];
0050 speed_t c_ispeed;
0051 speed_t c_ospeed;
0052 };
0053
0054
0055 #define VINTR 0
0056 #define VQUIT 1
0057 #define VERASE 2
0058 #define VKILL 3
0059 #define VMIN 4
0060 #define VTIME 5
0061 #define VEOL2 6
0062 #define VSWTC 7
0063 #define VSWTCH VSWTC
0064 #define VSTART 8
0065 #define VSTOP 9
0066 #define VSUSP 10
0067 #if 0
0068
0069
0070
0071 #define VDSUSP 11
0072 #endif
0073 #define VREPRINT 12
0074 #define VDISCARD 13
0075 #define VWERASE 14
0076 #define VLNEXT 15
0077 #define VEOF 16
0078 #define VEOL 17
0079
0080
0081 #define IUCLC 0x0200
0082 #define IXON 0x0400
0083 #define IXOFF 0x1000
0084 #define IMAXBEL 0x2000
0085 #define IUTF8 0x4000
0086
0087
0088 #define OLCUC 0x00002
0089 #define ONLCR 0x00004
0090 #define NLDLY 0x00100
0091 #define NL0 0x00000
0092 #define NL1 0x00100
0093 #define CRDLY 0x00600
0094 #define CR0 0x00000
0095 #define CR1 0x00200
0096 #define CR2 0x00400
0097 #define CR3 0x00600
0098 #define TABDLY 0x01800
0099 #define TAB0 0x00000
0100 #define TAB1 0x00800
0101 #define TAB2 0x01000
0102 #define TAB3 0x01800
0103 #define XTABS 0x01800
0104 #define BSDLY 0x02000
0105 #define BS0 0x00000
0106 #define BS1 0x02000
0107 #define VTDLY 0x04000
0108 #define VT0 0x00000
0109 #define VT1 0x04000
0110 #define FFDLY 0x08000
0111 #define FF0 0x00000
0112 #define FF1 0x08000
0113
0114
0115
0116
0117
0118
0119 #define CBAUD 0x0000100f
0120 #define CSIZE 0x00000030
0121 #define CS5 0x00000000
0122 #define CS6 0x00000010
0123 #define CS7 0x00000020
0124 #define CS8 0x00000030
0125 #define CSTOPB 0x00000040
0126 #define CREAD 0x00000080
0127 #define PARENB 0x00000100
0128 #define PARODD 0x00000200
0129 #define HUPCL 0x00000400
0130 #define CLOCAL 0x00000800
0131 #define CBAUDEX 0x00001000
0132 #define BOTHER 0x00001000
0133 #define B57600 0x00001001
0134 #define B115200 0x00001002
0135 #define B230400 0x00001003
0136 #define B460800 0x00001004
0137 #define B500000 0x00001005
0138 #define B576000 0x00001006
0139 #define B921600 0x00001007
0140 #define B1000000 0x00001008
0141 #define B1152000 0x00001009
0142 #define B1500000 0x0000100a
0143 #define B2000000 0x0000100b
0144 #define B2500000 0x0000100c
0145 #define B3000000 0x0000100d
0146 #define B3500000 0x0000100e
0147 #define B4000000 0x0000100f
0148 #define CIBAUD 0x100f0000
0149
0150
0151 #define ISIG 0x00001
0152 #define ICANON 0x00002
0153 #define XCASE 0x00004
0154 #define ECHO 0x00008
0155 #define ECHOE 0x00010
0156 #define ECHOK 0x00020
0157 #define ECHONL 0x00040
0158 #define NOFLSH 0x00080
0159 #define IEXTEN 0x00100
0160 #define ECHOCTL 0x00200
0161 #define ECHOPRT 0x00400
0162 #define ECHOKE 0x00800
0163 #define FLUSHO 0x02000
0164 #define PENDIN 0x04000
0165 #define TOSTOP 0x08000
0166 #define ITOSTOP TOSTOP
0167 #define EXTPROC 0x10000
0168
0169
0170 #define TIOCSER_TEMT 0x01
0171
0172
0173 #define TCSANOW TCSETS
0174 #define TCSADRAIN TCSETSW
0175 #define TCSAFLUSH TCSETSF
0176
0177 #endif