Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_SPARC_IOCTLS_H |
| 2 | #define _ASM_SPARC_IOCTLS_H |
| 3 | |
| 4 | #include <asm/ioctl.h> |
| 5 | |
| 6 | /* Big T */ |
| 7 | #define TCGETA _IOR('T', 1, struct termio) |
| 8 | #define TCSETA _IOW('T', 2, struct termio) |
| 9 | #define TCSETAW _IOW('T', 3, struct termio) |
| 10 | #define TCSETAF _IOW('T', 4, struct termio) |
| 11 | #define TCSBRK _IO('T', 5) |
| 12 | #define TCXONC _IO('T', 6) |
| 13 | #define TCFLSH _IO('T', 7) |
| 14 | #define TCGETS _IOR('T', 8, struct termios) |
| 15 | #define TCSETS _IOW('T', 9, struct termios) |
| 16 | #define TCSETSW _IOW('T', 10, struct termios) |
| 17 | #define TCSETSF _IOW('T', 11, struct termios) |
David Miller | 6050afb | 2007-10-17 19:38:10 -0700 | [diff] [blame] | 18 | #define TCGETS2 _IOR('T', 12, struct termios2) |
| 19 | #define TCSETS2 _IOW('T', 13, struct termios2) |
| 20 | #define TCSETSW2 _IOW('T', 14, struct termios2) |
| 21 | #define TCSETSF2 _IOW('T', 15, struct termios2) |
Werner Fink | b7b8de0 | 2010-12-03 12:48:23 +0100 | [diff] [blame^] | 22 | #define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
| 24 | /* Note that all the ioctls that are not available in Linux have a |
| 25 | * double underscore on the front to: a) avoid some programs to |
Sam Ravnborg | f1ba03c | 2008-06-05 22:45:50 +0200 | [diff] [blame] | 26 | * think we support some ioctls under Linux (autoconfiguration stuff) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | */ |
| 28 | /* Little t */ |
| 29 | #define TIOCGETD _IOR('t', 0, int) |
| 30 | #define TIOCSETD _IOW('t', 1, int) |
| 31 | #define __TIOCHPCL _IO('t', 2) /* SunOS Specific */ |
| 32 | #define __TIOCMODG _IOR('t', 3, int) /* SunOS Specific */ |
| 33 | #define __TIOCMODS _IOW('t', 4, int) /* SunOS Specific */ |
| 34 | #define __TIOCGETP _IOR('t', 8, struct sgttyb) /* SunOS Specific */ |
| 35 | #define __TIOCSETP _IOW('t', 9, struct sgttyb) /* SunOS Specific */ |
| 36 | #define __TIOCSETN _IOW('t', 10, struct sgttyb) /* SunOS Specific */ |
| 37 | #define TIOCEXCL _IO('t', 13) |
| 38 | #define TIOCNXCL _IO('t', 14) |
| 39 | #define __TIOCFLUSH _IOW('t', 16, int) /* SunOS Specific */ |
| 40 | #define __TIOCSETC _IOW('t', 17, struct tchars) /* SunOS Specific */ |
| 41 | #define __TIOCGETC _IOR('t', 18, struct tchars) /* SunOS Specific */ |
| 42 | #define __TIOCTCNTL _IOW('t', 32, int) /* SunOS Specific */ |
| 43 | #define __TIOCSIGNAL _IOW('t', 33, int) /* SunOS Specific */ |
| 44 | #define __TIOCSETX _IOW('t', 34, int) /* SunOS Specific */ |
| 45 | #define __TIOCGETX _IOR('t', 35, int) /* SunOS Specific */ |
| 46 | #define TIOCCONS _IO('t', 36) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | #define TIOCGSOFTCAR _IOR('t', 100, int) |
| 48 | #define TIOCSSOFTCAR _IOW('t', 101, int) |
| 49 | #define __TIOCUCNTL _IOW('t', 102, int) /* SunOS Specific */ |
| 50 | #define TIOCSWINSZ _IOW('t', 103, struct winsize) |
| 51 | #define TIOCGWINSZ _IOR('t', 104, struct winsize) |
| 52 | #define __TIOCREMOTE _IOW('t', 105, int) /* SunOS Specific */ |
| 53 | #define TIOCMGET _IOR('t', 106, int) |
| 54 | #define TIOCMBIC _IOW('t', 107, int) |
| 55 | #define TIOCMBIS _IOW('t', 108, int) |
| 56 | #define TIOCMSET _IOW('t', 109, int) |
| 57 | #define TIOCSTART _IO('t', 110) |
| 58 | #define TIOCSTOP _IO('t', 111) |
| 59 | #define TIOCPKT _IOW('t', 112, int) |
| 60 | #define TIOCNOTTY _IO('t', 113) |
| 61 | #define TIOCSTI _IOW('t', 114, char) |
| 62 | #define TIOCOUTQ _IOR('t', 115, int) |
| 63 | #define __TIOCGLTC _IOR('t', 116, struct ltchars) /* SunOS Specific */ |
| 64 | #define __TIOCSLTC _IOW('t', 117, struct ltchars) /* SunOS Specific */ |
| 65 | /* 118 is the non-posix setpgrp tty ioctl */ |
| 66 | /* 119 is the non-posix getpgrp tty ioctl */ |
| 67 | #define __TIOCCDTR _IO('t', 120) /* SunOS Specific */ |
| 68 | #define __TIOCSDTR _IO('t', 121) /* SunOS Specific */ |
| 69 | #define TIOCCBRK _IO('t', 122) |
| 70 | #define TIOCSBRK _IO('t', 123) |
| 71 | #define __TIOCLGET _IOW('t', 124, int) /* SunOS Specific */ |
| 72 | #define __TIOCLSET _IOW('t', 125, int) /* SunOS Specific */ |
| 73 | #define __TIOCLBIC _IOW('t', 126, int) /* SunOS Specific */ |
| 74 | #define __TIOCLBIS _IOW('t', 127, int) /* SunOS Specific */ |
| 75 | #define __TIOCISPACE _IOR('t', 128, int) /* SunOS Specific */ |
| 76 | #define __TIOCISIZE _IOR('t', 129, int) /* SunOS Specific */ |
| 77 | #define TIOCSPGRP _IOW('t', 130, int) |
| 78 | #define TIOCGPGRP _IOR('t', 131, int) |
| 79 | #define TIOCSCTTY _IO('t', 132) |
| 80 | #define TIOCGSID _IOR('t', 133, int) |
| 81 | /* Get minor device of a pty master's FD -- Solaris equiv is ISPTM */ |
| 82 | #define TIOCGPTN _IOR('t', 134, unsigned int) /* Get Pty Number */ |
| 83 | #define TIOCSPTLCK _IOW('t', 135, int) /* Lock/unlock PTY */ |
hyc@symas.com | 26df6d1 | 2010-06-22 10:14:49 -0700 | [diff] [blame] | 84 | #define TIOCSIG _IOW('t', 136, int) /* Generate signal on Pty slave */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | |
| 86 | /* Little f */ |
| 87 | #define FIOCLEX _IO('f', 1) |
| 88 | #define FIONCLEX _IO('f', 2) |
| 89 | #define FIOASYNC _IOW('f', 125, int) |
| 90 | #define FIONBIO _IOW('f', 126, int) |
| 91 | #define FIONREAD _IOR('f', 127, int) |
| 92 | #define TIOCINQ FIONREAD |
| 93 | #define FIOQSIZE _IOR('f', 128, loff_t) |
| 94 | |
| 95 | /* SCARY Rutgers local SunOS kernel hackery, perhaps I will support it |
| 96 | * someday. This is completely bogus, I know... |
| 97 | */ |
| 98 | #define __TCGETSTAT _IO('T', 200) /* Rutgers specific */ |
| 99 | #define __TCSETSTAT _IO('T', 201) /* Rutgers specific */ |
| 100 | |
| 101 | /* Linux specific, no SunOS equivalent. */ |
| 102 | #define TIOCLINUX 0x541C |
| 103 | #define TIOCGSERIAL 0x541E |
| 104 | #define TIOCSSERIAL 0x541F |
| 105 | #define TCSBRKP 0x5425 |
| 106 | #define TIOCSERCONFIG 0x5453 |
| 107 | #define TIOCSERGWILD 0x5454 |
| 108 | #define TIOCSERSWILD 0x5455 |
| 109 | #define TIOCGLCKTRMIOS 0x5456 |
| 110 | #define TIOCSLCKTRMIOS 0x5457 |
| 111 | #define TIOCSERGSTRUCT 0x5458 /* For debugging only */ |
| 112 | #define TIOCSERGETLSR 0x5459 /* Get line status register */ |
| 113 | #define TIOCSERGETMULTI 0x545A /* Get multiport config */ |
| 114 | #define TIOCSERSETMULTI 0x545B /* Set multiport config */ |
Sam Ravnborg | f1ba03c | 2008-06-05 22:45:50 +0200 | [diff] [blame] | 115 | #define TIOCMIWAIT 0x545C /* Wait for change on serial input line(s) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 116 | #define TIOCGICOUNT 0x545D /* Read serial port inline interrupt counts */ |
| 117 | |
| 118 | /* Kernel definitions */ |
| 119 | #ifdef __KERNEL__ |
| 120 | #define TIOCGETC __TIOCGETC |
| 121 | #define TIOCGETP __TIOCGETP |
| 122 | #define TIOCGLTC __TIOCGLTC |
| 123 | #define TIOCSLTC __TIOCSLTC |
| 124 | #define TIOCSETP __TIOCSETP |
| 125 | #define TIOCSETN __TIOCSETN |
| 126 | #define TIOCSETC __TIOCSETC |
| 127 | #endif |
| 128 | |
| 129 | /* Used for packet mode */ |
| 130 | #define TIOCPKT_DATA 0 |
| 131 | #define TIOCPKT_FLUSHREAD 1 |
| 132 | #define TIOCPKT_FLUSHWRITE 2 |
| 133 | #define TIOCPKT_STOP 4 |
| 134 | #define TIOCPKT_START 8 |
| 135 | #define TIOCPKT_NOSTOP 16 |
| 136 | #define TIOCPKT_DOSTOP 32 |
hyc@symas.com | 26df6d1 | 2010-06-22 10:14:49 -0700 | [diff] [blame] | 137 | #define TIOCPKT_IOCTL 64 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 138 | |
| 139 | #endif /* !(_ASM_SPARC_IOCTLS_H) */ |