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