blob: 77b260b67b3fd2622ade33ba1fe8bfd296feccc6 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI_ASM_GENERIC_TERMIOS_H
20#define _UAPI_ASM_GENERIC_TERMIOS_H
21#include <asm/termbits.h>
22#include <asm/ioctls.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023struct winsize {
Tao Baod7db5942015-01-28 10:07:51 -080024 unsigned short ws_row;
25 unsigned short ws_col;
26 unsigned short ws_xpixel;
Tao Baod7db5942015-01-28 10:07:51 -080027 unsigned short ws_ypixel;
Ben Cheng655a7c02013-10-16 16:09:24 -070028};
29#define NCC 8
30struct termio {
Tao Baod7db5942015-01-28 10:07:51 -080031 unsigned short c_iflag;
32 unsigned short c_oflag;
33 unsigned short c_cflag;
34 unsigned short c_lflag;
Tao Baod7db5942015-01-28 10:07:51 -080035 unsigned char c_line;
36 unsigned char c_cc[NCC];
Ben Cheng655a7c02013-10-16 16:09:24 -070037};
38#define TIOCM_LE 0x001
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define TIOCM_DTR 0x002
40#define TIOCM_RTS 0x004
41#define TIOCM_ST 0x008
42#define TIOCM_SR 0x010
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define TIOCM_CTS 0x020
44#define TIOCM_CAR 0x040
45#define TIOCM_RNG 0x080
46#define TIOCM_DSR 0x100
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define TIOCM_CD TIOCM_CAR
48#define TIOCM_RI TIOCM_RNG
49#define TIOCM_OUT1 0x2000
50#define TIOCM_OUT2 0x4000
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define TIOCM_LOOP 0x8000
Nick Kralevicha67e4de2013-01-14 11:28:26 -080052#endif