ioctls.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #ifndef __ARCH_M32R_IOCTLS_H__
  2. #define __ARCH_M32R_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 TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
  52. #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
  53. #define FIONCLEX 0x5450
  54. #define FIOCLEX 0x5451
  55. #define FIOASYNC 0x5452
  56. #define TIOCSERCONFIG 0x5453
  57. #define TIOCSERGWILD 0x5454
  58. #define TIOCSERSWILD 0x5455
  59. #define TIOCGLCKTRMIOS 0x5456
  60. #define TIOCSLCKTRMIOS 0x5457
  61. #define TIOCSERGSTRUCT 0x5458 /* For debugging only */
  62. #define TIOCSERGETLSR 0x5459 /* Get line status register */
  63. #define TIOCSERGETMULTI 0x545A /* Get multiport config */
  64. #define TIOCSERSETMULTI 0x545B /* Set multiport config */
  65. #define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
  66. #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
  67. #define TIOCGHAYESESP 0x545E /* Get Hayes ESP configuration */
  68. #define TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */
  69. #define FIOQSIZE 0x5460
  70. /* Used for packet mode */
  71. #define TIOCPKT_DATA 0
  72. #define TIOCPKT_FLUSHREAD 1
  73. #define TIOCPKT_FLUSHWRITE 2
  74. #define TIOCPKT_STOP 4
  75. #define TIOCPKT_START 8
  76. #define TIOCPKT_NOSTOP 16
  77. #define TIOCPKT_DOSTOP 32
  78. #define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
  79. #endif /* __ARCH_M32R_IOCTLS_H__ */