1
2
3
4
5
6
7
8
9#ifndef _UAPI_ASM_TERMIOS_H
10#define _UAPI_ASM_TERMIOS_H
11
12#include <linux/errno.h>
13#include <asm/termbits.h>
14#include <asm/ioctls.h>
15
16struct sgttyb {
17 char sg_ispeed;
18 char sg_ospeed;
19 char sg_erase;
20 char sg_kill;
21 int sg_flags;
22};
23
24struct tchars {
25 char t_intrc;
26 char t_quitc;
27 char t_startc;
28 char t_stopc;
29 char t_eofc;
30 char t_brkc;
31};
32
33struct ltchars {
34 char t_suspc;
35 char t_dsuspc;
36 char t_rprntc;
37 char t_flushc;
38 char t_werasc;
39 char t_lnextc;
40};
41
42
43
44
45struct winsize {
46 unsigned short ws_row;
47 unsigned short ws_col;
48 unsigned short ws_xpixel;
49 unsigned short ws_ypixel;
50};
51
52#define NCC 8
53struct termio {
54 unsigned short c_iflag;
55 unsigned short c_oflag;
56 unsigned short c_cflag;
57 unsigned short c_lflag;
58 char c_line;
59 unsigned char c_cc[NCCS];
60};
61
62
63
64#define TIOCM_LE 0x001
65#define TIOCM_DTR 0x002
66#define TIOCM_RTS 0x004
67#define TIOCM_ST 0x010
68#define TIOCM_SR 0x020
69#define TIOCM_CTS 0x040
70#define TIOCM_CAR 0x100
71#define TIOCM_CD TIOCM_CAR
72#define TIOCM_RNG 0x200
73#define TIOCM_RI TIOCM_RNG
74#define TIOCM_DSR 0x400
75#define TIOCM_OUT1 0x2000
76#define TIOCM_OUT2 0x4000
77#define TIOCM_LOOP 0x8000
78
79
80#endif
81