| 1 |
|
| 2 | #ifndef _ASM_ALPHA_IOCTLS_H
|
| 3 | #define _ASM_ALPHA_IOCTLS_H
|
| 4 |
|
| 5 | #include <asm/ioctl.h>
|
| 6 |
|
| 7 | #define FIOCLEX _IO('f', 1)
|
| 8 | #define FIONCLEX _IO('f', 2)
|
| 9 | #define FIOASYNC _IOW('f', 125, int)
|
| 10 | #define FIONBIO _IOW('f', 126, int)
|
| 11 | #define FIONREAD _IOR('f', 127, int)
|
| 12 | #define TIOCINQ FIONREAD
|
| 13 | #define FIOQSIZE _IOR('f', 128, loff_t)
|
| 14 |
|
| 15 | #define TIOCGETP _IOR('t', 8, struct sgttyb)
|
| 16 | #define TIOCSETP _IOW('t', 9, struct sgttyb)
|
| 17 | #define TIOCSETN _IOW('t', 10, struct sgttyb)
|
| 18 |
|
| 19 | #define TIOCSETC _IOW('t', 17, struct tchars)
|
| 20 | #define TIOCGETC _IOR('t', 18, struct tchars)
|
| 21 | #define TCGETS _IOR('t', 19, struct termios)
|
| 22 | #define TCSETS _IOW('t', 20, struct termios)
|
| 23 | #define TCSETSW _IOW('t', 21, struct termios)
|
| 24 | #define TCSETSF _IOW('t', 22, struct termios)
|
| 25 |
|
| 26 | #define TCGETA 0x40127417
|
| 27 | #define TCSETA 0x80127418
|
| 28 | #define TCSETAW 0x80127419
|
| 29 | #define TCSETAF 0x8012741c
|
| 30 |
|
| 31 | #define TCSBRK _IO('t', 29)
|
| 32 | #define TCXONC _IO('t', 30)
|
| 33 | #define TCFLSH _IO('t', 31)
|
| 34 |
|
| 35 | #define TCGETS2 _IOR('T', 42, struct termios2)
|
| 36 | #define TCSETS2 _IOW('T', 43, struct termios2)
|
| 37 | #define TCSETSW2 _IOW('T', 44, struct termios2)
|
| 38 | #define TCSETSF2 _IOW('T', 45, struct termios2)
|
| 39 |
|
| 40 | #define TIOCSWINSZ _IOW('t', 103, struct winsize)
|
| 41 | #define TIOCGWINSZ _IOR('t', 104, struct winsize)
|
| 42 | #define TIOCSTART _IO('t', 110)
|
| 43 | #define TIOCSTOP _IO('t', 111)
|
| 44 | #define TIOCOUTQ _IOR('t', 115, int)
|
| 45 |
|
| 46 | #define TIOCGLTC _IOR('t', 116, struct ltchars)
|
| 47 | #define TIOCSLTC _IOW('t', 117, struct ltchars)
|
| 48 | #define TIOCSPGRP _IOW('t', 118, int)
|
| 49 | #define TIOCGPGRP _IOR('t', 119, int)
|
| 50 |
|
| 51 | #define TIOCEXCL 0x540C
|
| 52 | #define TIOCNXCL 0x540D
|
| 53 | #define TIOCSCTTY 0x540E
|
| 54 |
|
| 55 | #define TIOCSTI 0x5412
|
| 56 | #define TIOCMGET 0x5415
|
| 57 | #define TIOCMBIS 0x5416
|
| 58 | #define TIOCMBIC 0x5417
|
| 59 | #define TIOCMSET 0x5418
|
| 60 | # define TIOCM_LE 0x001
|
| 61 | # define TIOCM_DTR 0x002
|
| 62 | # define TIOCM_RTS 0x004
|
| 63 | # define TIOCM_ST 0x008
|
| 64 | # define TIOCM_SR 0x010
|
| 65 | # define TIOCM_CTS 0x020
|
| 66 | # define TIOCM_CAR 0x040
|
| 67 | # define TIOCM_RNG 0x080
|
| 68 | # define TIOCM_DSR 0x100
|
| 69 | # define TIOCM_CD TIOCM_CAR
|
| 70 | # define TIOCM_RI TIOCM_RNG
|
| 71 | # define TIOCM_OUT1 0x2000
|
| 72 | # define TIOCM_OUT2 0x4000
|
| 73 | # define TIOCM_LOOP 0x8000
|
| 74 |
|
| 75 | #define TIOCGSOFTCAR 0x5419
|
| 76 | #define TIOCSSOFTCAR 0x541A
|
| 77 | #define TIOCLINUX 0x541C
|
| 78 | #define TIOCCONS 0x541D
|
| 79 | #define TIOCGSERIAL 0x541E
|
| 80 | #define TIOCSSERIAL 0x541F
|
| 81 | #define TIOCPKT 0x5420
|
| 82 | # define TIOCPKT_DATA 0
|
| 83 | # define TIOCPKT_FLUSHREAD 1
|
| 84 | # define TIOCPKT_FLUSHWRITE 2
|
| 85 | # define TIOCPKT_STOP 4
|
| 86 | # define TIOCPKT_START 8
|
| 87 | # define TIOCPKT_NOSTOP 16
|
| 88 | # define TIOCPKT_DOSTOP 32
|
| 89 | # define TIOCPKT_IOCTL 64
|
| 90 |
|
| 91 |
|
| 92 | #define TIOCNOTTY 0x5422
|
| 93 | #define TIOCSETD 0x5423
|
| 94 | #define TIOCGETD 0x5424
|
| 95 | #define TCSBRKP 0x5425
|
| 96 | #define TIOCSBRK 0x5427
|
| 97 | #define TIOCCBRK 0x5428
|
| 98 | #define TIOCGSID 0x5429
|
| 99 | #define TIOCGRS485 _IOR('T', 0x2E, struct serial_rs485)
|
| 100 | #define TIOCSRS485 _IOWR('T', 0x2F, struct serial_rs485)
|
| 101 | #define TIOCGPTN _IOR('T',0x30, unsigned int)
|
| 102 | #define TIOCSPTLCK _IOW('T',0x31, int)
|
| 103 | #define TIOCGDEV _IOR('T',0x32, unsigned int)
|
| 104 | #define TIOCSIG _IOW('T',0x36, int)
|
| 105 | #define TIOCVHANGUP 0x5437
|
| 106 | #define TIOCGPKT _IOR('T', 0x38, int)
|
| 107 | #define TIOCGPTLCK _IOR('T', 0x39, int)
|
| 108 | #define TIOCGEXCL _IOR('T', 0x40, int)
|
| 109 | #define TIOCGPTPEER _IO('T', 0x41)
|
| 110 | #define TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816)
|
| 111 | #define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816)
|
| 112 |
|
| 113 | #define TIOCSERCONFIG 0x5453
|
| 114 | #define TIOCSERGWILD 0x5454
|
| 115 | #define TIOCSERSWILD 0x5455
|
| 116 | #define TIOCGLCKTRMIOS 0x5456
|
| 117 | #define TIOCSLCKTRMIOS 0x5457
|
| 118 | #define TIOCSERGSTRUCT 0x5458
|
| 119 | #define TIOCSERGETLSR 0x5459
|
| 120 |
|
| 121 | # define TIOCSER_TEMT 0x01
|
| 122 | #define TIOCSERGETMULTI 0x545A
|
| 123 | #define TIOCSERSETMULTI 0x545B
|
| 124 |
|
| 125 | #define TIOCMIWAIT 0x545C
|
| 126 | #define TIOCGICOUNT 0x545D
|
| 127 |
|
| 128 | #endif
|