18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _UAPI_PARISC_TERMIOS_H 38c2ecf20Sopenharmony_ci#define _UAPI_PARISC_TERMIOS_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm/termbits.h> 68c2ecf20Sopenharmony_ci#include <asm/ioctls.h> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cistruct winsize { 98c2ecf20Sopenharmony_ci unsigned short ws_row; 108c2ecf20Sopenharmony_ci unsigned short ws_col; 118c2ecf20Sopenharmony_ci unsigned short ws_xpixel; 128c2ecf20Sopenharmony_ci unsigned short ws_ypixel; 138c2ecf20Sopenharmony_ci}; 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define NCC 8 168c2ecf20Sopenharmony_cistruct termio { 178c2ecf20Sopenharmony_ci unsigned short c_iflag; /* input mode flags */ 188c2ecf20Sopenharmony_ci unsigned short c_oflag; /* output mode flags */ 198c2ecf20Sopenharmony_ci unsigned short c_cflag; /* control mode flags */ 208c2ecf20Sopenharmony_ci unsigned short c_lflag; /* local mode flags */ 218c2ecf20Sopenharmony_ci unsigned char c_line; /* line discipline */ 228c2ecf20Sopenharmony_ci unsigned char c_cc[NCC]; /* control characters */ 238c2ecf20Sopenharmony_ci}; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* modem lines */ 268c2ecf20Sopenharmony_ci#define TIOCM_LE 0x001 278c2ecf20Sopenharmony_ci#define TIOCM_DTR 0x002 288c2ecf20Sopenharmony_ci#define TIOCM_RTS 0x004 298c2ecf20Sopenharmony_ci#define TIOCM_ST 0x008 308c2ecf20Sopenharmony_ci#define TIOCM_SR 0x010 318c2ecf20Sopenharmony_ci#define TIOCM_CTS 0x020 328c2ecf20Sopenharmony_ci#define TIOCM_CAR 0x040 338c2ecf20Sopenharmony_ci#define TIOCM_RNG 0x080 348c2ecf20Sopenharmony_ci#define TIOCM_DSR 0x100 358c2ecf20Sopenharmony_ci#define TIOCM_CD TIOCM_CAR 368c2ecf20Sopenharmony_ci#define TIOCM_RI TIOCM_RNG 378c2ecf20Sopenharmony_ci#define TIOCM_OUT1 0x2000 388c2ecf20Sopenharmony_ci#define TIOCM_OUT2 0x4000 398c2ecf20Sopenharmony_ci#define TIOCM_LOOP 0x8000 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#endif /* _UAPI_PARISC_TERMIOS_H */ 45