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 _UAPI_ASM_GENERIC_TERMIOS_H 20 #define _UAPI_ASM_GENERIC_TERMIOS_H 21 #include <asm/termbits.h> 22 #include <asm/ioctls.h> 23 struct winsize { 24 unsigned short ws_row; 25 unsigned short ws_col; 26 unsigned short ws_xpixel; 27 unsigned short ws_ypixel; 28 }; 29 #define NCC 8 30 struct termio { 31 unsigned short c_iflag; 32 unsigned short c_oflag; 33 unsigned short c_cflag; 34 unsigned short c_lflag; 35 unsigned char c_line; 36 unsigned char c_cc[NCC]; 37 }; 38 #define TIOCM_LE 0x001 39 #define TIOCM_DTR 0x002 40 #define TIOCM_RTS 0x004 41 #define TIOCM_ST 0x008 42 #define TIOCM_SR 0x010 43 #define TIOCM_CTS 0x020 44 #define TIOCM_CAR 0x040 45 #define TIOCM_RNG 0x080 46 #define TIOCM_DSR 0x100 47 #define TIOCM_CD TIOCM_CAR 48 #define TIOCM_RI TIOCM_RNG 49 #define TIOCM_OUT1 0x2000 50 #define TIOCM_OUT2 0x4000 51 #define TIOCM_LOOP 0x8000 52 #endif 53