Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  *  S390 version
0004  *
0005  *  Derived from "include/asm-i386/termios.h"
0006  */
0007 
0008 #ifndef _UAPI_S390_TERMIOS_H
0009 #define _UAPI_S390_TERMIOS_H
0010 
0011 #include <asm/termbits.h>
0012 #include <asm/ioctls.h>
0013 
0014 struct winsize {
0015     unsigned short ws_row;
0016     unsigned short ws_col;
0017     unsigned short ws_xpixel;
0018     unsigned short ws_ypixel;
0019 };
0020 
0021 #define NCC 8
0022 struct termio {
0023     unsigned short c_iflag;     /* input mode flags */
0024     unsigned short c_oflag;     /* output mode flags */
0025     unsigned short c_cflag;     /* control mode flags */
0026     unsigned short c_lflag;     /* local mode flags */
0027     unsigned char c_line;       /* line discipline */
0028     unsigned char c_cc[NCC];    /* control characters */
0029 };
0030 
0031 /* modem lines */
0032 #define TIOCM_LE    0x001
0033 #define TIOCM_DTR   0x002
0034 #define TIOCM_RTS   0x004
0035 #define TIOCM_ST    0x008
0036 #define TIOCM_SR    0x010
0037 #define TIOCM_CTS   0x020
0038 #define TIOCM_CAR   0x040
0039 #define TIOCM_RNG   0x080
0040 #define TIOCM_DSR   0x100
0041 #define TIOCM_CD    TIOCM_CAR
0042 #define TIOCM_RI    TIOCM_RNG
0043 #define TIOCM_OUT1  0x2000
0044 #define TIOCM_OUT2  0x4000
0045 #define TIOCM_LOOP  0x8000
0046 
0047 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
0048 
0049 
0050 #endif /* _UAPI_S390_TERMIOS_H */