Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _ASM_POWERPC_IOCTLS_H
0003 #define _ASM_POWERPC_IOCTLS_H
0004 
0005 #include <asm/ioctl.h>
0006 
0007 #define FIOCLEX     _IO('f', 1)
0008 #define FIONCLEX    _IO('f', 2)
0009 #define FIOASYNC    _IOW('f', 125, int)
0010 #define FIONBIO     _IOW('f', 126, int)
0011 #define FIONREAD    _IOR('f', 127, int)
0012 #define TIOCINQ     FIONREAD
0013 #define FIOQSIZE    _IOR('f', 128, loff_t)
0014 
0015 #define TIOCGETP    _IOR('t', 8, struct sgttyb)
0016 #define TIOCSETP    _IOW('t', 9, struct sgttyb)
0017 #define TIOCSETN    _IOW('t', 10, struct sgttyb)    /* TIOCSETP wo flush */
0018 
0019 #define TIOCSETC    _IOW('t', 17, struct tchars)
0020 #define TIOCGETC    _IOR('t', 18, struct tchars)
0021 #define TCGETS      _IOR('t', 19, struct termios)
0022 #define TCSETS      _IOW('t', 20, struct termios)
0023 #define TCSETSW     _IOW('t', 21, struct termios)
0024 #define TCSETSF     _IOW('t', 22, struct termios)
0025 
0026 #define TCGETA      _IOR('t', 23, struct termio)
0027 #define TCSETA      _IOW('t', 24, struct termio)
0028 #define TCSETAW     _IOW('t', 25, struct termio)
0029 #define TCSETAF     _IOW('t', 28, struct termio)
0030 
0031 #define TCSBRK      _IO('t', 29)
0032 #define TCXONC      _IO('t', 30)
0033 #define TCFLSH      _IO('t', 31)
0034 
0035 #define TIOCSWINSZ  _IOW('t', 103, struct winsize)
0036 #define TIOCGWINSZ  _IOR('t', 104, struct winsize)
0037 #define TIOCSTART   _IO('t', 110)       /* start output, like ^Q */
0038 #define TIOCSTOP    _IO('t', 111)       /* stop output, like ^S */
0039 #define TIOCOUTQ        _IOR('t', 115, int)     /* output queue size */
0040 
0041 #define TIOCGLTC    _IOR('t', 116, struct ltchars)
0042 #define TIOCSLTC    _IOW('t', 117, struct ltchars)
0043 #define TIOCSPGRP   _IOW('t', 118, int)
0044 #define TIOCGPGRP   _IOR('t', 119, int)
0045 
0046 #define TIOCEXCL    0x540C
0047 #define TIOCNXCL    0x540D
0048 #define TIOCSCTTY   0x540E
0049 
0050 #define TIOCSTI     0x5412
0051 #define TIOCMGET    0x5415
0052 #define TIOCMBIS    0x5416
0053 #define TIOCMBIC    0x5417
0054 #define TIOCMSET    0x5418
0055 # define TIOCM_LE   0x001
0056 # define TIOCM_DTR  0x002
0057 # define TIOCM_RTS  0x004
0058 # define TIOCM_ST   0x008
0059 # define TIOCM_SR   0x010
0060 # define TIOCM_CTS  0x020
0061 # define TIOCM_CAR  0x040
0062 # define TIOCM_RNG  0x080
0063 # define TIOCM_DSR  0x100
0064 # define TIOCM_CD   TIOCM_CAR
0065 # define TIOCM_RI   TIOCM_RNG
0066 #define TIOCM_OUT1  0x2000
0067 #define TIOCM_OUT2  0x4000
0068 #define TIOCM_LOOP  0x8000
0069 
0070 #define TIOCGSOFTCAR    0x5419
0071 #define TIOCSSOFTCAR    0x541A
0072 #define TIOCLINUX   0x541C
0073 #define TIOCCONS    0x541D
0074 #define TIOCGSERIAL 0x541E
0075 #define TIOCSSERIAL 0x541F
0076 #define TIOCPKT     0x5420
0077 # define TIOCPKT_DATA        0
0078 # define TIOCPKT_FLUSHREAD   1
0079 # define TIOCPKT_FLUSHWRITE  2
0080 # define TIOCPKT_STOP        4
0081 # define TIOCPKT_START       8
0082 # define TIOCPKT_NOSTOP     16
0083 # define TIOCPKT_DOSTOP     32
0084 # define TIOCPKT_IOCTL      64
0085 
0086 
0087 #define TIOCNOTTY   0x5422
0088 #define TIOCSETD    0x5423
0089 #define TIOCGETD    0x5424
0090 #define TCSBRKP     0x5425  /* Needed for POSIX tcsendbreak() */
0091 #define TIOCSBRK    0x5427  /* BSD compatibility */
0092 #define TIOCCBRK    0x5428  /* BSD compatibility */
0093 #define TIOCGSID    0x5429  /* Return the session ID of FD */
0094 #define TIOCGRS485  0x542e
0095 #define TIOCSRS485  0x542f
0096 #define TIOCGPTN    _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
0097 #define TIOCSPTLCK  _IOW('T',0x31, int)  /* Lock/unlock Pty */
0098 #define TIOCGDEV    _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */
0099 #define TIOCSIG     _IOW('T',0x36, int)  /* Generate signal on Pty slave */
0100 #define TIOCVHANGUP 0x5437
0101 #define TIOCGPKT    _IOR('T', 0x38, int) /* Get packet mode state */
0102 #define TIOCGPTLCK  _IOR('T', 0x39, int) /* Get Pty lock state */
0103 #define TIOCGEXCL   _IOR('T', 0x40, int) /* Get exclusive mode state */
0104 #define TIOCGPTPEER _IO('T', 0x41) /* Safely open the slave */
0105 #define TIOCGISO7816    _IOR('T', 0x42, struct serial_iso7816)
0106 #define TIOCSISO7816    _IOWR('T', 0x43, struct serial_iso7816)
0107 
0108 #define TIOCSERCONFIG   0x5453
0109 #define TIOCSERGWILD    0x5454
0110 #define TIOCSERSWILD    0x5455
0111 #define TIOCGLCKTRMIOS  0x5456
0112 #define TIOCSLCKTRMIOS  0x5457
0113 #define TIOCSERGSTRUCT  0x5458 /* For debugging only */
0114 #define TIOCSERGETLSR   0x5459 /* Get line status register */
0115   /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
0116 # define TIOCSER_TEMT    0x01   /* Transmitter physically empty */
0117 #define TIOCSERGETMULTI 0x545A /* Get multiport config  */
0118 #define TIOCSERSETMULTI 0x545B /* Set multiport config */
0119 
0120 #define TIOCMIWAIT  0x545C  /* wait for a change on serial input line(s) */
0121 #define TIOCGICOUNT 0x545D  /* read serial port inline interrupt counts */
0122 
0123 #endif  /* _ASM_POWERPC_IOCTLS_H */