Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 /*
0003  * Liberally adapted from alpha/termios.h.  In particular, the c_cc[]
0004  * fields have been reordered so that termio & termios share the
0005  * common subset in the same order (for brain dead programs that don't
0006  * know or care about the differences).
0007  *
0008  * This program is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU General Public License
0010  * as published by the Free Software Foundation; either version
0011  * 2 of the License, or (at your option) any later version.
0012  */
0013 #ifndef _UAPI_ASM_POWERPC_TERMIOS_H
0014 #define _UAPI_ASM_POWERPC_TERMIOS_H
0015 
0016 
0017 #include <asm/ioctls.h>
0018 #include <asm/termbits.h>
0019 
0020 struct sgttyb {
0021     char    sg_ispeed;
0022     char    sg_ospeed;
0023     char    sg_erase;
0024     char    sg_kill;
0025     short   sg_flags;
0026 };
0027 
0028 struct tchars {
0029     char    t_intrc;
0030     char    t_quitc;
0031     char    t_startc;
0032     char    t_stopc;
0033     char    t_eofc;
0034     char    t_brkc;
0035 };
0036 
0037 struct ltchars {
0038     char    t_suspc;
0039     char    t_dsuspc;
0040     char    t_rprntc;
0041     char    t_flushc;
0042     char    t_werasc;
0043     char    t_lnextc;
0044 };
0045 
0046 struct winsize {
0047     unsigned short ws_row;
0048     unsigned short ws_col;
0049     unsigned short ws_xpixel;
0050     unsigned short ws_ypixel;
0051 };
0052 
0053 #define NCC 10
0054 struct termio {
0055     unsigned short c_iflag;     /* input mode flags */
0056     unsigned short c_oflag;     /* output mode flags */
0057     unsigned short c_cflag;     /* control mode flags */
0058     unsigned short c_lflag;     /* local mode flags */
0059     unsigned char c_line;       /* line discipline */
0060     unsigned char c_cc[NCC];    /* control characters */
0061 };
0062 
0063 /* c_cc characters */
0064 #define _VINTR  0
0065 #define _VQUIT  1
0066 #define _VERASE 2
0067 #define _VKILL  3
0068 #define _VEOF   4
0069 #define _VMIN   5
0070 #define _VEOL   6
0071 #define _VTIME  7
0072 #define _VEOL2  8
0073 #define _VSWTC  9
0074 
0075 
0076 
0077 #endif /* _UAPI_ASM_POWERPC_TERMIOS_H */