16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 254579826SDavid Howells #ifndef _UAPI_SPARC_TERMIOS_H 354579826SDavid Howells #define _UAPI_SPARC_TERMIOS_H 454579826SDavid Howells 554579826SDavid Howells #include <asm/ioctls.h> 654579826SDavid Howells #include <asm/termbits.h> 754579826SDavid Howells 854579826SDavid Howells #if defined(__KERNEL__) || defined(__DEFINE_BSD_TERMIOS) 954579826SDavid Howells struct sgttyb { 1054579826SDavid Howells char sg_ispeed; 1154579826SDavid Howells char sg_ospeed; 1254579826SDavid Howells char sg_erase; 1354579826SDavid Howells char sg_kill; 1454579826SDavid Howells short sg_flags; 1554579826SDavid Howells }; 1654579826SDavid Howells 1754579826SDavid Howells struct tchars { 1854579826SDavid Howells char t_intrc; 1954579826SDavid Howells char t_quitc; 2054579826SDavid Howells char t_startc; 2154579826SDavid Howells char t_stopc; 2254579826SDavid Howells char t_eofc; 2354579826SDavid Howells char t_brkc; 2454579826SDavid Howells }; 2554579826SDavid Howells 2654579826SDavid Howells struct ltchars { 2754579826SDavid Howells char t_suspc; 2854579826SDavid Howells char t_dsuspc; 2954579826SDavid Howells char t_rprntc; 3054579826SDavid Howells char t_flushc; 3154579826SDavid Howells char t_werasc; 3254579826SDavid Howells char t_lnextc; 3354579826SDavid Howells }; 3454579826SDavid Howells #endif /* __KERNEL__ */ 3554579826SDavid Howells 3654579826SDavid Howells struct winsize { 3754579826SDavid Howells unsigned short ws_row; 3854579826SDavid Howells unsigned short ws_col; 3954579826SDavid Howells unsigned short ws_xpixel; 4054579826SDavid Howells unsigned short ws_ypixel; 4154579826SDavid Howells }; 4254579826SDavid Howells 4358ce0788SMike Gilbert #define NCC 8 4458ce0788SMike Gilbert struct termio { 4558ce0788SMike Gilbert unsigned short c_iflag; /* input mode flags */ 4658ce0788SMike Gilbert unsigned short c_oflag; /* output mode flags */ 4758ce0788SMike Gilbert unsigned short c_cflag; /* control mode flags */ 4858ce0788SMike Gilbert unsigned short c_lflag; /* local mode flags */ 4958ce0788SMike Gilbert unsigned char c_line; /* line discipline */ 5058ce0788SMike Gilbert unsigned char c_cc[NCC]; /* control characters */ 5158ce0788SMike Gilbert }; 5254579826SDavid Howells 5354579826SDavid Howells #endif /* _UAPI_SPARC_TERMIOS_H */ 54