blob: 51742540f7d86b8a4bc8a0a39e78acdd0e4bc84e [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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_TERMIOS_H
20#define _UAPI_ASM_TERMIOS_H
21#include <linux/errno.h>
22#include <asm/termbits.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <asm/ioctls.h>
25struct sgttyb {
Tao Baod7db5942015-01-28 10:07:51 -080026 char sg_ispeed;
27 char sg_ospeed;
Elliott Hughesabd62612013-11-08 11:45:48 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 char sg_erase;
30 char sg_kill;
31 int sg_flags;
Elliott Hughesabd62612013-11-08 11:45:48 -080032};
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34struct tchars {
Tao Baod7db5942015-01-28 10:07:51 -080035 char t_intrc;
36 char t_quitc;
37 char t_startc;
Elliott Hughesabd62612013-11-08 11:45:48 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 char t_stopc;
40 char t_eofc;
41 char t_brkc;
Elliott Hughesabd62612013-11-08 11:45:48 -080042};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44struct ltchars {
Tao Baod7db5942015-01-28 10:07:51 -080045 char t_suspc;
46 char t_dsuspc;
47 char t_rprntc;
Elliott Hughesabd62612013-11-08 11:45:48 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 char t_flushc;
50 char t_werasc;
51 char t_lnextc;
Elliott Hughesabd62612013-11-08 11:45:48 -080052};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54struct winsize {
Tao Baod7db5942015-01-28 10:07:51 -080055 unsigned short ws_row;
56 unsigned short ws_col;
57 unsigned short ws_xpixel;
Elliott Hughesabd62612013-11-08 11:45:48 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 unsigned short ws_ypixel;
Elliott Hughesabd62612013-11-08 11:45:48 -080060};
61#define NCC 8
62struct termio {
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 unsigned short c_iflag;
65 unsigned short c_oflag;
66 unsigned short c_cflag;
67 unsigned short c_lflag;
Elliott Hughesabd62612013-11-08 11:45:48 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 char c_line;
70 unsigned char c_cc[NCCS];
Elliott Hughesabd62612013-11-08 11:45:48 -080071};
72#define TIOCM_LE 0x001
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define TIOCM_DTR 0x002
75#define TIOCM_RTS 0x004
76#define TIOCM_ST 0x010
77#define TIOCM_SR 0x020
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define TIOCM_CTS 0x040
80#define TIOCM_CAR 0x100
81#define TIOCM_CD TIOCM_CAR
82#define TIOCM_RNG 0x200
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define TIOCM_RI TIOCM_RNG
85#define TIOCM_DSR 0x400
86#define TIOCM_OUT1 0x2000
87#define TIOCM_OUT2 0x4000
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define TIOCM_LOOP 0x8000
90#endif