Import 2.1.81
[davej-history.git] / include / asm-mips / ioctls.h
blobd04de37f11f0102a31fe63e6cbb6fe158c36a80e
1 /*
2 * ioctls for Linux/MIPS.
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
8 * Copyright (C) 1995, 1996 by Ralf Baechle
9 */
10 #ifndef __ASM_MIPS_IOCTLS_H
11 #define __ASM_MIPS_IOCTLS_H
13 #include <asm/ioctl.h>
15 #if defined(__USE_MISC) || defined (__KERNEL__)
16 #define tIOC ('t' << 8)
17 #endif
19 #define TCGETA 0x5401
20 #define TCSETA 0x5402
21 #define TCSETAW 0x5403
22 #define TCSETAF 0x5404
24 #define TCSBRK 0x5405
25 #define TCXONC 0x5406
26 #define TCFLSH 0x5407
28 #define TCGETS 0x540d
29 #define TCSETS 0x540e
30 #define TCSETSW 0x540f
31 #define TCSETSF 0x5410
33 #define TIOCEXCL 0x740d /* set exclusive use of tty */
34 #define TIOCNXCL 0x740e /* reset exclusive use of tty */
35 #define TIOCOUTQ 0x7472 /* output queue size */
36 #define TIOCSTI 0x5472 /* simulate terminal input */
37 #define TIOCMGET 0x741d /* get all modem bits */
38 #define TIOCMBIS 0x741b /* bis modem bits */
39 #define TIOCMBIC 0x741c /* bic modem bits */
40 #define TIOCMSET 0x741a /* set all modem bits */
41 #define TIOCPKT 0x5470 /* pty: set/clear packet mode */
42 #define TIOCPKT_DATA 0x00 /* data packet */
43 #define TIOCPKT_FLUSHREAD 0x01 /* flush packet */
44 #define TIOCPKT_FLUSHWRITE 0x02 /* flush packet */
45 #define TIOCPKT_STOP 0x04 /* stop output */
46 #define TIOCPKT_START 0x08 /* start output */
47 #define TIOCPKT_NOSTOP 0x10 /* no more ^S, ^Q */
48 #define TIOCPKT_DOSTOP 0x20 /* now do ^S ^Q */
49 #if 0
50 #define TIOCPKT_IOCTL 0x40 /* state change of pty driver */
51 #endif
52 #define TIOCSWINSZ _IOW('t', 103, struct winsize) /* set window size */
53 #define TIOCGWINSZ _IOR('t', 104, struct winsize) /* get window size */
54 #define TIOCNOTTY 0x5471 /* void tty association */
55 #define TIOCSETD (tIOC | 1)
56 #define TIOCGETD (tIOC | 0)
58 #define FIOCLEX 0x6601
59 #define FIONCLEX 0x6602 /* these numbers need to be adjusted. */
60 #define FIOASYNC 0x667d
61 #define FIONBIO 0x667e
63 #if defined(__USE_MISC) || defined (__KERNEL__)
64 #define TIOCGLTC (tIOC | 116) /* get special local chars */
65 #define TIOCSLTC (tIOC | 117) /* set special local chars */
66 #endif
67 #define TIOCSPGRP _IOW('t', 118, int) /* set pgrp of tty */
68 #define TIOCGPGRP _IOR('t', 119, int) /* get pgrp of tty */
69 #define TIOCCONS _IOW('t', 120, int) /* become virtual console */
71 #define FIONREAD 0x467f
72 #define TIOCINQ FIONREAD
74 #if defined(__USE_MISC) || defined (__KERNEL__)
75 #define TIOCGETP (tIOC | 8)
76 #define TIOCSETP (tIOC | 9)
77 #define TIOCSETN (tIOC | 10) /* TIOCSETP wo flush */
78 #endif
80 #if 0
81 #define TIOCSETA _IOW('t', 20, struct termios) /* set termios struct */
82 #define TIOCSETAW _IOW('t', 21, struct termios) /* drain output, set */
83 #define TIOCSETAF _IOW('t', 22, struct termios) /* drn out, fls in, set */
84 #define TIOCGETD _IOR('t', 26, int) /* get line discipline */
85 #define TIOCSETD _IOW('t', 27, int) /* set line discipline */
86 /* 127-124 compat */
87 #endif
89 /* I hope the range from 0x5480 on is free ... */
90 #define TIOCSCTTY 0x5480 /* become controlling tty */
91 #define TIOCGSOFTCAR 0x5481
92 #define TIOCSSOFTCAR 0x5482
93 #define TIOCLINUX 0x5483
94 #define TIOCGSERIAL 0x5484
95 #define TIOCSSERIAL 0x5485
97 #define TCSBRKP 0x5486 /* Needed for POSIX tcsendbreak() */
98 #define TIOCTTYGSTRUCT 0x5487 /* For debugging only */
99 #define TIOCSBRK 0x5427 /* BSD compatibility */
100 #define TIOCCBRK 0x5428 /* BSD compatibility */
101 #define TIOCGSID 0x5429 /* Return the session ID of FD */
103 #define TIOCSERCONFIG 0x5488
104 #define TIOCSERGWILD 0x5489
105 #define TIOCSERSWILD 0x548a
106 #define TIOCGLCKTRMIOS 0x548b
107 #define TIOCSLCKTRMIOS 0x548c
108 #define TIOCSERGSTRUCT 0x548d /* For debugging only */
109 #define TIOCSERGETLSR 0x548e /* Get line status register */
110 #define TIOCSERGETMULTI 0x548f /* Get multiport config */
111 #define TIOCSERSETMULTI 0x5490 /* Set multiport config */
112 #define TIOCMIWAIT 0x5491 /* wait for a change on serial input line(s) */
113 #define TIOCGICOUNT 0x5492 /* read serial port inline interrupt counts */
115 #endif /* __ASM_MIPS_IOCTLS_H */