122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _ASM_TERMIOS_H
2022851890Sopenharmony_ci#define _ASM_TERMIOS_H
2122851890Sopenharmony_ci#include <linux/errno.h>
2222851890Sopenharmony_ci#include <asm/termbits.h>
2322851890Sopenharmony_ci#include <asm/ioctls.h>
2422851890Sopenharmony_cistruct sgttyb {
2522851890Sopenharmony_ci  char sg_ispeed;
2622851890Sopenharmony_ci  char sg_ospeed;
2722851890Sopenharmony_ci  char sg_erase;
2822851890Sopenharmony_ci  char sg_kill;
2922851890Sopenharmony_ci  int sg_flags;
3022851890Sopenharmony_ci};
3122851890Sopenharmony_cistruct tchars {
3222851890Sopenharmony_ci  char t_intrc;
3322851890Sopenharmony_ci  char t_quitc;
3422851890Sopenharmony_ci  char t_startc;
3522851890Sopenharmony_ci  char t_stopc;
3622851890Sopenharmony_ci  char t_eofc;
3722851890Sopenharmony_ci  char t_brkc;
3822851890Sopenharmony_ci};
3922851890Sopenharmony_cistruct ltchars {
4022851890Sopenharmony_ci  char t_suspc;
4122851890Sopenharmony_ci  char t_dsuspc;
4222851890Sopenharmony_ci  char t_rprntc;
4322851890Sopenharmony_ci  char t_flushc;
4422851890Sopenharmony_ci  char t_werasc;
4522851890Sopenharmony_ci  char t_lnextc;
4622851890Sopenharmony_ci};
4722851890Sopenharmony_cistruct winsize {
4822851890Sopenharmony_ci  unsigned short ws_row;
4922851890Sopenharmony_ci  unsigned short ws_col;
5022851890Sopenharmony_ci  unsigned short ws_xpixel;
5122851890Sopenharmony_ci  unsigned short ws_ypixel;
5222851890Sopenharmony_ci};
5322851890Sopenharmony_ci#define NCC 8
5422851890Sopenharmony_cistruct termio {
5522851890Sopenharmony_ci  unsigned short c_iflag;
5622851890Sopenharmony_ci  unsigned short c_oflag;
5722851890Sopenharmony_ci  unsigned short c_cflag;
5822851890Sopenharmony_ci  unsigned short c_lflag;
5922851890Sopenharmony_ci  char c_line;
6022851890Sopenharmony_ci  unsigned char c_cc[NCCS];
6122851890Sopenharmony_ci};
6222851890Sopenharmony_ci#define TIOCM_LE 0x001
6322851890Sopenharmony_ci#define TIOCM_DTR 0x002
6422851890Sopenharmony_ci#define TIOCM_RTS 0x004
6522851890Sopenharmony_ci#define TIOCM_ST 0x010
6622851890Sopenharmony_ci#define TIOCM_SR 0x020
6722851890Sopenharmony_ci#define TIOCM_CTS 0x040
6822851890Sopenharmony_ci#define TIOCM_CAR 0x100
6922851890Sopenharmony_ci#define TIOCM_CD TIOCM_CAR
7022851890Sopenharmony_ci#define TIOCM_RNG 0x200
7122851890Sopenharmony_ci#define TIOCM_RI TIOCM_RNG
7222851890Sopenharmony_ci#define TIOCM_DSR 0x400
7322851890Sopenharmony_ci#define TIOCM_OUT1 0x2000
7422851890Sopenharmony_ci#define TIOCM_OUT2 0x4000
7522851890Sopenharmony_ci#define TIOCM_LOOP 0x8000
7622851890Sopenharmony_ci#endif
77