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