/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* This file is subject to the terms and conditions of the GNU General Public3* License. See the file "COPYING" in the main directory of this archive4* for more details.5*6* Copyright (C) 1995, 1996, 2000, 2001 by Ralf Baechle7* Copyright (C) 2000, 2001 Silicon Graphics, Inc.8*/9#ifndef _UAPI_ASM_TERMIOS_H10#define _UAPI_ASM_TERMIOS_H1112#include <linux/errno.h>13#include <asm/termbits.h>14#include <asm/ioctls.h>1516struct sgttyb {17char sg_ispeed;18char sg_ospeed;19char sg_erase;20char sg_kill;21int sg_flags; /* SGI special - int, not short */22};2324struct tchars {25char t_intrc;26char t_quitc;27char t_startc;28char t_stopc;29char t_eofc;30char t_brkc;31};3233struct ltchars {34char t_suspc; /* stop process signal */35char t_dsuspc; /* delayed stop process signal */36char t_rprntc; /* reprint line */37char t_flushc; /* flush output (toggles) */38char t_werasc; /* word erase */39char t_lnextc; /* literal next character */40};4142/* TIOCGSIZE, TIOCSSIZE not defined yet. Only needed for SunOS source43compatibility anyway ... */4445struct winsize {46unsigned short ws_row;47unsigned short ws_col;48unsigned short ws_xpixel;49unsigned short ws_ypixel;50};5152#define NCC 853struct termio {54unsigned short c_iflag; /* input mode flags */55unsigned short c_oflag; /* output mode flags */56unsigned short c_cflag; /* control mode flags */57unsigned short c_lflag; /* local mode flags */58char c_line; /* line discipline */59unsigned char c_cc[NCCS]; /* control characters */60};616263/* modem lines */64#define TIOCM_LE 0x001 /* line enable */65#define TIOCM_DTR 0x002 /* data terminal ready */66#define TIOCM_RTS 0x004 /* request to send */67#define TIOCM_ST 0x010 /* secondary transmit */68#define TIOCM_SR 0x020 /* secondary receive */69#define TIOCM_CTS 0x040 /* clear to send */70#define TIOCM_CAR 0x100 /* carrier detect */71#define TIOCM_CD TIOCM_CAR72#define TIOCM_RNG 0x200 /* ring */73#define TIOCM_RI TIOCM_RNG74#define TIOCM_DSR 0x400 /* data set ready */75#define TIOCM_OUT1 0x200076#define TIOCM_OUT2 0x400077#define TIOCM_LOOP 0x8000787980#endif /* _UAPI_ASM_TERMIOS_H */818283