0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef _UAPI_ASM_TERMIOS_H
0011 #define _UAPI_ASM_TERMIOS_H
0012
0013 #include <linux/errno.h>
0014 #include <asm/termbits.h>
0015 #include <asm/ioctls.h>
0016
0017 struct sgttyb {
0018 char sg_ispeed;
0019 char sg_ospeed;
0020 char sg_erase;
0021 char sg_kill;
0022 int sg_flags;
0023 };
0024
0025 struct tchars {
0026 char t_intrc;
0027 char t_quitc;
0028 char t_startc;
0029 char t_stopc;
0030 char t_eofc;
0031 char t_brkc;
0032 };
0033
0034 struct ltchars {
0035 char t_suspc;
0036 char t_dsuspc;
0037 char t_rprntc;
0038 char t_flushc;
0039 char t_werasc;
0040 char t_lnextc;
0041 };
0042
0043
0044
0045
0046 struct winsize {
0047 unsigned short ws_row;
0048 unsigned short ws_col;
0049 unsigned short ws_xpixel;
0050 unsigned short ws_ypixel;
0051 };
0052
0053 #define NCC 8
0054 struct termio {
0055 unsigned short c_iflag;
0056 unsigned short c_oflag;
0057 unsigned short c_cflag;
0058 unsigned short c_lflag;
0059 char c_line;
0060 unsigned char c_cc[NCCS];
0061 };
0062
0063
0064
0065 #define TIOCM_LE 0x001
0066 #define TIOCM_DTR 0x002
0067 #define TIOCM_RTS 0x004
0068 #define TIOCM_ST 0x010
0069 #define TIOCM_SR 0x020
0070 #define TIOCM_CTS 0x040
0071 #define TIOCM_CAR 0x100
0072 #define TIOCM_CD TIOCM_CAR
0073 #define TIOCM_RNG 0x200
0074 #define TIOCM_RI TIOCM_RNG
0075 #define TIOCM_DSR 0x400
0076 #define TIOCM_OUT1 0x2000
0077 #define TIOCM_OUT2 0x4000
0078 #define TIOCM_LOOP 0x8000
0079
0080
0081 #endif