124139Sjoerg/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
224139Sjoerg/*
324139Sjoerg * Liberally adapted from alpha/termios.h.  In particular, the c_cc[]
424139Sjoerg * fields have been reordered so that termio & termios share the
524139Sjoerg * common subset in the same order (for brain dead programs that don't
624139Sjoerg * know or care about the differences).
724139Sjoerg *
824139Sjoerg * This program is free software; you can redistribute it and/or
924139Sjoerg * modify it under the terms of the GNU General Public License
1065937Speter * as published by the Free Software Foundation; either version
1165937Speter * 2 of the License, or (at your option) any later version.
1224139Sjoerg */
1324139Sjoerg#ifndef _UAPI_ASM_POWERPC_TERMIOS_H
1424139Sjoerg#define _UAPI_ASM_POWERPC_TERMIOS_H
1524139Sjoerg
1624139Sjoerg
1724139Sjoerg#include <asm/ioctls.h>
1824139Sjoerg#include <asm/termbits.h>
1924139Sjoerg
2024139Sjoergstruct sgttyb {
2124139Sjoerg	char	sg_ispeed;
2224139Sjoerg	char	sg_ospeed;
2324139Sjoerg	char	sg_erase;
2424139Sjoerg	char	sg_kill;
2524139Sjoerg	short	sg_flags;
2624139Sjoerg};
2724139Sjoerg
2824139Sjoergstruct tchars {
2924139Sjoerg	char	t_intrc;
3024139Sjoerg	char	t_quitc;
3124139Sjoerg	char	t_startc;
3224139Sjoerg	char	t_stopc;
3324139Sjoerg	char	t_eofc;
3424139Sjoerg	char	t_brkc;
3524139Sjoerg};
3624139Sjoerg
3724139Sjoergstruct ltchars {
3824139Sjoerg	char	t_suspc;
3924139Sjoerg	char	t_dsuspc;
4024139Sjoerg	char	t_rprntc;
4124139Sjoerg	char	t_flushc;
4224139Sjoerg	char	t_werasc;
4324139Sjoerg	char	t_lnextc;
4424139Sjoerg};
4524139Sjoerg
4624139Sjoergstruct winsize {
4724139Sjoerg	unsigned short ws_row;
4824139Sjoerg	unsigned short ws_col;
4924139Sjoerg	unsigned short ws_xpixel;
5024139Sjoerg	unsigned short ws_ypixel;
5124139Sjoerg};
5224139Sjoerg
5324139Sjoerg#define NCC 10
5424139Sjoergstruct termio {
5524139Sjoerg	unsigned short c_iflag;		/* input mode flags */
5624139Sjoerg	unsigned short c_oflag;		/* output mode flags */
5724139Sjoerg	unsigned short c_cflag;		/* control mode flags */
5824139Sjoerg	unsigned short c_lflag;		/* local mode flags */
5924139Sjoerg	unsigned char c_line;		/* line discipline */
6024139Sjoerg	unsigned char c_cc[NCC];	/* control characters */
6124139Sjoerg};
6224139Sjoerg
6324139Sjoerg/* c_cc characters */
6424139Sjoerg#define _VINTR	0
6524139Sjoerg#define _VQUIT	1
6624139Sjoerg#define _VERASE	2
6724139Sjoerg#define _VKILL	3
6824139Sjoerg#define _VEOF	4
6924139Sjoerg#define _VMIN	5
7024139Sjoerg#define _VEOL	6
7124139Sjoerg#define _VTIME	7
7224139Sjoerg#define _VEOL2	8
7324139Sjoerg#define _VSWTC	9
7424139Sjoerg
7524139Sjoerg
7624139Sjoerg
7724139Sjoerg#endif /* _UAPI_ASM_POWERPC_TERMIOS_H */
7824139Sjoerg