Home | History | Annotate | Download | only in asm-generic
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef __ASM_GENERIC_TERMBITS_H
     20 #define __ASM_GENERIC_TERMBITS_H
     21 #include <linux/posix_types.h>
     22 typedef unsigned char cc_t;
     23 typedef unsigned int speed_t;
     24 typedef unsigned int tcflag_t;
     25 #define NCCS 19
     26 struct termios {
     27   tcflag_t c_iflag;
     28   tcflag_t c_oflag;
     29   tcflag_t c_cflag;
     30   tcflag_t c_lflag;
     31   cc_t c_line;
     32   cc_t c_cc[NCCS];
     33 };
     34 struct termios2 {
     35   tcflag_t c_iflag;
     36   tcflag_t c_oflag;
     37   tcflag_t c_cflag;
     38   tcflag_t c_lflag;
     39   cc_t c_line;
     40   cc_t c_cc[NCCS];
     41   speed_t c_ispeed;
     42   speed_t c_ospeed;
     43 };
     44 struct ktermios {
     45   tcflag_t c_iflag;
     46   tcflag_t c_oflag;
     47   tcflag_t c_cflag;
     48   tcflag_t c_lflag;
     49   cc_t c_line;
     50   cc_t c_cc[NCCS];
     51   speed_t c_ispeed;
     52   speed_t c_ospeed;
     53 };
     54 #define VINTR 0
     55 #define VQUIT 1
     56 #define VERASE 2
     57 #define VKILL 3
     58 #define VEOF 4
     59 #define VTIME 5
     60 #define VMIN 6
     61 #define VSWTC 7
     62 #define VSTART 8
     63 #define VSTOP 9
     64 #define VSUSP 10
     65 #define VEOL 11
     66 #define VREPRINT 12
     67 #define VDISCARD 13
     68 #define VWERASE 14
     69 #define VLNEXT 15
     70 #define VEOL2 16
     71 #define IGNBRK 0000001
     72 #define BRKINT 0000002
     73 #define IGNPAR 0000004
     74 #define PARMRK 0000010
     75 #define INPCK 0000020
     76 #define ISTRIP 0000040
     77 #define INLCR 0000100
     78 #define IGNCR 0000200
     79 #define ICRNL 0000400
     80 #define IUCLC 0001000
     81 #define IXON 0002000
     82 #define IXANY 0004000
     83 #define IXOFF 0010000
     84 #define IMAXBEL 0020000
     85 #define IUTF8 0040000
     86 #define OPOST 0000001
     87 #define OLCUC 0000002
     88 #define ONLCR 0000004
     89 #define OCRNL 0000010
     90 #define ONOCR 0000020
     91 #define ONLRET 0000040
     92 #define OFILL 0000100
     93 #define OFDEL 0000200
     94 #define NLDLY 0000400
     95 #define NL0 0000000
     96 #define NL1 0000400
     97 #define CRDLY 0003000
     98 #define CR0 0000000
     99 #define CR1 0001000
    100 #define CR2 0002000
    101 #define CR3 0003000
    102 #define TABDLY 0014000
    103 #define TAB0 0000000
    104 #define TAB1 0004000
    105 #define TAB2 0010000
    106 #define TAB3 0014000
    107 #define XTABS 0014000
    108 #define BSDLY 0020000
    109 #define BS0 0000000
    110 #define BS1 0020000
    111 #define VTDLY 0040000
    112 #define VT0 0000000
    113 #define VT1 0040000
    114 #define FFDLY 0100000
    115 #define FF0 0000000
    116 #define FF1 0100000
    117 #define CBAUD 0010017
    118 #define B0 0000000
    119 #define B50 0000001
    120 #define B75 0000002
    121 #define B110 0000003
    122 #define B134 0000004
    123 #define B150 0000005
    124 #define B200 0000006
    125 #define B300 0000007
    126 #define B600 0000010
    127 #define B1200 0000011
    128 #define B1800 0000012
    129 #define B2400 0000013
    130 #define B4800 0000014
    131 #define B9600 0000015
    132 #define B19200 0000016
    133 #define B38400 0000017
    134 #define EXTA B19200
    135 #define EXTB B38400
    136 #define CSIZE 0000060
    137 #define CS5 0000000
    138 #define CS6 0000020
    139 #define CS7 0000040
    140 #define CS8 0000060
    141 #define CSTOPB 0000100
    142 #define CREAD 0000200
    143 #define PARENB 0000400
    144 #define PARODD 0001000
    145 #define HUPCL 0002000
    146 #define CLOCAL 0004000
    147 #define CBAUDEX 0010000
    148 #define BOTHER 0010000
    149 #define B57600 0010001
    150 #define B115200 0010002
    151 #define B230400 0010003
    152 #define B460800 0010004
    153 #define B500000 0010005
    154 #define B576000 0010006
    155 #define B921600 0010007
    156 #define B1000000 0010010
    157 #define B1152000 0010011
    158 #define B1500000 0010012
    159 #define B2000000 0010013
    160 #define B2500000 0010014
    161 #define B3000000 0010015
    162 #define B3500000 0010016
    163 #define B4000000 0010017
    164 #define CIBAUD 002003600000
    165 #define CMSPAR 010000000000
    166 #define CRTSCTS 020000000000
    167 #define IBSHIFT 16
    168 #define ISIG 0000001
    169 #define ICANON 0000002
    170 #define XCASE 0000004
    171 #define ECHO 0000010
    172 #define ECHOE 0000020
    173 #define ECHOK 0000040
    174 #define ECHONL 0000100
    175 #define NOFLSH 0000200
    176 #define TOSTOP 0000400
    177 #define ECHOCTL 0001000
    178 #define ECHOPRT 0002000
    179 #define ECHOKE 0004000
    180 #define FLUSHO 0010000
    181 #define PENDIN 0040000
    182 #define IEXTEN 0100000
    183 #define EXTPROC 0200000
    184 #define TCOOFF 0
    185 #define TCOON 1
    186 #define TCIOFF 2
    187 #define TCION 3
    188 #define TCIFLUSH 0
    189 #define TCOFLUSH 1
    190 #define TCIOFLUSH 2
    191 #define TCSANOW 0
    192 #define TCSADRAIN 1
    193 #define TCSAFLUSH 2
    194 #endif
    195