~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-mips/ioctls.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* $Id: ioctls.h,v 1.5 1998/08/19 21:58:11 ralf Exp $
  2  *
  3  * This file is subject to the terms and conditions of the GNU General Public
  4  * License.  See the file "COPYING" in the main directory of this archive
  5  * for more details.
  6  *
  7  * Copyright (C) 1995, 1996 by Ralf Baechle
  8  */
  9 #ifndef __ASM_MIPS_IOCTLS_H
 10 #define __ASM_MIPS_IOCTLS_H
 11 
 12 #include <asm/ioctl.h>
 13 
 14 #if defined(__USE_MISC) || defined (__KERNEL__)
 15 #define tIOC            ('t' << 8)
 16 #endif
 17 
 18 #define TCGETA          0x5401
 19 #define TCSETA          0x5402
 20 #define TCSETAW         0x5403
 21 #define TCSETAF         0x5404
 22 
 23 #define TCSBRK          0x5405
 24 #define TCXONC          0x5406
 25 #define TCFLSH          0x5407
 26 
 27 #define TCGETS          0x540d
 28 #define TCSETS          0x540e
 29 #define TCSETSW         0x540f
 30 #define TCSETSF         0x5410
 31 
 32 #define TIOCEXCL        0x740d          /* set exclusive use of tty */
 33 #define TIOCNXCL        0x740e          /* reset exclusive use of tty */
 34 #define TIOCOUTQ        0x7472          /* output queue size */
 35 #define TIOCSTI         0x5472          /* simulate terminal input */
 36 #define TIOCMGET        0x741d          /* get all modem bits */
 37 #define TIOCMBIS        0x741b          /* bis modem bits */
 38 #define TIOCMBIC        0x741c          /* bic modem bits */
 39 #define TIOCMSET        0x741a          /* set all modem bits */
 40 #define TIOCPKT         0x5470          /* pty: set/clear packet mode */
 41 #define         TIOCPKT_DATA            0x00    /* data packet */
 42 #define         TIOCPKT_FLUSHREAD       0x01    /* flush packet */
 43 #define         TIOCPKT_FLUSHWRITE      0x02    /* flush packet */
 44 #define         TIOCPKT_STOP            0x04    /* stop output */
 45 #define         TIOCPKT_START           0x08    /* start output */
 46 #define         TIOCPKT_NOSTOP          0x10    /* no more ^S, ^Q */
 47 #define         TIOCPKT_DOSTOP          0x20    /* now do ^S ^Q */
 48 #if 0
 49 #define         TIOCPKT_IOCTL           0x40    /* state change of pty driver */
 50 #endif
 51 #define TIOCSWINSZ      _IOW('t', 103, struct winsize)  /* set window size */
 52 #define TIOCGWINSZ      _IOR('t', 104, struct winsize)  /* get window size */
 53 #define TIOCNOTTY       0x5471          /* void tty association */
 54 #define TIOCSETD        (tIOC | 1)
 55 #define TIOCGETD        (tIOC | 0)
 56 
 57 #define FIOCLEX         0x6601
 58 #define FIONCLEX        0x6602          /* these numbers need to be adjusted. */
 59 #define FIOASYNC        0x667d
 60 #define FIONBIO         0x667e
 61 
 62 #if defined(__USE_MISC) || defined (__KERNEL__)
 63 #define TIOCGLTC        (tIOC | 116)            /* get special local chars */
 64 #define TIOCSLTC        (tIOC | 117)            /* set special local chars */
 65 #endif
 66 #define TIOCSPGRP       _IOW('t', 118, int)     /* set pgrp of tty */
 67 #define TIOCGPGRP       _IOR('t', 119, int)     /* get pgrp of tty */
 68 #define TIOCCONS        _IOW('t', 120, int)     /* become virtual console */
 69 
 70 #define FIONREAD        0x467f
 71 #define TIOCINQ         FIONREAD
 72 
 73 #if defined(__USE_MISC) || defined (__KERNEL__)
 74 #define TIOCGETP        (tIOC | 8)
 75 #define TIOCSETP        (tIOC | 9)
 76 #define TIOCSETN        (tIOC | 10)             /* TIOCSETP wo flush */
 77 #endif
 78  
 79 #if 0
 80 #define TIOCSETA        _IOW('t', 20, struct termios) /* set termios struct */
 81 #define TIOCSETAW       _IOW('t', 21, struct termios) /* drain output, set */
 82 #define TIOCSETAF       _IOW('t', 22, struct termios) /* drn out, fls in, set */
 83 #define TIOCGETD        _IOR('t', 26, int)      /* get line discipline */
 84 #define TIOCSETD        _IOW('t', 27, int)      /* set line discipline */
 85                                                 /* 127-124 compat */
 86 #endif
 87 
 88 /* I hope the range from 0x5480 on is free ... */
 89 #define TIOCSCTTY       0x5480          /* become controlling tty */
 90 #define TIOCGSOFTCAR    0x5481
 91 #define TIOCSSOFTCAR    0x5482
 92 #define TIOCLINUX       0x5483
 93 #define TIOCGSERIAL     0x5484
 94 #define TIOCSSERIAL     0x5485
 95 
 96 #define TCSBRKP         0x5486  /* Needed for POSIX tcsendbreak() */
 97 #define TIOCTTYGSTRUCT  0x5487  /* For debugging only */
 98 #define TIOCSBRK        0x5427  /* BSD compatibility */
 99 #define TIOCCBRK        0x5428  /* BSD compatibility */
100 #define TIOCGSID        0x7416  /* Return the session ID of FD */
101 #define TIOCGPTN        _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
102 #define TIOCSPTLCK      _IOW('T',0x31, int)  /* Lock/unlock Pty */
103 
104 #define TIOCSERCONFIG   0x5488
105 #define TIOCSERGWILD    0x5489
106 #define TIOCSERSWILD    0x548a
107 #define TIOCGLCKTRMIOS  0x548b
108 #define TIOCSLCKTRMIOS  0x548c
109 #define TIOCSERGSTRUCT  0x548d /* For debugging only */
110 #define TIOCSERGETLSR   0x548e /* Get line status register */
111 #define TIOCSERGETMULTI 0x548f /* Get multiport config  */
112 #define TIOCSERSETMULTI 0x5490 /* Set multiport config */
113 #define TIOCMIWAIT      0x5491 /* wait for a change on serial input line(s) */
114 #define TIOCGICOUNT     0x5492 /* read serial port inline interrupt counts */
115 #define TIOCGHAYESESP   0x5493 /* Get Hayes ESP configuration */
116 #define TIOCSHAYESESP   0x5494 /* Set Hayes ESP configuration */
117 
118 #endif /* __ASM_MIPS_IOCTLS_H */
119 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.