122851890Sopenharmony_ci/*
222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py,
322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants,
422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information.
522851890Sopenharmony_ci */
622851890Sopenharmony_ci#ifndef _UAPI_ASM_GENERIC_TERMIOS_H
722851890Sopenharmony_ci#define _UAPI_ASM_GENERIC_TERMIOS_H
822851890Sopenharmony_ci#include <asm/termbits.h>
922851890Sopenharmony_ci#include <asm/ioctls.h>
1022851890Sopenharmony_cistruct winsize {
1122851890Sopenharmony_ci	unsigned short ws_row;
1222851890Sopenharmony_ci	unsigned short ws_col;
1322851890Sopenharmony_ci	unsigned short ws_xpixel;
1422851890Sopenharmony_ci	unsigned short ws_ypixel;
1522851890Sopenharmony_ci};
1622851890Sopenharmony_ci#define NCC 8
1722851890Sopenharmony_cistruct termio {
1822851890Sopenharmony_ci	unsigned short c_iflag;
1922851890Sopenharmony_ci	unsigned short c_oflag;
2022851890Sopenharmony_ci	unsigned short c_cflag;
2122851890Sopenharmony_ci	unsigned short c_lflag;
2222851890Sopenharmony_ci	unsigned char c_line;
2322851890Sopenharmony_ci	unsigned char c_cc[NCC];
2422851890Sopenharmony_ci};
2522851890Sopenharmony_ci#define TIOCM_LE	0x001
2622851890Sopenharmony_ci#define TIOCM_DTR	0x002
2722851890Sopenharmony_ci#define TIOCM_RTS	0x004
2822851890Sopenharmony_ci#define TIOCM_ST	0x008
2922851890Sopenharmony_ci#define TIOCM_SR	0x010
3022851890Sopenharmony_ci#define TIOCM_CTS	0x020
3122851890Sopenharmony_ci#define TIOCM_CAR	0x040
3222851890Sopenharmony_ci#define TIOCM_RNG	0x080
3322851890Sopenharmony_ci#define TIOCM_DSR	0x100
3422851890Sopenharmony_ci#define TIOCM_CD	TIOCM_CAR
3522851890Sopenharmony_ci#define TIOCM_RI	TIOCM_RNG
3622851890Sopenharmony_ci#define TIOCM_OUT1	0x2000
3722851890Sopenharmony_ci#define TIOCM_OUT2	0x4000
3822851890Sopenharmony_ci#define TIOCM_LOOP	0x8000
3922851890Sopenharmony_ci#endif
40