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