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

TOMOYO Linux Cross Reference
Linux/include/uapi/asm-generic/termbits.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/asm-generic/termbits.h (Version linux-6.12-rc7) and /include/uapi/asm-generic/termbits.h (Version linux-4.13.16)


  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 
  2 #ifndef __ASM_GENERIC_TERMBITS_H                    1 #ifndef __ASM_GENERIC_TERMBITS_H
  3 #define __ASM_GENERIC_TERMBITS_H                    2 #define __ASM_GENERIC_TERMBITS_H
  4                                                     3 
  5 #include <asm-generic/termbits-common.h>       !!   4 #include <linux/posix_types.h>
  6                                                     5 
                                                   >>   6 typedef unsigned char   cc_t;
                                                   >>   7 typedef unsigned int    speed_t;
  7 typedef unsigned int    tcflag_t;                   8 typedef unsigned int    tcflag_t;
  8                                                     9 
  9 #define NCCS 19                                    10 #define NCCS 19
 10 struct termios {                                   11 struct termios {
 11         tcflag_t c_iflag;               /* inp     12         tcflag_t c_iflag;               /* input mode flags */
 12         tcflag_t c_oflag;               /* out     13         tcflag_t c_oflag;               /* output mode flags */
 13         tcflag_t c_cflag;               /* con     14         tcflag_t c_cflag;               /* control mode flags */
 14         tcflag_t c_lflag;               /* loc     15         tcflag_t c_lflag;               /* local mode flags */
 15         cc_t c_line;                    /* lin     16         cc_t c_line;                    /* line discipline */
 16         cc_t c_cc[NCCS];                /* con     17         cc_t c_cc[NCCS];                /* control characters */
 17 };                                                 18 };
 18                                                    19 
 19 struct termios2 {                                  20 struct termios2 {
 20         tcflag_t c_iflag;               /* inp     21         tcflag_t c_iflag;               /* input mode flags */
 21         tcflag_t c_oflag;               /* out     22         tcflag_t c_oflag;               /* output mode flags */
 22         tcflag_t c_cflag;               /* con     23         tcflag_t c_cflag;               /* control mode flags */
 23         tcflag_t c_lflag;               /* loc     24         tcflag_t c_lflag;               /* local mode flags */
 24         cc_t c_line;                    /* lin     25         cc_t c_line;                    /* line discipline */
 25         cc_t c_cc[NCCS];                /* con     26         cc_t c_cc[NCCS];                /* control characters */
 26         speed_t c_ispeed;               /* inp     27         speed_t c_ispeed;               /* input speed */
 27         speed_t c_ospeed;               /* out     28         speed_t c_ospeed;               /* output speed */
 28 };                                                 29 };
 29                                                    30 
 30 struct ktermios {                                  31 struct ktermios {
 31         tcflag_t c_iflag;               /* inp     32         tcflag_t c_iflag;               /* input mode flags */
 32         tcflag_t c_oflag;               /* out     33         tcflag_t c_oflag;               /* output mode flags */
 33         tcflag_t c_cflag;               /* con     34         tcflag_t c_cflag;               /* control mode flags */
 34         tcflag_t c_lflag;               /* loc     35         tcflag_t c_lflag;               /* local mode flags */
 35         cc_t c_line;                    /* lin     36         cc_t c_line;                    /* line discipline */
 36         cc_t c_cc[NCCS];                /* con     37         cc_t c_cc[NCCS];                /* control characters */
 37         speed_t c_ispeed;               /* inp     38         speed_t c_ispeed;               /* input speed */
 38         speed_t c_ospeed;               /* out     39         speed_t c_ospeed;               /* output speed */
 39 };                                                 40 };
 40                                                    41 
 41 /* c_cc characters */                              42 /* c_cc characters */
 42 #define VINTR            0                     !!  43 #define VINTR 0
 43 #define VQUIT            1                     !!  44 #define VQUIT 1
 44 #define VERASE           2                     !!  45 #define VERASE 2
 45 #define VKILL            3                     !!  46 #define VKILL 3
 46 #define VEOF             4                     !!  47 #define VEOF 4
 47 #define VTIME            5                     !!  48 #define VTIME 5
 48 #define VMIN             6                     !!  49 #define VMIN 6
 49 #define VSWTC            7                     !!  50 #define VSWTC 7
 50 #define VSTART           8                     !!  51 #define VSTART 8
 51 #define VSTOP            9                     !!  52 #define VSTOP 9
 52 #define VSUSP           10                     !!  53 #define VSUSP 10
 53 #define VEOL            11                     !!  54 #define VEOL 11
 54 #define VREPRINT        12                     !!  55 #define VREPRINT 12
 55 #define VDISCARD        13                     !!  56 #define VDISCARD 13
 56 #define VWERASE         14                     !!  57 #define VWERASE 14
 57 #define VLNEXT          15                     !!  58 #define VLNEXT 15
 58 #define VEOL2           16                     !!  59 #define VEOL2 16
 59                                                    60 
 60 /* c_iflag bits */                                 61 /* c_iflag bits */
 61 #define IUCLC   0x0200                         !!  62 #define IGNBRK  0000001
 62 #define IXON    0x0400                         !!  63 #define BRKINT  0000002
 63 #define IXOFF   0x1000                         !!  64 #define IGNPAR  0000004
 64 #define IMAXBEL 0x2000                         !!  65 #define PARMRK  0000010
 65 #define IUTF8   0x4000                         !!  66 #define INPCK   0000020
                                                   >>  67 #define ISTRIP  0000040
                                                   >>  68 #define INLCR   0000100
                                                   >>  69 #define IGNCR   0000200
                                                   >>  70 #define ICRNL   0000400
                                                   >>  71 #define IUCLC   0001000
                                                   >>  72 #define IXON    0002000
                                                   >>  73 #define IXANY   0004000
                                                   >>  74 #define IXOFF   0010000
                                                   >>  75 #define IMAXBEL 0020000
                                                   >>  76 #define IUTF8   0040000
 66                                                    77 
 67 /* c_oflag bits */                                 78 /* c_oflag bits */
 68 #define OLCUC   0x00002                        !!  79 #define OPOST   0000001
 69 #define ONLCR   0x00004                        !!  80 #define OLCUC   0000002
 70 #define NLDLY   0x00100                        !!  81 #define ONLCR   0000004
 71 #define   NL0   0x00000                        !!  82 #define OCRNL   0000010
 72 #define   NL1   0x00100                        !!  83 #define ONOCR   0000020
 73 #define CRDLY   0x00600                        !!  84 #define ONLRET  0000040
 74 #define   CR0   0x00000                        !!  85 #define OFILL   0000100
 75 #define   CR1   0x00200                        !!  86 #define OFDEL   0000200
 76 #define   CR2   0x00400                        !!  87 #define NLDLY   0000400
 77 #define   CR3   0x00600                        !!  88 #define   NL0   0000000
 78 #define TABDLY  0x01800                        !!  89 #define   NL1   0000400
 79 #define   TAB0  0x00000                        !!  90 #define CRDLY   0003000
 80 #define   TAB1  0x00800                        !!  91 #define   CR0   0000000
 81 #define   TAB2  0x01000                        !!  92 #define   CR1   0001000
 82 #define   TAB3  0x01800                        !!  93 #define   CR2   0002000
 83 #define   XTABS 0x01800                        !!  94 #define   CR3   0003000
 84 #define BSDLY   0x02000                        !!  95 #define TABDLY  0014000
 85 #define   BS0   0x00000                        !!  96 #define   TAB0  0000000
 86 #define   BS1   0x02000                        !!  97 #define   TAB1  0004000
 87 #define VTDLY   0x04000                        !!  98 #define   TAB2  0010000
 88 #define   VT0   0x00000                        !!  99 #define   TAB3  0014000
 89 #define   VT1   0x04000                        !! 100 #define   XTABS 0014000
 90 #define FFDLY   0x08000                        !! 101 #define BSDLY   0020000
 91 #define   FF0   0x00000                        !! 102 #define   BS0   0000000
 92 #define   FF1   0x08000                        !! 103 #define   BS1   0020000
                                                   >> 104 #define VTDLY   0040000
                                                   >> 105 #define   VT0   0000000
                                                   >> 106 #define   VT1   0040000
                                                   >> 107 #define FFDLY   0100000
                                                   >> 108 #define   FF0   0000000
                                                   >> 109 #define   FF1   0100000
 93                                                   110 
 94 /* c_cflag bit meaning */                         111 /* c_cflag bit meaning */
 95 #define CBAUD           0x0000100f             !! 112 #define CBAUD   0010017
 96 #define CSIZE           0x00000030             !! 113 #define  B0     0000000         /* hang up */
 97 #define   CS5           0x00000000             !! 114 #define  B50    0000001
 98 #define   CS6           0x00000010             !! 115 #define  B75    0000002
 99 #define   CS7           0x00000020             !! 116 #define  B110   0000003
