ioctls.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. #ifndef __ASM_SH64_IOCTLS_H
  2. #define __ASM_SH64_IOCTLS_H
  3. /*
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * include/asm-sh64/ioctls.h
  9. *
  10. * Copyright (C) 2000, 2001 Paolo Alberelli
  11. * Copyright (C) 2004 Richard Curnow
  12. *
  13. */
  14. #include <asm/ioctl.h>
  15. #define FIOCLEX 0x6601 /* _IO('f', 1) */
  16. #define FIONCLEX 0x6602 /* _IO('f', 2) */
  17. #define FIOASYNC 0x4004667d /* _IOW('f', 125, int) */
  18. #define FIONBIO 0x4004667e /* _IOW('f', 126, int) */
  19. #define FIONREAD 0x8004667f /* _IOW('f', 127, int) */
  20. #define TIOCINQ FIONREAD
  21. #define FIOQSIZE 0x80086680 /* _IOR('f', 128, loff_t) */
  22. #define TCGETS 0x5401
  23. #define TCSETS 0x5402
  24. #define TCSETSW 0x5403
  25. #define TCSETSF 0x5404
  26. #define TCGETA 0x80127417 /* _IOR('t', 23, struct termio) */
  27. #define TCSETA 0x40127418 /* _IOW('t', 24, struct termio) */
  28. #define TCSETAW 0x40127419 /* _IOW('t', 25, struct termio) */
  29. #define TCSETAF 0x4012741c /* _IOW('t', 28, struct termio) */
  30. #define TCSBRK 0x741d /* _IO('t', 29) */
  31. #define TCXONC 0x741e /* _IO('t', 30) */
  32. #define TCFLSH 0x741f /* _IO('t', 31) */
  33. #define TIOCSWINSZ 0x40087467 /* _IOW('t', 103, struct winsize) */
  34. #define TIOCGWINSZ 0x80087468 /* _IOR('t', 104, struct winsize) */
  35. #define TIOCSTART 0x746e /* _IO('t', 110) start output, like ^Q */
  36. #define TIOCSTOP 0x746f /* _IO('t', 111) stop output, like ^S */
  37. #define TIOCOUTQ 0x80047473 /* _IOR('t', 115, int) output queue size */
  38. #define TIOCSPGRP 0x40047476 /* _IOW('t', 118, int) */
  39. #define TIOCGPGRP 0x80047477 /* _IOR('t', 119, int) */
  40. #define TIOCEXCL 0x540c /* _IO('T', 12) */
  41. #define TIOCNXCL 0x540d /* _IO('T', 13) */
  42. #define TIOCSCTTY 0x540e /* _IO('T', 14) */
  43. #define TIOCSTI 0x40015412 /* _IOW('T', 18, char) 0x5412 */
  44. #define TIOCMGET 0x80045415 /* _IOR('T', 21, unsigned int) 0x5415 */
  45. #define TIOCMBIS 0x40045416 /* _IOW('T', 22, unsigned int) 0x5416 */
  46. #define TIOCMBIC 0x40045417 /* _IOW('T', 23, unsigned int) 0x5417 */
  47. #define TIOCMSET 0x40045418 /* _IOW('T', 24, unsigned int) 0x5418 */
  48. #define TIOCM_LE 0x001
  49. #define TIOCM_DTR 0x002
  50. #define TIOCM_RTS 0x004
  51. #define TIOCM_ST 0x008
  52. #define TIOCM_SR 0x010
  53. #define TIOCM_CTS 0x020
  54. #define TIOCM_CAR 0x040
  55. #define TIOCM_RNG 0x080
  56. #define TIOCM_DSR 0x100
  57. #define TIOCM_CD TIOCM_CAR
  58. #define TIOCM_RI TIOCM_RNG
  59. #define TIOCGSOFTCAR 0x80045419 /* _IOR('T', 25, unsigned int) 0x5419 */
  60. #define TIOCSSOFTCAR 0x4004541a /* _IOW('T', 26, unsigned int) 0x541A */
  61. #define TIOCLINUX 0x4004541c /* _IOW('T', 28, char) 0x541C */
  62. #define TIOCCONS 0x541d /* _IO('T', 29) */
  63. #define TIOCGSERIAL 0x803c541e /* _IOR('T', 30, struct serial_struct) 0x541E */
  64. #define TIOCSSERIAL 0x403c541f /* _IOW('T', 31, struct serial_struct) 0x541F */
  65. #define TIOCPKT 0x40045420 /* _IOW('T', 32, int) 0x5420 */
  66. #define TIOCPKT_DATA 0
  67. #define TIOCPKT_FLUSHREAD 1
  68. #define TIOCPKT_FLUSHWRITE 2
  69. #define TIOCPKT_STOP 4
  70. #define TIOCPKT_START 8
  71. #define TIOCPKT_NOSTOP 16
  72. #define TIOCPKT_DOSTOP 32
  73. #define TIOCNOTTY 0x5422 /* _IO('T', 34) */
  74. #define TIOCSETD 0x40045423 /* _IOW('T', 35, int) 0x5423 */
  75. #define TIOCGETD 0x80045424 /* _IOR('T', 36, int) 0x5424 */
  76. #define TCSBRKP 0x40045424 /* _IOW('T', 37, int) 0x5425 */ /* Needed for POSIX tcsendbreak() */
  77. #define TIOCTTYGSTRUCT 0x8c105426 /* _IOR('T', 38, struct tty_struct) 0x5426 */ /* For debugging only */
  78. #define TIOCSBRK 0x5427 /* _IO('T', 39) */ /* BSD compatibility */
  79. #define TIOCCBRK 0x5428 /* _IO('T', 40) */ /* BSD compatibility */
  80. #define TIOCGSID 0x80045429 /* _IOR('T', 41, pid_t) 0x5429 */ /* Return the session ID of FD */
  81. #define TIOCGPTN 0x80045430 /* _IOR('T',0x30, unsigned int) 0x5430 Get Pty Number (of pty-mux device) */
  82. #define TIOCSPTLCK 0x40045431 /* _IOW('T',0x31, int) Lock/unlock Pty */
  83. #define TIOCSERCONFIG 0x5453 /* _IO('T', 83) */
  84. #define TIOCSERGWILD 0x80045454 /* _IOR('T', 84, int) 0x5454 */
  85. #define TIOCSERSWILD 0x40045455 /* _IOW('T', 85, int) 0x5455 */
  86. #define TIOCGLCKTRMIOS 0x5456
  87. #define TIOCSLCKTRMIOS 0x5457
  88. #define TIOCSERGSTRUCT 0x80d85458 /* _IOR('T', 88, struct async_struct) 0x5458 */ /* For debugging only */
  89. #define TIOCSERGETLSR 0x80045459 /* _IOR('T', 89, unsigned int) 0x5459 */ /* Get line status register */
  90. /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
  91. #define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
  92. #define TIOCSERGETMULTI 0x80a8545a /* _IOR('T', 90, struct serial_multiport_struct) 0x545A */ /* Get multiport config */
  93. #define TIOCSERSETMULTI 0x40a8545b /* _IOW('T', 91, struct serial_multiport_struct) 0x545B */ /* Set multiport config */
  94. #define TIOCMIWAIT 0x545c /* _IO('T', 92) wait for a change on serial input line(s) */
  95. #define TIOCGICOUNT 0x545d /* read serial port inline interrupt counts */
  96. #endif /* __ASM_SH64_IOCTLS_H */