0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef __ASM_IOCTLS_H
0011 #define __ASM_IOCTLS_H
0012
0013 #include <asm/ioctl.h>
0014
0015 #define TCGETA 0x5401
0016 #define TCSETA 0x5402
0017 #define TCSETAW 0x5403
0018 #define TCSETAF 0x5404
0019
0020 #define TCSBRK 0x5405
0021 #define TCXONC 0x5406
0022 #define TCFLSH 0x5407
0023
0024 #define TCGETS 0x540d
0025 #define TCSETS 0x540e
0026 #define TCSETSW 0x540f
0027 #define TCSETSF 0x5410
0028
0029 #define TIOCEXCL 0x740d
0030 #define TIOCNXCL 0x740e
0031 #define TIOCOUTQ 0x7472
0032 #define TIOCSTI 0x5472
0033 #define TIOCMGET 0x741d
0034 #define TIOCMBIS 0x741b
0035 #define TIOCMBIC 0x741c
0036 #define TIOCMSET 0x741a
0037 #define TIOCPKT 0x5470
0038 #define TIOCPKT_DATA 0x00
0039 #define TIOCPKT_FLUSHREAD 0x01
0040 #define TIOCPKT_FLUSHWRITE 0x02
0041 #define TIOCPKT_STOP 0x04
0042 #define TIOCPKT_START 0x08
0043 #define TIOCPKT_NOSTOP 0x10
0044 #define TIOCPKT_DOSTOP 0x20
0045 #define TIOCPKT_IOCTL 0x40
0046 #define TIOCSWINSZ _IOW('t', 103, struct winsize)
0047 #define TIOCGWINSZ _IOR('t', 104, struct winsize)
0048 #define TIOCNOTTY 0x5471
0049 #define TIOCSETD 0x7401
0050 #define TIOCGETD 0x7400
0051
0052 #define FIOCLEX 0x6601
0053 #define FIONCLEX 0x6602
0054 #define FIOASYNC 0x667d
0055 #define FIONBIO 0x667e
0056 #define FIOQSIZE 0x667f
0057
0058 #define TIOCGLTC 0x7474
0059 #define TIOCSLTC 0x7475
0060 #define TIOCSPGRP _IOW('t', 118, int)
0061 #define TIOCGPGRP _IOR('t', 119, int)
0062 #define TIOCCONS _IOW('t', 120, int)
0063
0064 #define FIONREAD 0x467f
0065 #define TIOCINQ FIONREAD
0066
0067 #define TIOCGETP 0x7408
0068 #define TIOCSETP 0x7409
0069 #define TIOCSETN 0x740a
0070
0071
0072
0073
0074
0075
0076
0077
0078 #define TIOCSBRK 0x5427
0079 #define TIOCCBRK 0x5428
0080 #define TIOCGSID 0x7416
0081 #define TCGETS2 _IOR('T', 0x2A, struct termios2)
0082 #define TCSETS2 _IOW('T', 0x2B, struct termios2)
0083 #define TCSETSW2 _IOW('T', 0x2C, struct termios2)
0084 #define TCSETSF2 _IOW('T', 0x2D, struct termios2)
0085 #define TIOCGRS485 _IOR('T', 0x2E, struct serial_rs485)
0086 #define TIOCSRS485 _IOWR('T', 0x2F, struct serial_rs485)
0087 #define TIOCGPTN _IOR('T', 0x30, unsigned int)
0088 #define TIOCSPTLCK _IOW('T', 0x31, int)
0089 #define TIOCGDEV _IOR('T', 0x32, unsigned int)
0090 #define TIOCSIG _IOW('T', 0x36, int)
0091 #define TIOCVHANGUP 0x5437
0092 #define TIOCGPKT _IOR('T', 0x38, int)
0093 #define TIOCGPTLCK _IOR('T', 0x39, int)
0094 #define TIOCGEXCL _IOR('T', 0x40, int)
0095 #define TIOCGPTPEER _IO('T', 0x41)
0096 #define TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816)
0097 #define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816)
0098
0099
0100 #define TIOCSCTTY 0x5480
0101 #define TIOCGSOFTCAR 0x5481
0102 #define TIOCSSOFTCAR 0x5482
0103 #define TIOCLINUX 0x5483
0104 #define TIOCGSERIAL 0x5484
0105 #define TIOCSSERIAL 0x5485
0106 #define TCSBRKP 0x5486
0107 #define TIOCSERCONFIG 0x5488
0108 #define TIOCSERGWILD 0x5489
0109 #define TIOCSERSWILD 0x548a
0110 #define TIOCGLCKTRMIOS 0x548b
0111 #define TIOCSLCKTRMIOS 0x548c
0112 #define TIOCSERGSTRUCT 0x548d
0113 #define TIOCSERGETLSR 0x548e
0114 #define TIOCSERGETMULTI 0x548f
0115 #define TIOCSERSETMULTI 0x5490
0116 #define TIOCMIWAIT 0x5491
0117 #define TIOCGICOUNT 0x5492
0118
0119 #endif