100 #define   CS8           0x00000030             !! 117 #define  B134   0000004
101 #define CSTOPB          0x00000040             !! 118 #define  B150   0000005
102 #define CREAD           0x00000080             !! 119 #define  B200   0000006
103 #define PARENB          0x00000100             !! 120 #define  B300   0000007
104 #define PARODD          0x00000200             !! 121 #define  B600   0000010
105 #define HUPCL           0x00000400             !! 122 #define  B1200  0000011
106 #define CLOCAL          0x00000800             !! 123 #define  B1800  0000012
107 #define CBAUDEX         0x00001000             !! 124 #define  B2400  0000013
108 #define BOTHER          0x00001000             !! 125 #define  B4800  0000014
109 #define     B57600      0x00001001             !! 126 #define  B9600  0000015
110 #define    B115200      0x00001002             !! 127 #define  B19200 0000016
111 #define    B230400      0x00001003             !! 128 #define  B38400 0000017
112 #define    B460800      0x00001004             !! 129 #define EXTA B19200
113 #define    B500000      0x00001005             !! 130 #define EXTB B38400
114 #define    B576000      0x00001006             !! 131 #define CSIZE   0000060
115 #define    B921600      0x00001007             !! 132 #define   CS5   0000000
116 #define   B1000000      0x00001008             !! 133 #define   CS6   0000020
117 #define   B1152000      0x00001009             !! 134 #define   CS7   0000040
118 #define   B1500000      0x0000100a             !! 135 #define   CS8   0000060
119 #define   B2000000      0x0000100b             !! 136 #define CSTOPB  0000100
120 #define   B2500000      0x0000100c             !! 137 #define CREAD   0000200
121 #define   B3000000      0x0000100d             !! 138 #define PARENB  0000400
122 #define   B3500000      0x0000100e             !! 139 #define PARODD  0001000
123 #define   B4000000      0x0000100f             !! 140 #define HUPCL   0002000
124 #define CIBAUD          0x100f0000      /* inp !! 141 #define CLOCAL  0004000
                                                   >> 142 #define CBAUDEX 0010000
                                                   >> 143 #define    BOTHER 0010000
                                                   >> 144 #define    B57600 0010001
                                                   >> 145 #define   B115200 0010002
                                                   >> 146 #define   B230400 0010003
                                                   >> 147 #define   B460800 0010004
                                                   >> 148 #define   B500000 0010005
                                                   >> 149 #define   B576000 0010006
                                                   >> 150 #define   B921600 0010007
                                                   >> 151 #define  B1000000 0010010
                                                   >> 152 #define  B1152000 0010011
                                                   >> 153 #define  B1500000 0010012
                                                   >> 154 #define  B2000000 0010013
                                                   >> 155 #define  B2500000 0010014
                                                   >> 156 #define  B3000000 0010015
                                                   >> 157 #define  B3500000 0010016
                                                   >> 158 #define  B4000000 0010017
                                                   >> 159 #define CIBAUD    002003600000  /* input baud rate */
                                                   >> 160 #define CMSPAR    010000000000  /* mark or space (stick) parity */
                                                   >> 161 #define CRTSCTS   020000000000  /* flow control */
                                                   >> 162 
                                                   >> 163 #define IBSHIFT   16            /* Shift from CBAUD to CIBAUD */
