Path: blob/master/arch/powerpc/include/uapi/asm/termios.h
26516 views
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */1/*2* Liberally adapted from alpha/termios.h. In particular, the c_cc[]3* fields have been reordered so that termio & termios share the4* common subset in the same order (for brain dead programs that don't5* know or care about the differences).6*7* This program is free software; you can redistribute it and/or8* modify it under the terms of the GNU General Public License9* as published by the Free Software Foundation; either version10* 2 of the License, or (at your option) any later version.11*/12#ifndef _UAPI_ASM_POWERPC_TERMIOS_H13#define _UAPI_ASM_POWERPC_TERMIOS_H141516#include <asm/ioctls.h>17#include <asm/termbits.h>1819struct sgttyb {20char sg_ispeed;21char sg_ospeed;22char sg_erase;23char sg_kill;24short sg_flags;25};2627struct tchars {28char t_intrc;29char t_quitc;30char t_startc;31char t_stopc;32char t_eofc;33char t_brkc;34};3536struct ltchars {37char t_suspc;38char t_dsuspc;39char t_rprntc;40char t_flushc;41char t_werasc;42char t_lnextc;43};4445struct winsize {46unsigned short ws_row;47unsigned short ws_col;48unsigned short ws_xpixel;49unsigned short ws_ypixel;50};5152#define NCC 1053struct termio {54unsigned short c_iflag; /* input mode flags */55unsigned short c_oflag; /* output mode flags */56unsigned short c_cflag; /* control mode flags */57unsigned short c_lflag; /* local mode flags */58unsigned char c_line; /* line discipline */59unsigned char c_cc[NCC]; /* control characters */60};6162/* c_cc characters */63#define _VINTR 064#define _VQUIT 165#define _VERASE 266#define _VKILL 367#define _VEOF 468#define _VMIN 569#define _VEOL 670#define _VTIME 771#define _VEOL2 872#define _VSWTC 973747576#endif /* _UAPI_ASM_POWERPC_TERMIOS_H */777879