Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / compat / linux / arch / arm / linux_termios.h
blob87e74b4a40b8c68c653afcc720c6cccbe4834504
1 /* $NetBSD: linux_termios.h,v 1.1 2002/01/14 23:14:40 bjh21 Exp $ */
3 /*-
4 * Copyright (c) 1998 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Eric Haszlakiewicz.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _ARM_LINUX_TERMIOS_H
33 #define _ARM_LINUX_TERMIOS_H
35 #define LINUX_NCC 8
36 #define LINUX_NCCS 19
38 #define LINUX_TCGETS _LINUX_IO('T', 1)
39 #define LINUX_TCSETS _LINUX_IO('T', 2)
40 #define LINUX_TCSETSW _LINUX_IO('T', 3)
41 #define LINUX_TCSETSF _LINUX_IO('T', 4)
42 #define LINUX_TCGETA _LINUX_IO('T', 5)
43 #define LINUX_TCSETA _LINUX_IO('T', 6)
44 #define LINUX_TCSETAW _LINUX_IO('T', 7)
45 #define LINUX_TCSETAF _LINUX_IO('T', 8)
46 #define LINUX_TCSBRK _LINUX_IO('T', 9)
47 #define LINUX_TCXONC _LINUX_IO('T', 10)
48 #define LINUX_TCFLSH _LINUX_IO('T', 11)
49 #define LINUX_TIOCEXCL _LINUX_IO('T', 12)
50 #define LINUX_TIOCNXCL _LINUX_IO('T', 13)
51 #define LINUX_TIOCSCTTY _LINUX_IO('T', 14)
52 #define LINUX_TIOCGPGRP _LINUX_IO('T', 15)
53 #define LINUX_TIOCSPGRP _LINUX_IO('T', 16)
54 #define LINUX_TIOCOUTQ _LINUX_IO('T', 17)
55 #define LINUX_TIOCSTI _LINUX_IO('T', 18)
56 #define LINUX_TIOCGWINSZ _LINUX_IO('T', 19)
57 #define LINUX_TIOCSWINSZ _LINUX_IO('T', 20)
58 #define LINUX_TIOCMGET _LINUX_IO('T', 21)
59 #define LINUX_TIOCMBIS _LINUX_IO('T', 22)
60 #define LINUX_TIOCMBIC _LINUX_IO('T', 23)
61 #define LINUX_TIOCMSET _LINUX_IO('T', 24)
62 #define LINUX_TIOCGSOFTCAR _LINUX_IO('T', 25)
63 #define LINUX_TIOCSSOFTCAR _LINUX_IO('T', 26)
64 #define LINUX_FIONREAD _LINUX_IO('T', 27)
65 #define LINUX_TIOCINQ LINUX_FIONREAD
66 #define LINUX_TIOCLINUX _LINUX_IO('T', 28)
67 #define LINUX_TIOCCONS _LINUX_IO('T', 29)
68 #define LINUX_TIOCGSERIAL _LINUX_IO('T', 30)
69 #define LINUX_TIOCSSERIAL _LINUX_IO('T', 31)
70 #define LINUX_TIOCPKT _LINUX_IO('T', 32)
71 #define LINUX_FIONBIO _LINUX_IO('T', 33)
72 #define LINUX_TIOCNOTTY _LINUX_IO('T', 34)
73 #define LINUX_TIOCSETD _LINUX_IO('T', 35)
74 #define LINUX_TIOCGETD _LINUX_IO('T', 36)
75 #define LINUX_TCSBRKP _LINUX_IO('T', 37)
76 #define LINUX_TIOCTTYGSTRUCT _LINUX_IO('T', 38)
78 #define LINUX_FIONCLEX _LINUX_IO('T', 80)
79 #define LINUX_FIOCLEX _LINUX_IO('T', 81)
80 #define LINUX_FIOASYNC _LINUX_IO('T', 82)
81 #define LINUX_TIOCSERCONFIG _LINUX_IO('T', 83)
82 #define LINUX_TIOCSERGWILD _LINUX_IO('T', 84)
83 #define LINUX_TIOCSERSWILD _LINUX_IO('T', 85)
84 #define LINUX_TIOCGLCKTRMIOS _LINUX_IO('T', 86)
85 #define LINUX_TIOCSLCKTRMIOS _LINUX_IO('T', 87)
86 #define LINUX_TIOCSERGSTRUCT _LINUX_IO('T', 88)
87 #define LINUX_TIOCSERGETLSR _LINUX_IO('T', 89)
89 /* linux_termios c_cc chars: */
90 #define LINUX_VINTR 0
91 #define LINUX_VQUIT 1
92 #define LINUX_VERASE 2
93 #define LINUX_VKILL 3
94 #define LINUX_VEOF 4
95 #define LINUX_VTIME 5
96 #define LINUX_VMIN 6
97 #define LINUX_VSWTC 7
98 #define LINUX_VSTART 8
99 #define LINUX_VSTOP 9
100 #define LINUX_VSUSP 10
101 #define LINUX_VEOL 11
102 #define LINUX_VREPRINT 12
103 #define LINUX_VDISCARD 13
104 #define LINUX_VWERASE 14
105 #define LINUX_VLNEXT 15
106 #define LINUX_VEOL2 16
108 /* Old style linux_termio */
109 #define LINUX_OLD_VINTR LINUX_VINTR
110 #define LINUX_OLD_VQUIT LINUX_VQUIT
111 #define LINUX_OLD_VERASE LINUX_VERASE
112 #define LINUX_OLD_VKILL LINUX_VKILL
113 #define LINUX_OLD_VEOF LINUX_VEOF
114 #define LINUX_OLD_VMIN LINUX_VMIN
115 #define LINUX_OLD_VEOL LINUX_VEOL
116 #define LINUX_OLD_VTIME LINUX_VTIME
117 #define LINUX_OLD_VEOL2 LINUX_VEOL2
118 #define LINUX_OLD_VSWTC LINUX_VSWTC
120 /* Linux c_iflag masks */
121 #define LINUX_IGNBRK 0x0000001
122 #define LINUX_BRKINT 0x0000002
123 #define LINUX_IGNPAR 0x0000004
124 #define LINUX_PARMRK 0x0000008
125 #define LINUX_INPCK 0x0000010
126 #define LINUX_ISTRIP 0x0000020
127 #define LINUX_INLCR 0x0000040
128 #define LINUX_IGNCR 0x0000080
129 #define LINUX_ICRNL 0x0000100
130 #define LINUX_IUCLC 0x0000200
131 #define LINUX_IXON 0x0000400
132 #define LINUX_IXANY 0x0000800
133 #define LINUX_IXOFF 0x0001000
134 #define LINUX_IMAXBEL 0x0002000
136 /* Linux c_oflag masks */
137 #define LINUX_OPOST 0x0000001
138 #define LINUX_OLCUC 0x0000002
139 #define LINUX_ONLCR 0x0000004
140 #define LINUX_OCRNL 0x0000008
141 #define LINUX_ONOCR 0x0000010
142 #define LINUX_ONLRET 0x0000020
143 #define LINUX_OFILL 0x0000040
144 #define LINUX_OFDEL 0x0000080
145 #define LINUX_NLDLY 0x0000100
147 #define LINUX_NL0 0x0000000
148 #define LINUX_NL1 0x0000100
149 #define LINUX_CRDLY 0x0000600
150 #define LINUX_CR0 0x0000000
151 #define LINUX_CR1 0x0000200
152 #define LINUX_CR2 0x0000400
153 #define LINUX_CR3 0x0000600
154 #define LINUX_TABDLY 0x0001800
155 #define LINUX_TAB0 0x0000000
156 #define LINUX_TAB1 0x0000800
157 #define LINUX_TAB2 0x0001000
158 #define LINUX_TAB3 0x0001800
159 #define LINUX_XTABS 0x0001800
160 #define LINUX_BSDLY 0x0002000
161 #define LINUX_BS0 0x0000000
162 #define LINUX_BS1 0x0002000
163 #define LINUX_VTDLY 0x0004000
164 #define LINUX_VT0 0x0000000
165 #define LINUX_VT1 0x0004000
166 #define LINUX_FFDLY 0x0008000
167 #define LINUX_FF0 0x0000000
168 #define LINUX_FF1 0x0008000
170 /* Linux c_cflag bit masks */
172 #define LINUX_NSPEEDS 16
173 #define LINUX_NXSPEEDS 3 /* XXX Add B460800, NXSPEEDS=4 */
175 #define LINUX_CBAUD 0x0000100f
177 #define LINUX_B0 0x00000000
178 #define LINUX_B50 0x00000001
179 #define LINUX_B75 0x00000002
180 #define LINUX_B110 0x00000003
181 #define LINUX_B134 0x00000004
182 #define LINUX_B150 0x00000005
183 #define LINUX_B200 0x00000006
184 #define LINUX_B300 0x00000007
185 #define LINUX_B600 0x00000008
186 #define LINUX_B1200 0x00000009
187 #define LINUX_B1800 0x0000000a
188 #define LINUX_B2400 0x0000000b
189 #define LINUX_B4800 0x0000000c
190 #define LINUX_B9600 0x0000000d
191 #define LINUX_B19200 0x0000000e
192 #define LINUX_B38400 0x0000000f
193 #define LINUX_EXTA LINUX_B19200
194 #define LINUX_EXTB LINUX_B38400
195 #define LINUX_CBAUDEX 0x00001000
196 #define LINUX_B57600 0x00001001
197 #define LINUX_B115200 0x00001002
198 #define LINUX_B230400 0x00001003
200 #define LINUX_CSIZE 0x00000030
201 #define LINUX_CS5 0x00000000
202 #define LINUX_CS6 0x00000010
203 #define LINUX_CS7 0x00000020
204 #define LINUX_CS8 0x00000030
205 #define LINUX_CSTOPB 0x00000040
206 #define LINUX_CREAD 0x00000080
207 #define LINUX_PARENB 0x00000100
208 #define LINUX_PARODD 0x00000200
209 #define LINUX_HUPCL 0x00000400
210 #define LINUX_CLOCAL 0x00000800
212 #define LINUX_CRTSCTS 0x80000000
214 /* Linux c_lflag masks */
215 #define LINUX_ISIG 0x00000001
216 #define LINUX_ICANON 0x00000002
217 #define LINUX_XCASE 0x00000004
218 #define LINUX_ECHO 0x00000008
219 #define LINUX_ECHOE 0x00000010
220 #define LINUX_ECHOK 0x00000020
221 #define LINUX_ECHONL 0x00000040
222 #define LINUX_NOFLSH 0x00000080
223 #define LINUX_TOSTOP 0x00000100
224 #define LINUX_ECHOCTL 0x00000200
225 #define LINUX_ECHOPRT 0x00000400
226 #define LINUX_ECHOKE 0x00000800
227 #define LINUX_FLUSHO 0x00001000
228 #define LINUX_PENDIN 0x00002000
229 #define LINUX_IEXTEN 0x00008000
231 #endif /* !_ARM_LINUX_TERMIOS_H */