ioctls.h 2.9 KB

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