ioctls.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_ALPHA_IOCTLS_H
  3. #define _ASM_ALPHA_IOCTLS_H
  4. #include <asm/ioctl.h>
  5. #define FIOCLEX _IO('f', 1)
  6. #define FIONCLEX _IO('f', 2)
  7. #define FIOASYNC _IOW('f', 125, int)
  8. #define FIONBIO _IOW('f', 126, int)
  9. #define FIONREAD _IOR('f', 127, int)
  10. #define TIOCINQ FIONREAD
  11. #define FIOQSIZE _IOR('f', 128, loff_t)
  12. #define TIOCGETP _IOR('t', 8, struct sgttyb)
  13. #define TIOCSETP _IOW('t', 9, struct sgttyb)
  14. #define TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */
  15. #define TIOCSETC _IOW('t', 17, struct tchars)
  16. #define TIOCGETC _IOR('t', 18, struct tchars)
  17. #define TCGETS _IOR('t', 19, struct termios)
  18. #define TCSETS _IOW('t', 20, struct termios)
  19. #define TCSETSW _IOW('t', 21, struct termios)
  20. #define TCSETSF _IOW('t', 22, struct termios)
  21. #define TCGETA _IOR('t', 23, struct termio)
  22. #define TCSETA _IOW('t', 24, struct termio)
  23. #define TCSETAW _IOW('t', 25, struct termio)
  24. #define TCSETAF _IOW('t', 28, struct termio)
  25. #define TCSBRK _IO('t', 29)
  26. #define TCXONC _IO('t', 30)
  27. #define TCFLSH _IO('t', 31)
  28. #define TCGETS2 _IOR('T', 42, struct termios2)
  29. #define TCSETS2 _IOW('T', 43, struct termios2)
  30. #define TCSETSW2 _IOW('T', 44, struct termios2)
  31. #define TCSETSF2 _IOW('T', 45, struct termios2)
  32. #define TIOCSWINSZ _IOW('t', 103, struct winsize)
  33. #define TIOCGWINSZ _IOR('t', 104, struct winsize)
  34. #define TIOCSTART _IO('t', 110) /* start output, like ^Q */
  35. #define TIOCSTOP _IO('t', 111) /* stop output, like ^S */
  36. #define TIOCOUTQ _IOR('t', 115, int) /* output queue size */
  37. #define TIOCGLTC _IOR('t', 116, struct ltchars)
  38. #define TIOCSLTC _IOW('t', 117, struct ltchars)
  39. #define TIOCSPGRP _IOW('t', 118, int)
  40. #define TIOCGPGRP _IOR('t', 119, int)
  41. #define TIOCEXCL 0x540C
  42. #define TIOCNXCL 0x540D
  43. #define TIOCSCTTY 0x540E
  44. #define TIOCSTI 0x5412
  45. #define TIOCMGET 0x5415
  46. #define TIOCMBIS 0x5416
  47. #define TIOCMBIC 0x5417
  48. #define TIOCMSET 0x5418
  49. # define TIOCM_LE 0x001
  50. # define TIOCM_DTR 0x002
  51. # define TIOCM_RTS 0x004
  52. # define TIOCM_ST 0x008
  53. # define TIOCM_SR 0x010
  54. # define TIOCM_CTS 0x020
  55. # define TIOCM_CAR 0x040
  56. # define TIOCM_RNG 0x080
  57. # define TIOCM_DSR 0x100
  58. # define TIOCM_CD TIOCM_CAR
  59. # define TIOCM_RI TIOCM_RNG
  60. # define TIOCM_OUT1 0x2000
  61. # define TIOCM_OUT2 0x4000
  62. # define TIOCM_LOOP 0x8000
  63. #define TIOCGSOFTCAR 0x5419
  64. #define TIOCSSOFTCAR 0x541A
  65. #define TIOCLINUX 0x541C
  66. #define TIOCCONS 0x541D
  67. #define TIOCGSERIAL 0x541E
  68. #define TIOCSSERIAL 0x541F
  69. #define TIOCPKT 0x5420
  70. # define TIOCPKT_DATA 0
  71. # define TIOCPKT_FLUSHREAD 1
  72. # define TIOCPKT_FLUSHWRITE 2
  73. # define TIOCPKT_STOP 4
  74. # define TIOCPKT_START 8
  75. # define TIOCPKT_NOSTOP 16
  76. # define TIOCPKT_DOSTOP 32
  77. # define TIOCPKT_IOCTL 64
  78. #define TIOCNOTTY 0x5422
  79. #define TIOCSETD 0x5423
  80. #define TIOCGETD 0x5424
  81. #define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */
  82. #define TIOCSBRK 0x5427 /* BSD compatibility */
  83. #define TIOCCBRK 0x5428 /* BSD compatibility */
  84. #define TIOCGSID 0x5429 /* Return the session ID of FD */
  85. #define TIOCGRS485 _IOR('T', 0x2E, struct serial_rs485)
  86. #define TIOCSRS485 _IOWR('T', 0x2F, struct serial_rs485)
  87. #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
  88. #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
  89. #define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */
  90. #define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */
  91. #define TIOCVHANGUP 0x5437
  92. #define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */
  93. #define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */
  94. #define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */
  95. #define TIOCGPTPEER _IO('T', 0x41) /* Safely open the slave */
  96. #define TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816)
  97. #define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816)
  98. #define TIOCSERCONFIG 0x5453
  99. #define TIOCSERGWILD 0x5454
  100. #define TIOCSERSWILD 0x5455
  101. #define TIOCGLCKTRMIOS 0x5456
  102. #define TIOCSLCKTRMIOS 0x5457
  103. #define TIOCSERGSTRUCT 0x5458 /* For debugging only */
  104. #define TIOCSERGETLSR 0x5459 /* Get line status register */
  105. /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
  106. # define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
  107. #define TIOCSERGETMULTI 0x545A /* Get multiport config */
  108. #define TIOCSERSETMULTI 0x545B /* Set multiport config */
  109. #define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
  110. #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
  111. #endif /* _ASM_ALPHA_IOCTLS_H */