0001
0002 #ifndef _UAPI_ASM_SPARC_IOCTLS_H
0003 #define _UAPI_ASM_SPARC_IOCTLS_H
0004
0005 #include <asm/ioctl.h>
0006
0007
0008 #define TCGETA _IOR('T', 1, struct termio)
0009 #define TCSETA _IOW('T', 2, struct termio)
0010 #define TCSETAW _IOW('T', 3, struct termio)
0011 #define TCSETAF _IOW('T', 4, struct termio)
0012 #define TCSBRK _IO('T', 5)
0013 #define TCXONC _IO('T', 6)
0014 #define TCFLSH _IO('T', 7)
0015 #define TCGETS _IOR('T', 8, struct termios)
0016 #define TCSETS _IOW('T', 9, struct termios)
0017 #define TCSETSW _IOW('T', 10, struct termios)
0018 #define TCSETSF _IOW('T', 11, struct termios)
0019 #define TCGETS2 _IOR('T', 12, struct termios2)
0020 #define TCSETS2 _IOW('T', 13, struct termios2)
0021 #define TCSETSW2 _IOW('T', 14, struct termios2)
0022 #define TCSETSF2 _IOW('T', 15, struct termios2)
0023 #define TIOCGDEV _IOR('T',0x32, unsigned int)
0024 #define TIOCVHANGUP _IO('T', 0x37)
0025 #define TIOCGPKT _IOR('T', 0x38, int)
0026 #define TIOCGPTLCK _IOR('T', 0x39, int)
0027 #define TIOCGEXCL _IOR('T', 0x40, int)
0028 #define TIOCGRS485 _IOR('T', 0x41, struct serial_rs485)
0029 #define TIOCSRS485 _IOWR('T', 0x42, struct serial_rs485)
0030 #define TIOCGISO7816 _IOR('T', 0x43, struct serial_iso7816)
0031 #define TIOCSISO7816 _IOWR('T', 0x44, struct serial_iso7816)
0032
0033
0034
0035
0036
0037
0038 #define TIOCGETD _IOR('t', 0, int)
0039 #define TIOCSETD _IOW('t', 1, int)
0040 #define __TIOCHPCL _IO('t', 2)
0041 #define __TIOCMODG _IOR('t', 3, int)
0042 #define __TIOCMODS _IOW('t', 4, int)
0043 #define __TIOCGETP _IOR('t', 8, struct sgttyb)
0044 #define __TIOCSETP _IOW('t', 9, struct sgttyb)
0045 #define __TIOCSETN _IOW('t', 10, struct sgttyb)
0046 #define TIOCEXCL _IO('t', 13)
0047 #define TIOCNXCL _IO('t', 14)
0048 #define __TIOCFLUSH _IOW('t', 16, int)
0049 #define __TIOCSETC _IOW('t', 17, struct tchars)
0050 #define __TIOCGETC _IOR('t', 18, struct tchars)
0051 #define __TIOCTCNTL _IOW('t', 32, int)
0052 #define __TIOCSIGNAL _IOW('t', 33, int)
0053 #define __TIOCSETX _IOW('t', 34, int)
0054 #define __TIOCGETX _IOR('t', 35, int)
0055 #define TIOCCONS _IO('t', 36)
0056 #define TIOCGSOFTCAR _IOR('t', 100, int)
0057 #define TIOCSSOFTCAR _IOW('t', 101, int)
0058 #define __TIOCUCNTL _IOW('t', 102, int)
0059 #define TIOCSWINSZ _IOW('t', 103, struct winsize)
0060 #define TIOCGWINSZ _IOR('t', 104, struct winsize)
0061 #define __TIOCREMOTE _IOW('t', 105, int)
0062 #define TIOCMGET _IOR('t', 106, int)
0063 #define TIOCMBIC _IOW('t', 107, int)
0064 #define TIOCMBIS _IOW('t', 108, int)
0065 #define TIOCMSET _IOW('t', 109, int)
0066 #define TIOCSTART _IO('t', 110)
0067 #define TIOCSTOP _IO('t', 111)
0068 #define TIOCPKT _IOW('t', 112, int)
0069 #define TIOCNOTTY _IO('t', 113)
0070 #define TIOCSTI _IOW('t', 114, char)
0071 #define TIOCOUTQ _IOR('t', 115, int)
0072 #define __TIOCGLTC _IOR('t', 116, struct ltchars)
0073 #define __TIOCSLTC _IOW('t', 117, struct ltchars)
0074
0075
0076 #define __TIOCCDTR _IO('t', 120)
0077 #define __TIOCSDTR _IO('t', 121)
0078 #define TIOCCBRK _IO('t', 122)
0079 #define TIOCSBRK _IO('t', 123)
0080 #define __TIOCLGET _IOW('t', 124, int)
0081 #define __TIOCLSET _IOW('t', 125, int)
0082 #define __TIOCLBIC _IOW('t', 126, int)
0083 #define __TIOCLBIS _IOW('t', 127, int)
0084 #define __TIOCISPACE _IOR('t', 128, int)
0085 #define __TIOCISIZE _IOR('t', 129, int)
0086 #define TIOCSPGRP _IOW('t', 130, int)
0087 #define TIOCGPGRP _IOR('t', 131, int)
0088 #define TIOCSCTTY _IO('t', 132)
0089 #define TIOCGSID _IOR('t', 133, int)
0090
0091 #define TIOCGPTN _IOR('t', 134, unsigned int)
0092 #define TIOCSPTLCK _IOW('t', 135, int)
0093 #define TIOCSIG _IOW('t', 136, int)
0094 #define TIOCGPTPEER _IO('t', 137)
0095
0096
0097 #define FIOCLEX _IO('f', 1)
0098 #define FIONCLEX _IO('f', 2)
0099 #define FIOASYNC _IOW('f', 125, int)
0100 #define FIONBIO _IOW('f', 126, int)
0101 #define FIONREAD _IOR('f', 127, int)
0102 #define TIOCINQ FIONREAD
0103 #define FIOQSIZE _IOR('f', 128, loff_t)
0104
0105
0106
0107
0108 #define __TCGETSTAT _IO('T', 200)
0109 #define __TCSETSTAT _IO('T', 201)
0110
0111
0112 #define TIOCLINUX 0x541C
0113 #define TIOCGSERIAL 0x541E
0114 #define TIOCSSERIAL 0x541F
0115 #define TCSBRKP 0x5425
0116 #define TIOCSERCONFIG 0x5453
0117 #define TIOCSERGWILD 0x5454
0118 #define TIOCSERSWILD 0x5455
0119 #define TIOCGLCKTRMIOS 0x5456
0120 #define TIOCSLCKTRMIOS 0x5457
0121 #define TIOCSERGSTRUCT 0x5458
0122 #define TIOCSERGETLSR 0x5459
0123 #define TIOCSERGETMULTI 0x545A
0124 #define TIOCSERSETMULTI 0x545B
0125 #define TIOCMIWAIT 0x545C
0126 #define TIOCGICOUNT 0x545D
0127
0128
0129
0130
0131 #define TIOCPKT_DATA 0
0132 #define TIOCPKT_FLUSHREAD 1
0133 #define TIOCPKT_FLUSHWRITE 2
0134 #define TIOCPKT_STOP 4
0135 #define TIOCPKT_START 8
0136 #define TIOCPKT_NOSTOP 16
0137 #define TIOCPKT_DOSTOP 32
0138 #define TIOCPKT_IOCTL 64
0139
0140 #endif