1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Liberally adapted from alpha/termios.h. In particular, the c_cc[] 4*4882a593Smuzhiyun * fields have been reordered so that termio & termios share the 5*4882a593Smuzhiyun * common subset in the same order (for brain dead programs that don't 6*4882a593Smuzhiyun * know or care about the differences). 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or 9*4882a593Smuzhiyun * modify it under the terms of the GNU General Public License 10*4882a593Smuzhiyun * as published by the Free Software Foundation; either version 11*4882a593Smuzhiyun * 2 of the License, or (at your option) any later version. 12*4882a593Smuzhiyun */ 13*4882a593Smuzhiyun #ifndef _UAPI_ASM_POWERPC_TERMIOS_H 14*4882a593Smuzhiyun #define _UAPI_ASM_POWERPC_TERMIOS_H 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun #include <asm/ioctls.h> 18*4882a593Smuzhiyun #include <asm/termbits.h> 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun struct sgttyb { 21*4882a593Smuzhiyun char sg_ispeed; 22*4882a593Smuzhiyun char sg_ospeed; 23*4882a593Smuzhiyun char sg_erase; 24*4882a593Smuzhiyun char sg_kill; 25*4882a593Smuzhiyun short sg_flags; 26*4882a593Smuzhiyun }; 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun struct tchars { 29*4882a593Smuzhiyun char t_intrc; 30*4882a593Smuzhiyun char t_quitc; 31*4882a593Smuzhiyun char t_startc; 32*4882a593Smuzhiyun char t_stopc; 33*4882a593Smuzhiyun char t_eofc; 34*4882a593Smuzhiyun char t_brkc; 35*4882a593Smuzhiyun }; 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun struct ltchars { 38*4882a593Smuzhiyun char t_suspc; 39*4882a593Smuzhiyun char t_dsuspc; 40*4882a593Smuzhiyun char t_rprntc; 41*4882a593Smuzhiyun char t_flushc; 42*4882a593Smuzhiyun char t_werasc; 43*4882a593Smuzhiyun char t_lnextc; 44*4882a593Smuzhiyun }; 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun struct winsize { 47*4882a593Smuzhiyun unsigned short ws_row; 48*4882a593Smuzhiyun unsigned short ws_col; 49*4882a593Smuzhiyun unsigned short ws_xpixel; 50*4882a593Smuzhiyun unsigned short ws_ypixel; 51*4882a593Smuzhiyun }; 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun #define NCC 10 54*4882a593Smuzhiyun struct termio { 55*4882a593Smuzhiyun unsigned short c_iflag; /* input mode flags */ 56*4882a593Smuzhiyun unsigned short c_oflag; /* output mode flags */ 57*4882a593Smuzhiyun unsigned short c_cflag; /* control mode flags */ 58*4882a593Smuzhiyun unsigned short c_lflag; /* local mode flags */ 59*4882a593Smuzhiyun unsigned char c_line; /* line discipline */ 60*4882a593Smuzhiyun unsigned char c_cc[NCC]; /* control characters */ 61*4882a593Smuzhiyun }; 62*4882a593Smuzhiyun 63*4882a593Smuzhiyun /* c_cc characters */ 64*4882a593Smuzhiyun #define _VINTR 0 65*4882a593Smuzhiyun #define _VQUIT 1 66*4882a593Smuzhiyun #define _VERASE 2 67*4882a593Smuzhiyun #define _VKILL 3 68*4882a593Smuzhiyun #define _VEOF 4 69*4882a593Smuzhiyun #define _VMIN 5 70*4882a593Smuzhiyun #define _VEOL 6 71*4882a593Smuzhiyun #define _VTIME 7 72*4882a593Smuzhiyun #define _VEOL2 8 73*4882a593Smuzhiyun #define _VSWTC 9 74*4882a593Smuzhiyun 75*4882a593Smuzhiyun 76*4882a593Smuzhiyun 77*4882a593Smuzhiyun #endif /* _UAPI_ASM_POWERPC_TERMIOS_H */ 78