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 */ 7 #ifndef _UAPI_ASM_GENERIC_TERMIOS_H 8 #define _UAPI_ASM_GENERIC_TERMIOS_H 9 #include <asm/termbits.h> 10 #include <asm/ioctls.h> 11 struct winsize { 12 unsigned short ws_row; 13 unsigned short ws_col; 14 unsigned short ws_xpixel; 15 unsigned short ws_ypixel; 16 }; 17 #define NCC 8 18 struct termio { 19 unsigned short c_iflag; 20 unsigned short c_oflag; 21 unsigned short c_cflag; 22 unsigned short c_lflag; 23 unsigned char c_line; 24 unsigned char c_cc[NCC]; 25 }; 26 #define TIOCM_LE 0x001 27 #define TIOCM_DTR 0x002 28 #define TIOCM_RTS 0x004 29 #define TIOCM_ST 0x008 30 #define TIOCM_SR 0x010 31 #define TIOCM_CTS 0x020 32 #define TIOCM_CAR 0x040 33 #define TIOCM_RNG 0x080 34 #define TIOCM_DSR 0x100 35 #define TIOCM_CD TIOCM_CAR 36 #define TIOCM_RI TIOCM_RNG 37 #define TIOCM_OUT1 0x2000 38 #define TIOCM_OUT2 0x4000 39 #define TIOCM_LOOP 0x8000 40 #endif 41