MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / ioctls.h
blob288025c7d40328534b6406b35f5fbd9424230aa6
1 /*
2 * Copyright (C) 2004, Microtronix Datacom Ltd.
4 * All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
14 * NON INFRINGEMENT. See the GNU General Public License for more
15 * details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef __ARCH_NIOS2_IOCTLS_H__
24 #define __ARCH_NIOS2_IOCTLS_H__
26 #include <asm/ioctl.h>
28 /* 0x54 is just a magic number to make these relatively unique ('T') */
30 #define TCGETS 0x5401
31 #define TCSETS 0x5402
32 #define TCSETSW 0x5403
33 #define TCSETSF 0x5404
34 #define TCGETA 0x5405
35 #define TCSETA 0x5406
36 #define TCSETAW 0x5407
37 #define TCSETAF 0x5408
38 #define TCSBRK 0x5409
39 #define TCXONC 0x540A
40 #define TCFLSH 0x540B
41 #define TIOCEXCL 0x540C
42 #define TIOCNXCL 0x540D
43 #define TIOCSCTTY 0x540E
44 #define TIOCGPGRP 0x540F
45 #define TIOCSPGRP 0x5410
46 #define TIOCOUTQ 0x5411
47 #define TIOCSTI 0x5412
48 #define TIOCGWINSZ 0x5413
49 #define TIOCSWINSZ 0x5414
50 #define TIOCMGET 0x5415
51 #define TIOCMBIS 0x5416
52 #define TIOCMBIC 0x5417
53 #define TIOCMSET 0x5418
54 #define TIOCGSOFTCAR 0x5419
55 #define TIOCSSOFTCAR 0x541A
56 #define FIONREAD 0x541B
57 #define TIOCINQ FIONREAD
58 #define TIOCLINUX 0x541C
59 #define TIOCCONS 0x541D
60 #define TIOCGSERIAL 0x541E
61 #define TIOCSSERIAL 0x541F
62 #define TIOCPKT 0x5420
63 #define FIONBIO 0x5421
64 #define TIOCNOTTY 0x5422
65 #define TIOCSETD 0x5423
66 #define TIOCGETD 0x5424
67 #define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */
68 #define TIOCTTYGSTRUCT 0x5426 /* For debugging only */
69 #define TIOCSBRK 0x5427 /* BSD compatibility */
70 #define TIOCCBRK 0x5428 /* BSD compatibility */
71 #define TIOCGSID 0x5429 /* Return the session ID of FD */
72 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
73 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
75 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
76 #define FIOCLEX 0x5451
77 #define FIOASYNC 0x5452
78 #define TIOCSERCONFIG 0x5453
79 #define TIOCSERGWILD 0x5454
80 #define TIOCSERSWILD 0x5455
81 #define TIOCGLCKTRMIOS 0x5456
82 #define TIOCSLCKTRMIOS 0x5457
83 #define TIOCSERGSTRUCT 0x5458 /* For debugging only */
84 #define TIOCSERGETLSR 0x5459 /* Get line status register */
85 #define TIOCSERGETMULTI 0x545A /* Get multiport config */
86 #define TIOCSERSETMULTI 0x545B /* Set multiport config */
88 #define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
89 #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
90 #define FIOQSIZE 0x545E
92 /* Used for packet mode */
93 #define TIOCPKT_DATA 0
94 #define TIOCPKT_FLUSHREAD 1
95 #define TIOCPKT_FLUSHWRITE 2
96 #define TIOCPKT_STOP 4
97 #define TIOCPKT_START 8
98 #define TIOCPKT_NOSTOP 16
99 #define TIOCPKT_DOSTOP 32
101 #define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
103 #endif /* __ARCH_NIOS2_IOCTLS_H__ */