00001
00002
00003 #define TARGET_NCCS 19
00004
00005 struct target_termios {
00006 unsigned int c_iflag;
00007 unsigned int c_oflag;
00008 unsigned int c_cflag;
00009 unsigned int c_lflag;
00010 unsigned char c_line;
00011 unsigned char c_cc[TARGET_NCCS];
00012 };
00013
00014
00015 #define TARGET_VINTR 0
00016 #define TARGET_VQUIT 1
00017 #define TARGET_VERASE 2
00018 #define TARGET_VKILL 3
00019 #define TARGET_VEOF 4
00020 #define TARGET_VEOL 5
00021 #define TARGET_VEOL2 6
00022 #define TARGET_VSWTC 7
00023 #define TARGET_VSTART 8
00024 #define TARGET_VSTOP 9
00025
00026 #define TARGET_VSUSP 10
00027 #define TARGET_VDSUSP 11
00028 #define TARGET_VREPRINT 12
00029 #define TARGET_VDISCARD 13
00030 #define TARGET_VWERASE 14
00031 #define TARGET_VLNEXT 15
00032
00033
00034
00035
00036 #define TARGET_VMIN TARGET_VEOF
00037 #define TARGET_VTIME TARGET_VEOL
00038
00039
00040 #define TARGET_IGNBRK 0x00000001
00041 #define TARGET_BRKINT 0x00000002
00042 #define TARGET_IGNPAR 0x00000004
00043 #define TARGET_PARMRK 0x00000008
00044 #define TARGET_INPCK 0x00000010
00045 #define TARGET_ISTRIP 0x00000020
00046 #define TARGET_INLCR 0x00000040
00047 #define TARGET_IGNCR 0x00000080
00048 #define TARGET_ICRNL 0x00000100
00049 #define TARGET_IUCLC 0x00000200
00050 #define TARGET_IXON 0x00000400
00051 #define TARGET_IXANY 0x00000800
00052 #define TARGET_IXOFF 0x00001000
00053 #define TARGET_IMAXBEL 0x00002000
00054 #define TARGET_IUTF8 0x00004000
00055
00056
00057 #define TARGET_OPOST 0x00000001
00058 #define TARGET_OLCUC 0x00000002
00059 #define TARGET_ONLCR 0x00000004
00060 #define TARGET_OCRNL 0x00000008
00061 #define TARGET_ONOCR 0x00000010
00062 #define TARGET_ONLRET 0x00000020
00063 #define TARGET_OFILL 0x00000040
00064 #define TARGET_OFDEL 0x00000080
00065 #define TARGET_NLDLY 0x00000100
00066 #define TARGET_NL0 0x00000000
00067 #define TARGET_NL1 0x00000100
00068 #define TARGET_CRDLY 0x00000600
00069 #define TARGET_CR0 0x00000000
00070 #define TARGET_CR1 0x00000200
00071 #define TARGET_CR2 0x00000400
00072 #define TARGET_CR3 0x00000600
00073 #define TARGET_TABDLY 0x00001800
00074 #define TARGET_TAB0 0x00000000
00075 #define TARGET_TAB1 0x00000800
00076 #define TARGET_TAB2 0x00001000
00077 #define TARGET_TAB3 0x00001800
00078 #define TARGET_XTABS 0x00001800
00079 #define TARGET_BSDLY 0x00002000
00080 #define TARGET_BS0 0x00000000
00081 #define TARGET_BS1 0x00002000
00082 #define TARGET_VTDLY 0x00004000
00083 #define TARGET_VT0 0x00000000
00084 #define TARGET_VT1 0x00004000
00085 #define TARGET_FFDLY 0x00008000
00086 #define TARGET_FF0 0x00000000
00087 #define TARGET_FF1 0x00008000
00088 #define TARGET_PAGEOUT 0x00010000
00089 #define TARGET_WRAP 0x00020000
00090
00091
00092 #define TARGET_CBAUD 0x0000100f
00093 #define TARGET_B0 0x00000000
00094 #define TARGET_B50 0x00000001
00095 #define TARGET_B75 0x00000002
00096 #define TARGET_B110 0x00000003
00097 #define TARGET_B134 0x00000004
00098 #define TARGET_B150 0x00000005
00099 #define TARGET_B200 0x00000006
00100 #define TARGET_B300 0x00000007
00101 #define TARGET_B600 0x00000008
00102 #define TARGET_B1200 0x00000009
00103 #define TARGET_B1800 0x0000000a
00104 #define TARGET_B2400 0x0000000b
00105 #define TARGET_B4800 0x0000000c
00106 #define TARGET_B9600 0x0000000d
00107 #define TARGET_B19200 0x0000000e
00108 #define TARGET_B38400 0x0000000f
00109 #define TARGET_EXTA B19200
00110 #define TARGET_EXTB B38400
00111 #define TARGET_CSIZE 0x00000030
00112 #define TARGET_CS5 0x00000000
00113 #define TARGET_CS6 0x00000010
00114 #define TARGET_CS7 0x00000020
00115 #define TARGET_CS8 0x00000030
00116 #define TARGET_CSTOPB 0x00000040
00117 #define TARGET_CREAD 0x00000080
00118 #define TARGET_PARENB 0x00000100
00119 #define TARGET_PARODD 0x00000200
00120 #define TARGET_HUPCL 0x00000400
00121 #define TARGET_CLOCAL 0x00000800
00122 #define TARGET_CBAUDEX 0x00001000
00123
00124 #define TARGET_B57600 0x00001001
00125 #define TARGET_B115200 0x00001002
00126 #define TARGET_B230400 0x00001003
00127 #define TARGET_B460800 0x00001004
00128
00129 #define TARGET_B76800 0x00001005
00130
00131 #define TARGET_B153600 0x00001006
00132 #define TARGET_B307200 0x00001007
00133 #define TARGET_B614400 0x00001008
00134 #define TARGET_B921600 0x00001009
00135
00136 #define TARGET_B500000 0x0000100a
00137 #define TARGET_B576000 0x0000100b
00138 #define TARGET_B1000000 0x0000100c
00139 #define TARGET_B1152000 0x0000100d
00140 #define TARGET_B1500000 0x0000100e
00141 #define TARGET_B2000000 0x0000100f
00142
00143
00144
00145
00146
00147
00148
00149 #define TARGET_CIBAUD 0x100f0000
00150 #define TARGET_CMSPAR 0x40000000
00151 #define TARGET_CRTSCTS 0x80000000
00152
00153
00154 #define TARGET_ISIG 0x00000001
00155 #define TARGET_ICANON 0x00000002
00156 #define TARGET_XCASE 0x00000004
00157 #define TARGET_ECHO 0x00000008
00158 #define TARGET_ECHOE 0x00000010
00159 #define TARGET_ECHOK 0x00000020
00160 #define TARGET_ECHONL 0x00000040
00161 #define TARGET_NOFLSH 0x00000080
00162 #define TARGET_TOSTOP 0x00000100
00163 #define TARGET_ECHOCTL 0x00000200
00164 #define TARGET_ECHOPRT 0x00000400
00165 #define TARGET_ECHOKE 0x00000800
00166 #define TARGET_DEFECHO 0x00001000
00167 #define TARGET_FLUSHO 0x00002000
00168 #define TARGET_PENDIN 0x00004000
00169 #define TARGET_IEXTEN 0x00008000
00170
00171
00172
00173
00174 #define TARGET_TCGETA TARGET_IOR('T', 1, struct target_termio)
00175 #define TARGET_TCSETA TARGET_IOW('T', 2, struct target_termio)
00176 #define TARGET_TCSETAW TARGET_IOW('T', 3, struct target_termio)
00177 #define TARGET_TCSETAF TARGET_IOW('T', 4, struct target_termio)
00178 #define TARGET_TCSBRK TARGET_IO('T', 5)
00179 #define TARGET_TCXONC TARGET_IO('T', 6)
00180 #define TARGET_TCFLSH TARGET_IO('T', 7)
00181 #define TARGET_TCGETS TARGET_IOR('T', 8, struct target_termios)
00182 #define TARGET_TCSETS TARGET_IOW('T', 9, struct target_termios)
00183 #define TARGET_TCSETSW TARGET_IOW('T', 10, struct target_termios)
00184 #define TARGET_TCSETSF TARGET_IOW('T', 11, struct target_termios)
00185
00186
00187
00188
00189
00190
00191 #define TARGET_TIOCGETD TARGET_IOR('t', 0, int)
00192 #define TARGET_TIOCSETD TARGET_IOW('t', 1, int)
00193
00194
00195
00196
00197
00198
00199 #define TARGET_TIOCEXCL TARGET_IO('t', 13)
00200 #define TARGET_TIOCNXCL TARGET_IO('t', 14)
00201
00202
00203
00204
00205
00206
00207
00208 #define TARGET_TIOCCONS TARGET_IO('t', 36)
00209
00210
00211 #define TARGET_TIOCGSOFTCAR TARGET_IOR('t', 100, int)
00212 #define TARGET_TIOCSSOFTCAR TARGET_IOW('t', 101, int)
00213
00214 #define TARGET_TIOCSWINSZ TARGET_IOW('t', 103, struct winsize)
00215 #define TARGET_TIOCGWINSZ TARGET_IOR('t', 104, struct winsize)
00216
00217 #define TARGET_TIOCMGET TARGET_IOR('t', 106, int)
00218 #define TARGET_TIOCMBIC TARGET_IOW('t', 107, int)
00219 #define TARGET_TIOCMBIS TARGET_IOW('t', 108, int)
00220 #define TARGET_TIOCMSET TARGET_IOW('t', 109, int)
00221 #define TARGET_TIOCSTART TARGET_IO('t', 110)
00222 #define TARGET_TIOCSTOP TARGET_IO('t', 111)
00223 #define TARGET_TIOCPKT TARGET_IOW('t', 112, int)
00224 #define TARGET_TIOCNOTTY TARGET_IO('t', 113)
00225 #define TARGET_TIOCSTI TARGET_IOW('t', 114, char)
00226 #define TARGET_TIOCOUTQ TARGET_IOR('t', 115, int)
00227
00228
00229
00230
00231
00232
00233 #define TARGET_TIOCCBRK TARGET_IO('t', 122)
00234 #define TARGET_TIOCSBRK TARGET_IO('t', 123)
00235
00236
00237
00238
00239
00240
00241 #define TARGET_TIOCSPGRP TARGET_IOW('t', 130, int)
00242 #define TARGET_TIOCGPGRP TARGET_IOR('t', 131, int)
00243 #define TARGET_TIOCSCTTY TARGET_IO('t', 132)
00244 #define TARGET_TIOCGSID TARGET_IOR('t', 133, int)
00245
00246 #define TARGET_TIOCGPTN TARGET_IOR('t', 134, unsigned int)
00247 #define TARGET_TIOCSPTLCK TARGET_IOW('t', 135, int)
00248
00249
00250 #define TARGET_FIOCLEX TARGET_IO('f', 1)
00251 #define TARGET_FIONCLEX TARGET_IO('f', 2)
00252 #define TARGET_FIOASYNC TARGET_IOW('f', 125, int)
00253 #define TARGET_FIONBIO TARGET_IOW('f', 126, int)
00254 #define TARGET_FIONREAD TARGET_IOR('f', 127, int)
00255 #define TARGET_TIOCINQ TARGET_FIONREAD
00256
00257
00258
00259
00260
00261
00262
00263
00264 #define TARGET_TIOCLINUX 0x541C
00265 #define TARGET_TIOCGSERIAL 0x541E
00266 #define TARGET_TIOCSSERIAL 0x541F
00267 #define TARGET_TCSBRKP 0x5425
00268 #define TARGET_TIOCTTYGSTRUCT 0x5426
00269 #define TARGET_TIOCSERCONFIG 0x5453
00270 #define TARGET_TIOCSERGWILD 0x5454
00271 #define TARGET_TIOCSERSWILD 0x5455
00272 #define TARGET_TIOCGLCKTRMIOS 0x5456
00273 #define TARGET_TIOCSLCKTRMIOS 0x5457
00274 #define TARGET_TIOCSERGSTRUCT 0x5458
00275 #define TARGET_TIOCSERGETLSR 0x5459
00276 #define TARGET_TIOCSERGETMULTI 0x545A
00277 #define TARGET_TIOCSERSETMULTI 0x545B
00278 #define TARGET_TIOCMIWAIT 0x545C
00279 #define TARGET_TIOCGICOUNT 0x545D