Back to index

glibc  2.9
ioctl-types.h
Go to the documentation of this file.
00001 /* Structure types for pre-termios terminal ioctls.  Linux/MIPS version.
00002    Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #ifndef _SYS_IOCTL_H
00021 # error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
00022 #endif
00023 
00024 /* Get definition of constants for use with `ioctl'.  */
00025 #include <asm/ioctls.h>
00026 
00027 struct winsize
00028   {
00029     unsigned short int ws_row;
00030     unsigned short int ws_col;
00031     unsigned short int ws_xpixel;
00032     unsigned short int ws_ypixel;
00033   };
00034 
00035 #define NCC   8
00036 struct termio
00037   {
00038     unsigned short int c_iflag;           /* input mode flags */
00039     unsigned short int c_oflag;           /* output mode flags */
00040     unsigned short int c_cflag;           /* control mode flags */
00041     unsigned short int c_lflag;           /* local mode flags */
00042     char c_line;                   /* line discipline */
00043     /* Yes, this is really NCCS.  */
00044     unsigned char c_cc[32 /* NCCS */]; /* control characters */
00045   };
00046 
00047 /* modem lines */
00048 #define TIOCM_LE     0x001         /* line enable */
00049 #define TIOCM_DTR    0x002         /* data terminal ready */
00050 #define TIOCM_RTS    0x004         /* request to send */
00051 #define TIOCM_ST     0x010         /* secondary transmit */
00052 #define TIOCM_SR     0x020         /* secondary receive */
00053 #define TIOCM_CTS    0x040         /* clear to send */
00054 #define TIOCM_CAR    0x100         /* carrier detect */
00055 #define TIOCM_CD     TIOCM_CAR
00056 #define TIOCM_RNG    0x200         /* ring */
00057 #define TIOCM_RI     TIOCM_RNG
00058 #define TIOCM_DSR    0x400         /* data set ready */
00059 
00060 /* line disciplines */
00061 #define N_TTY        0
00062 #define N_SLIP              1
00063 #define N_MOUSE             2
00064 #define N_PPP        3
00065 #define N_STRIP             4
00066 #define N_AX25              5
00067 #define N_X25        6      /* X.25 async  */
00068 #define N_6PACK             7
00069 #define N_MASC              8      /* Mobitex module  */
00070 #define N_R3964             9      /* Simatic R3964 module  */
00071 #define N_PROFIBUS_FDL      10     /* Profibus  */
00072 #define N_IRDA              11     /* Linux IR  */
00073 #define N_SMSBLOCK   12     /* SMS block mode  */
00074 #define N_HDLC              13     /* synchronous HDLC  */
00075 #define N_SYNC_PPP   14     /* synchronous PPP  */
00076 #define       N_HCI         15     /* Bluetooth HCI UART  */