18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 48c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 58c2ecf20Sopenharmony_ci * for more details. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright (C) 1995, 1996, 2000, 2001 by Ralf Baechle 88c2ecf20Sopenharmony_ci * Copyright (C) 2000, 2001 Silicon Graphics, Inc. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef _UAPI_ASM_TERMIOS_H 118c2ecf20Sopenharmony_ci#define _UAPI_ASM_TERMIOS_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <linux/errno.h> 148c2ecf20Sopenharmony_ci#include <asm/termbits.h> 158c2ecf20Sopenharmony_ci#include <asm/ioctls.h> 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cistruct sgttyb { 188c2ecf20Sopenharmony_ci char sg_ispeed; 198c2ecf20Sopenharmony_ci char sg_ospeed; 208c2ecf20Sopenharmony_ci char sg_erase; 218c2ecf20Sopenharmony_ci char sg_kill; 228c2ecf20Sopenharmony_ci int sg_flags; /* SGI special - int, not short */ 238c2ecf20Sopenharmony_ci}; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_cistruct tchars { 268c2ecf20Sopenharmony_ci char t_intrc; 278c2ecf20Sopenharmony_ci char t_quitc; 288c2ecf20Sopenharmony_ci char t_startc; 298c2ecf20Sopenharmony_ci char t_stopc; 308c2ecf20Sopenharmony_ci char t_eofc; 318c2ecf20Sopenharmony_ci char t_brkc; 328c2ecf20Sopenharmony_ci}; 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_cistruct ltchars { 358c2ecf20Sopenharmony_ci char t_suspc; /* stop process signal */ 368c2ecf20Sopenharmony_ci char t_dsuspc; /* delayed stop process signal */ 378c2ecf20Sopenharmony_ci char t_rprntc; /* reprint line */ 388c2ecf20Sopenharmony_ci char t_flushc; /* flush output (toggles) */ 398c2ecf20Sopenharmony_ci char t_werasc; /* word erase */ 408c2ecf20Sopenharmony_ci char t_lnextc; /* literal next character */ 418c2ecf20Sopenharmony_ci}; 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci/* TIOCGSIZE, TIOCSSIZE not defined yet. Only needed for SunOS source 448c2ecf20Sopenharmony_ci compatibility anyway ... */ 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_cistruct winsize { 478c2ecf20Sopenharmony_ci unsigned short ws_row; 488c2ecf20Sopenharmony_ci unsigned short ws_col; 498c2ecf20Sopenharmony_ci unsigned short ws_xpixel; 508c2ecf20Sopenharmony_ci unsigned short ws_ypixel; 518c2ecf20Sopenharmony_ci}; 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#define NCC 8 548c2ecf20Sopenharmony_cistruct termio { 558c2ecf20Sopenharmony_ci unsigned short c_iflag; /* input mode flags */ 568c2ecf20Sopenharmony_ci unsigned short c_oflag; /* output mode flags */ 578c2ecf20Sopenharmony_ci unsigned short c_cflag; /* control mode flags */ 588c2ecf20Sopenharmony_ci unsigned short c_lflag; /* local mode flags */ 598c2ecf20Sopenharmony_ci char c_line; /* line discipline */ 608c2ecf20Sopenharmony_ci unsigned char c_cc[NCCS]; /* control characters */ 618c2ecf20Sopenharmony_ci}; 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci/* modem lines */ 658c2ecf20Sopenharmony_ci#define TIOCM_LE 0x001 /* line enable */ 668c2ecf20Sopenharmony_ci#define TIOCM_DTR 0x002 /* data terminal ready */ 678c2ecf20Sopenharmony_ci#define TIOCM_RTS 0x004 /* request to send */ 688c2ecf20Sopenharmony_ci#define TIOCM_ST 0x010 /* secondary transmit */ 698c2ecf20Sopenharmony_ci#define TIOCM_SR 0x020 /* secondary receive */ 708c2ecf20Sopenharmony_ci#define TIOCM_CTS 0x040 /* clear to send */ 718c2ecf20Sopenharmony_ci#define TIOCM_CAR 0x100 /* carrier detect */ 728c2ecf20Sopenharmony_ci#define TIOCM_CD TIOCM_CAR 738c2ecf20Sopenharmony_ci#define TIOCM_RNG 0x200 /* ring */ 748c2ecf20Sopenharmony_ci#define TIOCM_RI TIOCM_RNG 758c2ecf20Sopenharmony_ci#define TIOCM_DSR 0x400 /* data set ready */ 768c2ecf20Sopenharmony_ci#define TIOCM_OUT1 0x2000 778c2ecf20Sopenharmony_ci#define TIOCM_OUT2 0x4000 788c2ecf20Sopenharmony_ci#define TIOCM_LOOP 0x8000 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci#endif /* _UAPI_ASM_TERMIOS_H */ 82