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