ioctls.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #ifndef _ASM_X86_IOCTLS_H
  2. #define _ASM_X86_IOCTLS_H
  3. #include <asm/ioctl.h>
  4. /* 0x54 is just a magic number to make these relatively unique ('T') */
  5. #define TCGETS 0x5401
  6. #define TCSETS 0x5402 /* Clashes with SNDCTL_TMR_START sound ioctl */
  7. #define TCSETSW 0x5403
  8. #define TCSETSF 0x5404
  9. #define TCGETA 0x5405
  10. #define TCSETA 0x5406
  11. #define TCSETAW 0x5407
  12. #define TCSETAF 0x5408
  13. #define TCSBRK 0x5409
  14. #define TCXONC 0x540A
  15. #define TCFLSH 0x540B
  16. #define TIOCEXCL 0x540C
  17. #define TIOCNXCL 0x540D
  18. #define TIOCSCTTY 0x540E
  19. #define TIOCGPGRP 0x540F
  20. #define TIOCSPGRP 0x5410
  21. #define TIOCOUTQ 0x5411
  22. #define TIOCSTI 0x5412
  23. #define TIOCGWINSZ 0x5413
  24. #define TIOCSWINSZ 0x5414
  25. #define TIOCMGET 0x5415
  26. #define TIOCMBIS 0x5416
  27. #define TIOCMBIC 0x5417
  28. #define TIOCMSET 0x5418
  29. #define TIOCGSOFTCAR 0x5419
  30. #define TIOCSSOFTCAR 0x541A
  31. #define FIONREAD 0x541B
  32. #define TIOCINQ FIONREAD
  33. #define TIOCLINUX 0x541C
  34. #define TIOCCONS 0x541D
  35. #define TIOCGSERIAL 0x541E
  36. #define TIOCSSERIAL 0x541F
  37. #define TIOCPKT 0x5420
  38. #define FIONBIO 0x5421
  39. #define TIOCNOTTY 0x5422
  40. #define TIOCSETD 0x5423
  41. #define TIOCGETD 0x5424
  42. #define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */
  43. /* #define TIOCTTYGSTRUCT 0x5426 - Former debugging-only ioctl */
  44. #define TIOCSBRK 0x5427 /* BSD compatibility */
  45. #define TIOCCBRK 0x5428 /* BSD compatibility */
  46. #define TIOCGSID 0x5429 /* Return the session ID of FD */
  47. #define TCGETS2 _IOR('T', 0x2A, struct termios2)
  48. #define TCSETS2 _IOW('T', 0x2B, struct termios2)
  49. #define TCSETSW2 _IOW('T', 0x2C, struct termios2)
  50. #define TCSETSF2 _IOW('T', 0x2D, struct termios2)
  51. #define TIOCGRS485 0x542E
  52. #define TIOCSRS485 0x542F
  53. #define TIOCGPTN _IOR('T', 0x30, unsigned int)
  54. /* Get Pty Number (of pty-mux device) */
  55. #define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */
  56. #define TCGETX 0x5432 /* SYS5 TCGETX compatibility */
  57. #define TCSETX 0x5433
  58. #define TCSETXF 0x5434
  59. #define TCSETXW 0x5435
  60. #define FIONCLEX 0x5450
  61. #define FIOCLEX 0x5451
  62. #define FIOASYNC 0x5452
  63. #define TIOCSERCONFIG 0x5453
  64. #define TIOCSERGWILD 0x5454
  65. #define TIOCSERSWILD 0x5455
  66. #define TIOCGLCKTRMIOS 0x5456
  67. #define TIOCSLCKTRMIOS 0x5457
  68. #define TIOCSERGSTRUCT 0x5458 /* For debugging only */
  69. #define TIOCSERGETLSR 0x5459 /* Get line status register */
  70. #define TIOCSERGETMULTI 0x545A /* Get multiport config */
  71. #define TIOCSERSETMULTI 0x545B /* Set multiport config */
  72. #define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
  73. #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
  74. #define TIOCGHAYESESP 0x545E /* Get Hayes ESP configuration */
  75. #define TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */
  76. #define FIOQSIZE 0x5460
  77. /* Used for packet mode */
  78. #define TIOCPKT_DATA 0
  79. #define TIOCPKT_FLUSHREAD 1
  80. #define TIOCPKT_FLUSHWRITE 2
  81. #define TIOCPKT_STOP 4
  82. #define TIOCPKT_START 8
  83. #define TIOCPKT_NOSTOP 16
  84. #define TIOCPKT_DOSTOP 32
  85. #define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
  86. #endif /* _ASM_X86_IOCTLS_H */