Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_ASM_GENERIC_TERMIOS_H |
| 8 | #define _UAPI_ASM_GENERIC_TERMIOS_H |
| 9 | #include <asm/termbits.h> |
| 10 | #include <asm/ioctls.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | struct winsize { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 12 | unsigned short ws_row; |
| 13 | unsigned short ws_col; |
| 14 | unsigned short ws_xpixel; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 15 | unsigned short ws_ypixel; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 16 | }; |
| 17 | #define NCC 8 |
| 18 | struct termio { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 19 | unsigned short c_iflag; |
| 20 | unsigned short c_oflag; |
| 21 | unsigned short c_cflag; |
| 22 | unsigned short c_lflag; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | unsigned char c_line; |
| 24 | unsigned char c_cc[NCC]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | }; |
| 26 | #define TIOCM_LE 0x001 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define TIOCM_DTR 0x002 |
| 28 | #define TIOCM_RTS 0x004 |
| 29 | #define TIOCM_ST 0x008 |
| 30 | #define TIOCM_SR 0x010 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define TIOCM_CTS 0x020 |
| 32 | #define TIOCM_CAR 0x040 |
| 33 | #define TIOCM_RNG 0x080 |
| 34 | #define TIOCM_DSR 0x100 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define TIOCM_CD TIOCM_CAR |
| 36 | #define TIOCM_RI TIOCM_RNG |
| 37 | #define TIOCM_OUT1 0x2000 |
| 38 | #define TIOCM_OUT2 0x4000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define TIOCM_LOOP 0x8000 |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 40 | #endif |