Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is subject to the terms and conditions of the GNU General Public |
| 3 | * License. See the file "COPYING" in the main directory of this archive |
| 4 | * for more details. |
| 5 | * |
| 6 | * Copyright (C) 1995, 1996, 2001 Ralf Baechle |
| 7 | * Copyright (C) 2001 MIPS Technologies, Inc. |
| 8 | */ |
| 9 | #ifndef __ASM_IOCTLS_H |
| 10 | #define __ASM_IOCTLS_H |
| 11 | |
| 12 | #include <asm/ioctl.h> |
| 13 | |
| 14 | #define TCGETA 0x5401 |
| 15 | #define TCSETA 0x5402 /* Clashes with SNDCTL_TMR_START sound ioctl */ |
| 16 | #define TCSETAW 0x5403 |
| 17 | #define TCSETAF 0x5404 |
| 18 | |
| 19 | #define TCSBRK 0x5405 |
| 20 | #define TCXONC 0x5406 |
| 21 | #define TCFLSH 0x5407 |
| 22 | |
| 23 | #define TCGETS 0x540d |
| 24 | #define TCSETS 0x540e |
| 25 | #define TCSETSW 0x540f |
| 26 | #define TCSETSF 0x5410 |
| 27 | |
| 28 | #define TIOCEXCL 0x740d /* set exclusive use of tty */ |
| 29 | #define TIOCNXCL 0x740e /* reset exclusive use of tty */ |
| 30 | #define TIOCOUTQ 0x7472 /* output queue size */ |
| 31 | #define TIOCSTI 0x5472 /* simulate terminal input */ |
| 32 | #define TIOCMGET 0x741d /* get all modem bits */ |
| 33 | #define TIOCMBIS 0x741b /* bis modem bits */ |
| 34 | #define TIOCMBIC 0x741c /* bic modem bits */ |
| 35 | #define TIOCMSET 0x741a /* set all modem bits */ |
| 36 | #define TIOCPKT 0x5470 /* pty: set/clear packet mode */ |
| 37 | #define TIOCPKT_DATA 0x00 /* data packet */ |
| 38 | #define TIOCPKT_FLUSHREAD 0x01 /* flush packet */ |
| 39 | #define TIOCPKT_FLUSHWRITE 0x02 /* flush packet */ |
| 40 | #define TIOCPKT_STOP 0x04 /* stop output */ |
| 41 | #define TIOCPKT_START 0x08 /* start output */ |
| 42 | #define TIOCPKT_NOSTOP 0x10 /* no more ^S, ^Q */ |
| 43 | #define TIOCPKT_DOSTOP 0x20 /* now do ^S ^Q */ |
hyc@symas.com | 26df6d1 | 2010-06-22 10:14:49 -0700 | [diff] [blame] | 44 | #define TIOCPKT_IOCTL 0x40 /* state change of pty driver */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | #define TIOCSWINSZ _IOW('t', 103, struct winsize) /* set window size */ |
| 46 | #define TIOCGWINSZ _IOR('t', 104, struct winsize) /* get window size */ |
| 47 | #define TIOCNOTTY 0x5471 /* void tty association */ |
| 48 | #define TIOCSETD 0x7401 |
| 49 | #define TIOCGETD 0x7400 |
| 50 | |
| 51 | #define FIOCLEX 0x6601 |
| 52 | #define FIONCLEX 0x6602 |
| 53 | #define FIOASYNC 0x667d |
| 54 | #define FIONBIO 0x667e |
| 55 | #define FIOQSIZE 0x667f |
| 56 | |
| 57 | #define TIOCGLTC 0x7474 /* get special local chars */ |
| 58 | #define TIOCSLTC 0x7475 /* set special local chars */ |
| 59 | #define TIOCSPGRP _IOW('t', 118, int) /* set pgrp of tty */ |
| 60 | #define TIOCGPGRP _IOR('t', 119, int) /* get pgrp of tty */ |
| 61 | #define TIOCCONS _IOW('t', 120, int) /* become virtual console */ |
| 62 | |
| 63 | #define FIONREAD 0x467f |
| 64 | #define TIOCINQ FIONREAD |
| 65 | |
| 66 | #define TIOCGETP 0x7408 |
| 67 | #define TIOCSETP 0x7409 |
| 68 | #define TIOCSETN 0x740a /* TIOCSETP wo flush */ |
| 69 | |
| 70 | /* #define TIOCSETA _IOW('t', 20, struct termios) set termios struct */ |
| 71 | /* #define TIOCSETAW _IOW('t', 21, struct termios) drain output, set */ |
| 72 | /* #define TIOCSETAF _IOW('t', 22, struct termios) drn out, fls in, set */ |
| 73 | /* #define TIOCGETD _IOR('t', 26, int) get line discipline */ |
| 74 | /* #define TIOCSETD _IOW('t', 27, int) set line discipline */ |
| 75 | /* 127-124 compat */ |
| 76 | |
| 77 | #define TIOCSBRK 0x5427 /* BSD compatibility */ |
| 78 | #define TIOCCBRK 0x5428 /* BSD compatibility */ |
| 79 | #define TIOCGSID 0x7416 /* Return the session ID of FD */ |
Ralf Baechle | 21a151d | 2007-10-11 23:46:15 +0100 | [diff] [blame] | 80 | #define TCGETS2 _IOR('T', 0x2A, struct termios2) |
| 81 | #define TCSETS2 _IOW('T', 0x2B, struct termios2) |
| 82 | #define TCSETSW2 _IOW('T', 0x2C, struct termios2) |
| 83 | #define TCSETSF2 _IOW('T', 0x2D, struct termios2) |
| 84 | #define TIOCGPTN _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ |
| 85 | #define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */ |
Werner Fink | b7b8de0 | 2010-12-03 12:48:23 +0100 | [diff] [blame] | 86 | #define TIOCGDEV _IOR('T', 0x32, unsigned int) /* Get primary device node of /dev/console */ |
hyc@symas.com | 26df6d1 | 2010-06-22 10:14:49 -0700 | [diff] [blame] | 87 | #define TIOCSIG _IOW('T', 0x36, int) /* Generate signal on Pty slave */ |
Kay Sievers | 3c95c98 | 2011-02-17 18:39:28 +0100 | [diff] [blame] | 88 | #define TIOCVHANGUP 0x5437 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | |
| 90 | /* I hope the range from 0x5480 on is free ... */ |
| 91 | #define TIOCSCTTY 0x5480 /* become controlling tty */ |
| 92 | #define TIOCGSOFTCAR 0x5481 |
| 93 | #define TIOCSSOFTCAR 0x5482 |
| 94 | #define TIOCLINUX 0x5483 |
| 95 | #define TIOCGSERIAL 0x5484 |
| 96 | #define TIOCSSERIAL 0x5485 |
| 97 | #define TCSBRKP 0x5486 /* Needed for POSIX tcsendbreak() */ |
| 98 | #define TIOCSERCONFIG 0x5488 |
| 99 | #define TIOCSERGWILD 0x5489 |
| 100 | #define TIOCSERSWILD 0x548a |
| 101 | #define TIOCGLCKTRMIOS 0x548b |
| 102 | #define TIOCSLCKTRMIOS 0x548c |
| 103 | #define TIOCSERGSTRUCT 0x548d /* For debugging only */ |
| 104 | #define TIOCSERGETLSR 0x548e /* Get line status register */ |
| 105 | #define TIOCSERGETMULTI 0x548f /* Get multiport config */ |
| 106 | #define TIOCSERSETMULTI 0x5490 /* Set multiport config */ |
| 107 | #define TIOCMIWAIT 0x5491 /* wait for a change on serial input line(s) */ |
| 108 | #define TIOCGICOUNT 0x5492 /* read serial port inline interrupt counts */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | |
| 110 | #endif /* __ASM_IOCTLS_H */ |