Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * This file is subject to the terms and conditions of the GNU General Public
0004  * License.  See the file "COPYING" in the main directory of this archive
0005  * for more details.
0006  *
0007  * Copyright (C) 1995, 1996, 2001 Ralf Baechle
0008  * Copyright (C) 2001 MIPS Technologies, Inc.
0009  */
0010 #ifndef __ASM_IOCTLS_H
0011 #define __ASM_IOCTLS_H
0012 
0013 #include <asm/ioctl.h>
0014 
0015 #define TCGETA      0x5401
0016 #define TCSETA      0x5402  /* Clashes with SNDCTL_TMR_START sound ioctl */
0017 #define TCSETAW     0x5403
0018 #define TCSETAF     0x5404
0019 
0020 #define TCSBRK      0x5405
0021 #define TCXONC      0x5406
0022 #define TCFLSH      0x5407
0023 
0024 #define TCGETS      0x540d
0025 #define TCSETS      0x540e
0026 #define TCSETSW     0x540f
0027 #define TCSETSF     0x5410
0028 
0029 #define TIOCEXCL    0x740d      /* set exclusive use of tty */
0030 #define TIOCNXCL    0x740e      /* reset exclusive use of tty */
0031 #define TIOCOUTQ    0x7472      /* output queue size */
0032 #define TIOCSTI     0x5472      /* simulate terminal input */
0033 #define TIOCMGET    0x741d      /* get all modem bits */
0034 #define TIOCMBIS    0x741b      /* bis modem bits */
0035 #define TIOCMBIC    0x741c      /* bic modem bits */
0036 #define TIOCMSET    0x741a      /* set all modem bits */
0037 #define TIOCPKT     0x5470      /* pty: set/clear packet mode */
0038 #define  TIOCPKT_DATA       0x00    /* data packet */
0039 #define  TIOCPKT_FLUSHREAD  0x01    /* flush packet */
0040 #define  TIOCPKT_FLUSHWRITE 0x02    /* flush packet */
0041 #define  TIOCPKT_STOP       0x04    /* stop output */
0042 #define  TIOCPKT_START      0x08    /* start output */
0043 #define  TIOCPKT_NOSTOP     0x10    /* no more ^S, ^Q */
0044 #define  TIOCPKT_DOSTOP     0x20    /* now do ^S ^Q */
0045 #define  TIOCPKT_IOCTL      0x40    /* state change of pty driver */
0046 #define TIOCSWINSZ  _IOW('t', 103, struct winsize)  /* set window size */
0047 #define TIOCGWINSZ  _IOR('t', 104, struct winsize)  /* get window size */
0048 #define TIOCNOTTY   0x5471      /* void tty association */
0049 #define TIOCSETD    0x7401
0050 #define TIOCGETD    0x7400
0051 
0052 #define FIOCLEX     0x6601
0053 #define FIONCLEX    0x6602
0054 #define FIOASYNC    0x667d
0055 #define FIONBIO     0x667e
0056 #define FIOQSIZE    0x667f
0057 
0058 #define TIOCGLTC    0x7474          /* get special local chars */
0059 #define TIOCSLTC    0x7475          /* set special local chars */
0060 #define TIOCSPGRP   _IOW('t', 118, int) /* set pgrp of tty */
0061 #define TIOCGPGRP   _IOR('t', 119, int) /* get pgrp of tty */
0062 #define TIOCCONS    _IOW('t', 120, int) /* become virtual console */
0063 
0064 #define FIONREAD    0x467f
0065 #define TIOCINQ     FIONREAD
0066 
0067 #define TIOCGETP    0x7408
0068 #define TIOCSETP    0x7409
0069 #define TIOCSETN    0x740a          /* TIOCSETP wo flush */
0070 
0071 /* #define TIOCSETA _IOW('t', 20, struct termios) set termios struct */
0072 /* #define TIOCSETAW    _IOW('t', 21, struct termios) drain output, set */
0073 /* #define TIOCSETAF    _IOW('t', 22, struct termios) drn out, fls in, set */
0074 /* #define TIOCGETD _IOR('t', 26, int)  get line discipline */
0075 /* #define TIOCSETD _IOW('t', 27, int)  set line discipline */
0076                         /* 127-124 compat */
0077 
0078 #define TIOCSBRK    0x5427  /* BSD compatibility */
0079 #define TIOCCBRK    0x5428  /* BSD compatibility */
0080 #define TIOCGSID    0x7416  /* Return the session ID of FD */
0081 #define TCGETS2     _IOR('T', 0x2A, struct termios2)
0082 #define TCSETS2     _IOW('T', 0x2B, struct termios2)
0083 #define TCSETSW2    _IOW('T', 0x2C, struct termios2)
0084 #define TCSETSF2    _IOW('T', 0x2D, struct termios2)
0085 #define TIOCGRS485  _IOR('T', 0x2E, struct serial_rs485)
0086 #define TIOCSRS485  _IOWR('T', 0x2F, struct serial_rs485)
0087 #define TIOCGPTN    _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
0088 #define TIOCSPTLCK  _IOW('T', 0x31, int)  /* Lock/unlock Pty */
0089 #define TIOCGDEV    _IOR('T', 0x32, unsigned int) /* Get primary device node of /dev/console */
0090 #define TIOCSIG     _IOW('T', 0x36, int)  /* Generate signal on Pty slave */
0091 #define TIOCVHANGUP 0x5437
0092 #define TIOCGPKT    _IOR('T', 0x38, int) /* Get packet mode state */
0093 #define TIOCGPTLCK  _IOR('T', 0x39, int) /* Get Pty lock state */
0094 #define TIOCGEXCL   _IOR('T', 0x40, int) /* Get exclusive mode state */
0095 #define TIOCGPTPEER _IO('T', 0x41) /* Safely open the slave */
0096 #define TIOCGISO7816    _IOR('T', 0x42, struct serial_iso7816)
0097 #define TIOCSISO7816    _IOWR('T', 0x43, struct serial_iso7816)
0098 
0099 /* I hope the range from 0x5480 on is free ... */
0100 #define TIOCSCTTY   0x5480      /* become controlling tty */
0101 #define TIOCGSOFTCAR    0x5481
0102 #define TIOCSSOFTCAR    0x5482
0103 #define TIOCLINUX   0x5483
0104 #define TIOCGSERIAL 0x5484
0105 #define TIOCSSERIAL 0x5485
0106 #define TCSBRKP     0x5486  /* Needed for POSIX tcsendbreak() */
0107 #define TIOCSERCONFIG   0x5488
0108 #define TIOCSERGWILD    0x5489
0109 #define TIOCSERSWILD    0x548a
0110 #define TIOCGLCKTRMIOS  0x548b
0111 #define TIOCSLCKTRMIOS  0x548c
0112 #define TIOCSERGSTRUCT  0x548d /* For debugging only */
0113 #define TIOCSERGETLSR   0x548e /* Get line status register */
0114 #define TIOCSERGETMULTI 0x548f /* Get multiport config  */
0115 #define TIOCSERSETMULTI 0x5490 /* Set multiport config */
0116 #define TIOCMIWAIT  0x5491 /* wait for a change on serial input line(s) */
0117 #define TIOCGICOUNT 0x5492 /* read serial port inline interrupt counts */
0118 
0119 #endif /* __ASM_IOCTLS_H */