Path: blob/master/arch/alpha/include/uapi/asm/termbits.h
26498 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef _ALPHA_TERMBITS_H2#define _ALPHA_TERMBITS_H34#include <asm-generic/termbits-common.h>56typedef unsigned int tcflag_t;78/*9* termios type and macro definitions. Be careful about adding stuff10* to this file since it's used in GNU libc and there are strict rules11* concerning namespace pollution.12*/1314#define NCCS 1915struct termios {16tcflag_t c_iflag; /* input mode flags */17tcflag_t c_oflag; /* output mode flags */18tcflag_t c_cflag; /* control mode flags */19tcflag_t c_lflag; /* local mode flags */20cc_t c_cc[NCCS]; /* control characters */21cc_t c_line; /* line discipline (== c_cc[19]) */22speed_t c_ispeed; /* input speed */23speed_t c_ospeed; /* output speed */24};2526/* Alpha has identical termios and termios2 */2728struct termios2 {29tcflag_t c_iflag; /* input mode flags */30tcflag_t c_oflag; /* output mode flags */31tcflag_t c_cflag; /* control mode flags */32tcflag_t c_lflag; /* local mode flags */33cc_t c_cc[NCCS]; /* control characters */34cc_t c_line; /* line discipline (== c_cc[19]) */35speed_t c_ispeed; /* input speed */36speed_t c_ospeed; /* output speed */37};3839/* Alpha has matching termios and ktermios */4041struct ktermios {42tcflag_t c_iflag; /* input mode flags */43tcflag_t c_oflag; /* output mode flags */44tcflag_t c_cflag; /* control mode flags */45tcflag_t c_lflag; /* local mode flags */46cc_t c_cc[NCCS]; /* control characters */47cc_t c_line; /* line discipline (== c_cc[19]) */48speed_t c_ispeed; /* input speed */49speed_t c_ospeed; /* output speed */50};5152/* c_cc characters */53#define VEOF 054#define VEOL 155#define VEOL2 256#define VERASE 357#define VWERASE 458#define VKILL 559#define VREPRINT 660#define VSWTC 761#define VINTR 862#define VQUIT 963#define VSUSP 1064#define VSTART 1265#define VSTOP 1366#define VLNEXT 1467#define VDISCARD 1568#define VMIN 1669#define VTIME 177071/* c_iflag bits */72#define IXON 0x020073#define IXOFF 0x040074#define IUCLC 0x100075#define IMAXBEL 0x200076#define IUTF8 0x40007778/* c_oflag bits */79#define ONLCR 0x0000280#define OLCUC 0x0000481#define NLDLY 0x0030082#define NL0 0x0000083#define NL1 0x0010084#define NL2 0x0020085#define NL3 0x0030086#define TABDLY 0x00c0087#define TAB0 0x0000088#define TAB1 0x0040089#define TAB2 0x0080090#define TAB3 0x00c0091#define CRDLY 0x0300092#define CR0 0x0000093#define CR1 0x0100094#define CR2 0x0200095#define CR3 0x0300096#define FFDLY 0x0400097#define FF0 0x0000098#define FF1 0x0400099#define BSDLY 0x08000100#define BS0 0x00000101#define BS1 0x08000102#define VTDLY 0x10000103#define VT0 0x00000104#define VT1 0x10000105/*106* Should be equivalent to TAB3, see description of TAB3 in107* POSIX.1-2008, Ch. 11.2.3 "Output Modes"108*/109#define XTABS TAB3110111/* c_cflag bit meaning */112#define CBAUD 0x0000001f113#define CBAUDEX 0x00000000114#define BOTHER 0x0000001f115#define B57600 0x00000010116#define B115200 0x00000011117#define B230400 0x00000012118#define B460800 0x00000013119#define B500000 0x00000014120#define B576000 0x00000015121#define B921600 0x00000016122#define B1000000 0x00000017123#define B1152000 0x00000018124#define B1500000 0x00000019125#define B2000000 0x0000001a126#define B2500000 0x0000001b127#define B3000000 0x0000001c128#define B3500000 0x0000001d129#define B4000000 0x0000001e130#define CSIZE 0x00000300131#define CS5 0x00000000132#define CS6 0x00000100133#define CS7 0x00000200134#define CS8 0x00000300135#define CSTOPB 0x00000400136#define CREAD 0x00000800137#define PARENB 0x00001000138#define PARODD 0x00002000139#define HUPCL 0x00004000140#define CLOCAL 0x00008000141#define CIBAUD 0x001f0000142143/* c_lflag bits */144#define ISIG 0x00000080145#define ICANON 0x00000100146#define XCASE 0x00004000147#define ECHO 0x00000008148#define ECHOE 0x00000002149#define ECHOK 0x00000004150#define ECHONL 0x00000010151#define NOFLSH 0x80000000152#define TOSTOP 0x00400000153#define ECHOCTL 0x00000040154#define ECHOPRT 0x00000020155#define ECHOKE 0x00000001156#define FLUSHO 0x00800000157#define PENDIN 0x20000000158#define IEXTEN 0x00000400159#define EXTPROC 0x10000000160161/* Values for the OPTIONAL_ACTIONS argument to `tcsetattr'. */162#define TCSANOW 0163#define TCSADRAIN 1164#define TCSAFLUSH 2165166#endif /* _ALPHA_TERMBITS_H */167168169