Move the sources to trunk
[opencv] / apps / Hawk / CVEiCL / EiC / module / stdClib / src / _LINUX / ioctl.h
1 #ifndef _IOCTLH
2 #define _IOCTLH
3
4 /*
5    EJB
6    This header file is by no means compliant
7    to any standard. All I have done
8    is thrown most of the termio.h 4.3 BSD stuff
9    in here plus other ioctl.h things.
10 */
11
12
13 /* possible c_cflag stuff*/
14 #define B115200 0010002
15 #define B230400 0010003
16 #define B57600  0010001
17 #define CBAUDEX 0010000
18 #define CBAUD   0010017
19 #define CIBAUD    002003600000  /* input baud rate (not used) */
20 #define EXTA B19200
21 #define EXTB B38400
22 #define CREAD   0000200
23 #define CRTSCTS   020000000000          /* flow control */
24
25 /* c_iflag bits */
26 #define IMAXBEL 0020000
27 #define IUCLC   0001000
28 #define IXANY   0004000
29
30 /* c_lflag bits */
31 #define ECHOCTL 0001000
32 #define ECHOKE  0004000
33 #define ECHOPRT 0002000
34 #define FLUSHO  0010000
35 #define XCASE   0000004
36
37
38 /* c_oflag */
39 #define OLCUC   0000002
40 #define ONLCR   0000004
41 #define OCRNL   0000010
42 #define ONOCR   0000020
43 #define ONLRET  0000040
44 #define OFILL   0000100
45 #define OFDEL   0000200
46 #define NLDLY   0000400
47 #define   NL0   0000000
48 #define   NL1   0000400
49 #define CRDLY   0003000
50 #define   CR0   0000000
51 #define   CR1   0001000
52 #define   CR2   0002000
53 #define   CR3   0003000
54 #define TABDLY  0014000
55 #define   TAB0  0000000
56 #define   TAB1  0004000
57 #define   TAB2  0010000
58 #define   TAB3  0014000
59 #define   XTABS 0014000
60 #define BSDLY   0020000
61 #define   BS0   0000000
62 #define   BS1   0020000
63 #define VTDLY   0040000
64 #define   VT0   0000000
65 #define   VT1   0040000
66 #define FFDLY   0100000
67 #define   FF0   0000000
68 #define   FF1   0100000
69
70
71 #define TCGETS          0x5401
72 #define TCSETS          0x5402
73 #define TCSETSW         0x5403
74 #define TCSETSF         0x5404
75 #define TCGETA          0x5405
76 #define TCSETA          0x5406
77 #define TCSETAW         0x5407
78 #define TCSETAF         0x5408
79 #define TCSBRK          0x5409
80 #define TCXONC          0x540A
81 #define TCFLSH          0x540B
82 #define TIOCEXCL        0x540C
83 #define TIOCNXCL        0x540D
84 #define TIOCSCTTY       0x540E
85 #define TIOCGPGRP       0x540F
86 #define TIOCSPGRP       0x5410
87 #define TIOCOUTQ        0x5411
88 #define TIOCSTI         0x5412
89 #define TIOCGWINSZ      0x5413
90 #define TIOCSWINSZ      0x5414
91 #define TIOCMGET        0x5415
92 #define TIOCMBIS        0x5416
93 #define TIOCMBIC        0x5417
94 #define TIOCMSET        0x5418
95 #define TIOCGSOFTCAR    0x5419
96 #define TIOCSSOFTCAR    0x541A
97 #define FIONREAD        0x541B
98 #define TIOCINQ         FIONREAD
99 #define TIOCLINUX       0x541C
100 #define TIOCCONS        0x541D
101 #define TIOCGSERIAL     0x541E
102 #define TIOCSSERIAL     0x541F
103 #define TIOCPKT         0x5420
104 #define FIONBIO         0x5421
105 #define TIOCNOTTY       0x5422
106 #define TIOCSETD        0x5423
107 #define TIOCGETD        0x5424
108 #define TCSBRKP         0x5425  /* Needed for POSIX tcsendbreak() */
109 #define TIOCTTYGSTRUCT  0x5426  /* For debugging only */
110 #define FIONCLEX        0x5450  /* these numbers need to be adjusted. */
111 #define FIOCLEX         0x5451
112 #define FIOASYNC        0x5452
113 #define TIOCSERCONFIG   0x5453
114 #define TIOCSERGWILD    0x5454
115 #define TIOCSERSWILD    0x5455
116 #define TIOCGLCKTRMIOS  0x5456
117 #define TIOCSLCKTRMIOS  0x5457
118 #define TIOCSERGSTRUCT  0x5458 /* For debugging only */
119 #define TIOCSERGETLSR   0x5459 /* Get line status register */
120 #define TIOCSERGETMULTI 0x545A /* Get multiport config  */
121 #define TIOCSERSETMULTI 0x545B /* Set multiport config */
122
123 /* Used for packet mode */
124 #define TIOCPKT_DATA             0
125 #define TIOCPKT_FLUSHREAD        1
126 #define TIOCPKT_FLUSHWRITE       2
127 #define TIOCPKT_STOP             4
128 #define TIOCPKT_START            8
129 #define TIOCPKT_NOSTOP          16
130 #define TIOCPKT_DOSTOP          32
131
132 struct winsize {
133         unsigned short ws_row;
134         unsigned short ws_col;
135         unsigned short ws_xpixel;
136         unsigned short ws_ypixel;
137 };
138
139
140 /* modem lines */
141 #define TIOCM_LE        0x001
142 #define TIOCM_DTR       0x002
143 #define TIOCM_RTS       0x004
144 #define TIOCM_ST        0x008
145 #define TIOCM_SR        0x010
146 #define TIOCM_CTS       0x020
147 #define TIOCM_CAR       0x040
148 #define TIOCM_RNG       0x080
149 #define TIOCM_DSR       0x100
150 #define TIOCM_CD        TIOCM_CAR
151 #define TIOCM_RI        TIOCM_RNG
152
153 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
154 #define TIOCSER_TEMT    0x01    /* Transmitter physically empty */
155
156
157 #endif
158
159
160
161
162