Path: blob/master/arch/parisc/include/uapi/asm/termbits.h
26305 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef __ARCH_PARISC_TERMBITS_H__2#define __ARCH_PARISC_TERMBITS_H__34#include <asm-generic/termbits-common.h>56typedef unsigned int tcflag_t;78#define NCCS 199struct termios {10tcflag_t c_iflag; /* input mode flags */11tcflag_t c_oflag; /* output mode flags */12tcflag_t c_cflag; /* control mode flags */13tcflag_t c_lflag; /* local mode flags */14cc_t c_line; /* line discipline */15cc_t c_cc[NCCS]; /* control characters */16};1718struct termios2 {19tcflag_t c_iflag; /* input mode flags */20tcflag_t c_oflag; /* output mode flags */21tcflag_t c_cflag; /* control mode flags */22tcflag_t c_lflag; /* local mode flags */23cc_t c_line; /* line discipline */24cc_t c_cc[NCCS]; /* control characters */25speed_t c_ispeed; /* input speed */26speed_t c_ospeed; /* output speed */27};2829struct ktermios {30tcflag_t c_iflag; /* input mode flags */31tcflag_t c_oflag; /* output mode flags */32tcflag_t c_cflag; /* control mode flags */33tcflag_t c_lflag; /* local mode flags */34cc_t c_line; /* line discipline */35cc_t c_cc[NCCS]; /* control characters */36speed_t c_ispeed; /* input speed */37speed_t c_ospeed; /* output speed */38};3940/* c_cc characters */41#define VINTR 042#define VQUIT 143#define VERASE 244#define VKILL 345#define VEOF 446#define VTIME 547#define VMIN 648#define VSWTC 749#define VSTART 850#define VSTOP 951#define VSUSP 1052#define VEOL 1153#define VREPRINT 1254#define VDISCARD 1355#define VWERASE 1456#define VLNEXT 1557#define VEOL2 165859/* c_iflag bits */60#define IUCLC 0x020061#define IXON 0x040062#define IXOFF 0x100063#define IMAXBEL 0x400064#define IUTF8 0x80006566/* c_oflag bits */67#define OLCUC 0x0000268#define ONLCR 0x0000469#define NLDLY 0x0010070#define NL0 0x0000071#define NL1 0x0010072#define CRDLY 0x0060073#define CR0 0x0000074#define CR1 0x0020075#define CR2 0x0040076#define CR3 0x0060077#define TABDLY 0x0180078#define TAB0 0x0000079#define TAB1 0x0080080#define TAB2 0x0100081#define TAB3 0x0180082#define XTABS 0x0180083#define BSDLY 0x0200084#define BS0 0x0000085#define BS1 0x0200086#define VTDLY 0x0400087#define VT0 0x0000088#define VT1 0x0400089#define FFDLY 0x0800090#define FF0 0x0000091#define FF1 0x080009293/* c_cflag bit meaning */94#define CBAUD 0x0000100f95#define CSIZE 0x0000003096#define CS5 0x0000000097#define CS6 0x0000001098#define CS7 0x0000002099#define CS8 0x00000030100#define CSTOPB 0x00000040101#define CREAD 0x00000080102#define PARENB 0x00000100103#define PARODD 0x00000200104#define HUPCL 0x00000400105#define CLOCAL 0x00000800106#define CBAUDEX 0x00001000107#define BOTHER 0x00001000108#define B57600 0x00001001109#define B115200 0x00001002110#define B230400 0x00001003111#define B460800 0x00001004112#define B500000 0x00001005113#define B576000 0x00001006114#define B921600 0x00001007115#define B1000000 0x00001008116#define B1152000 0x00001009117#define B1500000 0x0000100a118#define B2000000 0x0000100b119#define B2500000 0x0000100c120#define B3000000 0x0000100d121#define B3500000 0x0000100e122#define B4000000 0x0000100f123#define CIBAUD 0x100f0000 /* input baud rate */124125/* c_lflag bits */126#define ISIG 0x00001127#define ICANON 0x00002128#define XCASE 0x00004129#define ECHO 0x00008130#define ECHOE 0x00010131#define ECHOK 0x00020132#define ECHONL 0x00040133#define NOFLSH 0x00080134#define TOSTOP 0x00100135#define ECHOCTL 0x00200136#define ECHOPRT 0x00400137#define ECHOKE 0x00800138#define FLUSHO 0x01000139#define PENDIN 0x04000140#define IEXTEN 0x08000141#define EXTPROC 0x10000142143/* tcsetattr uses these */144#define TCSANOW 0145#define TCSADRAIN 1146#define TCSAFLUSH 2147148#endif149150151