aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/ioctls.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-sparc64/ioctls.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-sparc64/ioctls.h')
-rw-r--r--include/asm-sparc64/ioctls.h135
1 files changed, 135 insertions, 0 deletions
diff --git a/include/asm-sparc64/ioctls.h b/include/asm-sparc64/ioctls.h
new file mode 100644
index 000000000000..2223b6d0e5ed
--- /dev/null
+++ b/include/asm-sparc64/ioctls.h
@@ -0,0 +1,135 @@
1/* $Id: ioctls.h,v 1.7 1998/02/23 02:49:41 davem Exp $ */
2#ifndef _ASM_SPARC64_IOCTLS_H
3#define _ASM_SPARC64_IOCTLS_H
4
5#include <asm/ioctl.h>
6
7/* Big T */
8#define TCGETA _IOR('T', 1, struct termio)
9#define TCSETA _IOW('T', 2, struct termio)
10#define TCSETAW _IOW('T', 3, struct termio)
11#define TCSETAF _IOW('T', 4, struct termio)
12#define TCSBRK _IO('T', 5)
13#define TCXONC _IO('T', 6)
14#define TCFLSH _IO('T', 7)
15#define TCGETS _IOR('T', 8, struct termios)
16#define TCSETS _IOW('T', 9, struct termios)
17#define TCSETSW _IOW('T', 10, struct termios)
18#define TCSETSF _IOW('T', 11, struct termios)
19
20/* Note that all the ioctls that are not available in Linux have a
21 * double underscore on the front to: a) avoid some programs to
22 * think we support some ioctls under Linux (autoconfiguration stuff)
23 */
24/* Little t */
25#define TIOCGETD _IOR('t', 0, int)
26#define TIOCSETD _IOW('t', 1, int)
27#define __TIOCHPCL _IO('t', 2) /* SunOS Specific */
28#define __TIOCMODG _IOR('t', 3, int) /* SunOS Specific */
29#define __TIOCMODS _IOW('t', 4, int) /* SunOS Specific */
30#define __TIOCGETP _IOR('t', 8, struct sgttyb) /* SunOS Specific */
31#define __TIOCSETP _IOW('t', 9, struct sgttyb) /* SunOS Specific */
32#define __TIOCSETN _IOW('t', 10, struct sgttyb) /* SunOS Specific */
33#define TIOCEXCL _IO('t', 13)
34#define TIOCNXCL _IO('t', 14)
35#define __TIOCFLUSH _IOW('t', 16, int) /* SunOS Specific */
36#define __TIOCSETC _IOW('t', 17, struct tchars) /* SunOS Specific */
37#define __TIOCGETC _IOR('t', 18, struct tchars) /* SunOS Specific */
38#define __TIOCTCNTL _IOW('t', 32, int) /* SunOS Specific */
39#define __TIOCSIGNAL _IOW('t', 33, int) /* SunOS Specific */
40#define __TIOCSETX _IOW('t', 34, int) /* SunOS Specific */
41#define __TIOCGETX _IOR('t', 35, int) /* SunOS Specific */
42#define TIOCCONS _IO('t', 36)
43#define __TIOCSSIZE _IOW('t', 37, struct sunos_ttysize) /* SunOS Specific */
44#define __TIOCGSIZE _IOR('t', 38, struct sunos_ttysize) /* SunOS Specific */
45#define TIOCGSOFTCAR _IOR('t', 100, int)
46#define TIOCSSOFTCAR _IOW('t', 101, int)
47#define __TIOCUCNTL _IOW('t', 102, int) /* SunOS Specific */
48#define TIOCSWINSZ _IOW('t', 103, struct winsize)
49#define TIOCGWINSZ _IOR('t', 104, struct winsize)
50#define __TIOCREMOTE _IOW('t', 105, int) /* SunOS Specific */
51#define TIOCMGET _IOR('t', 106, int)
52#define TIOCMBIC _IOW('t', 107, int)
53#define TIOCMBIS _IOW('t', 108, int)
54#define TIOCMSET _IOW('t', 109, int)
55#define TIOCSTART _IO('t', 110)
56#define TIOCSTOP _IO('t', 111)
57#define TIOCPKT _IOW('t', 112, int)
58#define TIOCNOTTY _IO('t', 113)
59#define TIOCSTI _IOW('t', 114, char)
60#define TIOCOUTQ _IOR('t', 115, int)
61#define __TIOCGLTC _IOR('t', 116, struct ltchars) /* SunOS Specific */
62#define __TIOCSLTC _IOW('t', 117, struct ltchars) /* SunOS Specific */
63/* 118 is the non-posix setpgrp tty ioctl */
64/* 119 is the non-posix getpgrp tty ioctl */
65#define __TIOCCDTR _IO('t', 120) /* SunOS Specific */
66#define __TIOCSDTR _IO('t', 121) /* SunOS Specific */
67#define TIOCCBRK _IO('t', 122)
68#define TIOCSBRK _IO('t', 123)
69#define __TIOCLGET _IOW('t', 124, int) /* SunOS Specific */
70#define __TIOCLSET _IOW('t', 125, int) /* SunOS Specific */
71#define __TIOCLBIC _IOW('t', 126, int) /* SunOS Specific */
72#define __TIOCLBIS _IOW('t', 127, int) /* SunOS Specific */
73#define __TIOCISPACE _IOR('t', 128, int) /* SunOS Specific */
74#define __TIOCISIZE _IOR('t', 129, int) /* SunOS Specific */
75#define TIOCSPGRP _IOW('t', 130, int)
76#define TIOCGPGRP _IOR('t', 131, int)
77#define TIOCSCTTY _IO('t', 132)
78#define TIOCGSID _IOR('t', 133, int)
79/* Get minor device of a pty master's FD -- Solaris equiv is ISPTM */
80#define TIOCGPTN _IOR('t', 134, unsigned int) /* Get Pty Number */
81#define TIOCSPTLCK _IOW('t', 135, int) /* Lock/unlock PTY */
82
83/* Little f */
84#define FIOCLEX _IO('f', 1)
85#define FIONCLEX _IO('f', 2)
86#define FIOASYNC _IOW('f', 125, int)
87#define FIONBIO _IOW('f', 126, int)
88#define FIONREAD _IOR('f', 127, int)
89#define TIOCINQ FIONREAD
90#define FIOQSIZE _IOR('f', 128, loff_t)
91
92/* SCARY Rutgers local SunOS kernel hackery, perhaps I will support it
93 * someday. This is completely bogus, I know...
94 */
95#define __TCGETSTAT _IO('T', 200) /* Rutgers specific */
96#define __TCSETSTAT _IO('T', 201) /* Rutgers specific */
97
98/* Linux specific, no SunOS equivalent. */
99#define TIOCLINUX 0x541C
100#define TIOCGSERIAL 0x541E
101#define TIOCSSERIAL 0x541F
102#define TCSBRKP 0x5425
103#define TIOCSERCONFIG 0x5453
104#define TIOCSERGWILD 0x5454
105#define TIOCSERSWILD 0x5455
106#define TIOCGLCKTRMIOS 0x5456
107#define TIOCSLCKTRMIOS 0x5457
108#define TIOCSERGSTRUCT 0x5458 /* For debugging only */
109#define TIOCSERGETLSR 0x5459 /* Get line status register */
110#define TIOCSERGETMULTI 0x545A /* Get multiport config */
111#define TIOCSERSETMULTI 0x545B /* Set multiport config */
112#define TIOCMIWAIT 0x545C /* Wait for change on serial input line(s) */
113#define TIOCGICOUNT 0x545D /* Read serial port inline interrupt counts */
114
115/* Kernel definitions */
116#ifdef __KERNEL__
117#define TIOCGETC __TIOCGETC
118#define TIOCGETP __TIOCGETP
119#define TIOCGLTC __TIOCGLTC
120#define TIOCSLTC __TIOCSLTC
121#define TIOCSETP __TIOCSETP
122#define TIOCSETN __TIOCSETN
123#define TIOCSETC __TIOCSETC
124#endif
125
126/* Used for packet mode */
127#define TIOCPKT_DATA 0
128#define TIOCPKT_FLUSHREAD 1
129#define TIOCPKT_FLUSHWRITE 2
130#define TIOCPKT_STOP 4
131#define TIOCPKT_START 8
132#define TIOCPKT_NOSTOP 16
133#define TIOCPKT_DOSTOP 32
134
135#endif /* !(_ASM_SPARC64_IOCTLS_H) */