1
2#ifndef _UAPI_ASM_SPARC_IOCTLS_H
3#define _UAPI_ASM_SPARC_IOCTLS_H
4
5#include <asm/ioctl.h>
6
7
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#define TCGETS2 _IOR('T', 12, struct termios2)
20#define TCSETS2 _IOW('T', 13, struct termios2)
21#define TCSETSW2 _IOW('T', 14, struct termios2)
22#define TCSETSF2 _IOW('T', 15, struct termios2)
23#define TIOCGDEV _IOR('T',0x32, unsigned int)
24#define TIOCVHANGUP _IO('T', 0x37)
25#define TIOCGPKT _IOR('T', 0x38, int)
26#define TIOCGPTLCK _IOR('T', 0x39, int)
27#define TIOCGEXCL _IOR('T', 0x40, int)
28#define TIOCGRS485 _IOR('T', 0x41, struct serial_rs485)
29#define TIOCSRS485 _IOWR('T', 0x42, struct serial_rs485)
30
31
32
33
34
35
36#define TIOCGETD _IOR('t', 0, int)
37#define TIOCSETD _IOW('t', 1, int)
38#define __TIOCHPCL _IO('t', 2)
39#define __TIOCMODG _IOR('t', 3, int)
40#define __TIOCMODS _IOW('t', 4, int)
41#define __TIOCGETP _IOR('t', 8, struct sgttyb)
42#define __TIOCSETP _IOW('t', 9, struct sgttyb)
43#define __TIOCSETN _IOW('t', 10, struct sgttyb)
44#define TIOCEXCL _IO('t', 13)
45#define TIOCNXCL _IO('t', 14)
46#define __TIOCFLUSH _IOW('t', 16, int)
47#define __TIOCSETC _IOW('t', 17, struct tchars)
48#define __TIOCGETC _IOR('t', 18, struct tchars)
49#define __TIOCTCNTL _IOW('t', 32, int)
50#define __TIOCSIGNAL _IOW('t', 33, int)
51#define __TIOCSETX _IOW('t', 34, int)
52#define __TIOCGETX _IOR('t', 35, int)
53#define TIOCCONS _IO('t', 36)
54#define TIOCGSOFTCAR _IOR('t', 100, int)
55#define TIOCSSOFTCAR _IOW('t', 101, int)
56#define __TIOCUCNTL _IOW('t', 102, int)
57#define TIOCSWINSZ _IOW('t', 103, struct winsize)
58#define TIOCGWINSZ _IOR('t', 104, struct winsize)
59#define __TIOCREMOTE _IOW('t', 105, int)
60#define TIOCMGET _IOR('t', 106, int)
61#define TIOCMBIC _IOW('t', 107, int)
62#define TIOCMBIS _IOW('t', 108, int)
63#define TIOCMSET _IOW('t', 109, int)
64#define TIOCSTART _IO('t', 110)
65#define TIOCSTOP _IO('t', 111)
66#define TIOCPKT _IOW('t', 112, int)
67#define TIOCNOTTY _IO('t', 113)
68#define TIOCSTI _IOW('t', 114, char)
69#define TIOCOUTQ _IOR('t', 115, int)
70#define __TIOCGLTC _IOR('t', 116, struct ltchars)
71#define __TIOCSLTC _IOW('t', 117, struct ltchars)
72
73
74#define __TIOCCDTR _IO('t', 120)
75#define __TIOCSDTR _IO('t', 121)
76#define TIOCCBRK _IO('t', 122)
77#define TIOCSBRK _IO('t', 123)
78#define __TIOCLGET _IOW('t', 124, int)
79#define __TIOCLSET _IOW('t', 125, int)
80#define __TIOCLBIC _IOW('t', 126, int)
81#define __TIOCLBIS _IOW('t', 127, int)
82#define __TIOCISPACE _IOR('t', 128, int)
83#define __TIOCISIZE _IOR('t', 129, int)
84#define TIOCSPGRP _IOW('t', 130, int)
85#define TIOCGPGRP _IOR('t', 131, int)
86#define TIOCSCTTY _IO('t', 132)
87#define TIOCGSID _IOR('t', 133, int)
88
89#define TIOCGPTN _IOR('t', 134, unsigned int)
90#define TIOCSPTLCK _IOW('t', 135, int)
91#define TIOCSIG _IOW('t', 136, int)
92#define TIOCGPTPEER _IO('t', 137)
93
94
95#define FIOCLEX _IO('f', 1)
96#define FIONCLEX _IO('f', 2)
97#define FIOASYNC _IOW('f', 125, int)
98#define FIONBIO _IOW('f', 126, int)
99#define FIONREAD _IOR('f', 127, int)
100#define TIOCINQ FIONREAD
101#define FIOQSIZE _IOR('f', 128, loff_t)
102
103
104
105
106#define __TCGETSTAT _IO('T', 200)
107#define __TCSETSTAT _IO('T', 201)
108
109
110#define TIOCLINUX 0x541C
111#define TIOCGSERIAL 0x541E
112#define TIOCSSERIAL 0x541F
113#define TCSBRKP 0x5425
114#define TIOCSERCONFIG 0x5453
115#define TIOCSERGWILD 0x5454
116#define TIOCSERSWILD 0x5455
117#define TIOCGLCKTRMIOS 0x5456
118#define TIOCSLCKTRMIOS 0x5457
119#define TIOCSERGSTRUCT 0x5458
120#define TIOCSERGETLSR 0x5459
121#define TIOCSERGETMULTI 0x545A
122#define TIOCSERSETMULTI 0x545B
123#define TIOCMIWAIT 0x545C
124#define TIOCGICOUNT 0x545D
125
126
127
128
129#define TIOCPKT_DATA 0
130#define TIOCPKT_FLUSHREAD 1
131#define TIOCPKT_FLUSHWRITE 2
132#define TIOCPKT_STOP 4
133#define TIOCPKT_START 8
134#define TIOCPKT_NOSTOP 16
135#define TIOCPKT_DOSTOP 32
136#define TIOCPKT_IOCTL 64
137
138#endif
139