125                                                   164 
126 /* c_lflag bits */                                165 /* c_lflag bits */
127 #define ISIG    0x00001                        !! 166 #define ISIG    0000001
128 #define ICANON  0x00002                        !! 167 #define ICANON  0000002
129 #define XCASE   0x00004                        !! 168 #define XCASE   0000004
130 #define ECHO    0x00008                        !! 169 #define ECHO    0000010
131 #define ECHOE   0x00010                        !! 170 #define ECHOE   0000020
132 #define ECHOK   0x00020                        !! 171 #define ECHOK   0000040
133 #define ECHONL  0x00040                        !! 172 #define ECHONL  0000100
134 #define NOFLSH  0x00080                        !! 173 #define NOFLSH  0000200
135 #define TOSTOP  0x00100                        !! 174 #define TOSTOP  0000400
136 #define ECHOCTL 0x00200                        !! 175 #define ECHOCTL 0001000
137 #define ECHOPRT 0x00400                        !! 176 #define ECHOPRT 0002000
138 #define ECHOKE  0x00800                        !! 177 #define ECHOKE  0004000
139 #define FLUSHO  0x01000                        !! 178 #define FLUSHO  0010000
140 #define PENDIN  0x04000                        !! 179 #define PENDIN  0040000
141 #define IEXTEN  0x08000                        !! 180 #define IEXTEN  0100000
142 #define EXTPROC 0x10000                        !! 181 #define EXTPROC 0200000
                                                   >> 182 
                                                   >> 183 /* tcflow() and TCXONC use these */
                                                   >> 184 #define TCOOFF          0
                                                   >> 185 #define TCOON           1
                                                   >> 186 #define TCIOFF          2
                                                   >> 187 #define TCION           3
                                                   >> 188 
                                                   >> 189 /* tcflush() and TCFLSH use these */
                                                   >> 190 #define TCIFLUSH        0
                                                   >> 191 #define TCOFLUSH        1
                                                   >> 192 #define TCIOFLUSH       2
143                                                   193 
144 /* tcsetattr uses these */                        194 /* tcsetattr uses these */
145 #define TCSANOW         0                         195 #define TCSANOW         0
146 #define TCSADRAIN       1                         196 #define TCSADRAIN       1
147 #define TCSAFLUSH       2                         197 #define TCSAFLUSH       2
148                                                   198 
149 #endif /* __ASM_GENERIC_TERMBITS_H */             199 #endif /* __ASM_GENERIC_TERMBITS_H */
150                                                   200 

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

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php