Path: blob/master/arch/powerpc/include/uapi/asm/termbits.h
26516 views
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */1#ifndef _ASM_POWERPC_TERMBITS_H2#define _ASM_POWERPC_TERMBITS_H34/*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/1011#include <asm-generic/termbits-common.h>1213typedef unsigned int tcflag_t;1415/*16* termios type and macro definitions. Be careful about adding stuff17* to this file since it's used in GNU libc and there are strict rules18* concerning namespace pollution.19*/2021#define NCCS 1922struct termios {23tcflag_t c_iflag; /* input mode flags */24tcflag_t c_oflag; /* output mode flags */25tcflag_t c_cflag; /* control mode flags */26tcflag_t c_lflag; /* local mode flags */27cc_t c_cc[NCCS]; /* control characters */28cc_t c_line; /* line discipline (== c_cc[19]) */29speed_t c_ispeed; /* input speed */30speed_t c_ospeed; /* output speed */31};3233/* For PowerPC the termios and ktermios are the same */3435struct ktermios {36tcflag_t c_iflag; /* input mode flags */37tcflag_t c_oflag; /* output mode flags */38tcflag_t c_cflag; /* control mode flags */39tcflag_t c_lflag; /* local mode flags */40cc_t c_cc[NCCS]; /* control characters */41cc_t c_line; /* line discipline (== c_cc[19]) */42speed_t c_ispeed; /* input speed */43speed_t c_ospeed; /* output speed */44};4546/* c_cc characters */47#define VINTR 048#define VQUIT 149#define VERASE 250#define VKILL 351#define VEOF 452#define VMIN 553#define VEOL 654#define VTIME 755#define VEOL2 856#define VSWTC 957#define VWERASE 1058#define VREPRINT 1159#define VSUSP 1260#define VSTART 1361#define VSTOP 1462#define VLNEXT 1563#define VDISCARD 166465/* c_iflag bits */66#define IXON 0x020067#define IXOFF 0x040068#define IUCLC 0x100069#define IMAXBEL 0x200070#define IUTF8 0x40007172/* c_oflag bits */73#define ONLCR 0x0000274#define OLCUC 0x0000475#define NLDLY 0x0030076#define NL0 0x0000077#define NL1 0x0010078#define NL2 0x0020079#define NL3 0x0030080#define TABDLY 0x00c0081#define TAB0 0x0000082#define TAB1 0x0040083#define TAB2 0x0080084#define TAB3 0x00c0085#define XTABS 0x00c00 /* required by POSIX to == TAB3 */86#define CRDLY 0x0300087#define CR0 0x0000088#define CR1 0x0100089#define CR2 0x0200090#define CR3 0x0300091#define FFDLY 0x0400092#define FF0 0x0000093#define FF1 0x0400094#define BSDLY 0x0800095#define BS0 0x0000096#define BS1 0x0800097#define VTDLY 0x1000098#define VT0 0x0000099#define VT1 0x10000100101/* c_cflag bit meaning */102#define CBAUD 0x000000ff103#define CBAUDEX 0x00000000104#define BOTHER 0x0000001f105#define B57600 0x00000010106#define B115200 0x00000011107#define B230400 0x00000012108#define B460800 0x00000013109#define B500000 0x00000014110#define B576000 0x00000015111#define B921600 0x00000016112#define B1000000 0x00000017113#define B1152000 0x00000018114#define B1500000 0x00000019115#define B2000000 0x0000001a116#define B2500000 0x0000001b117#define B3000000 0x0000001c118#define B3500000 0x0000001d119#define B4000000 0x0000001e120#define CSIZE 0x00000300121#define CS5 0x00000000122#define CS6 0x00000100123#define CS7 0x00000200124#define CS8 0x00000300125#define CSTOPB 0x00000400126#define CREAD 0x00000800127#define PARENB 0x00001000128#define PARODD 0x00002000129#define HUPCL 0x00004000130#define CLOCAL 0x00008000131#define CIBAUD 0x00ff0000132133/* c_lflag bits */134#define ISIG 0x00000080135#define ICANON 0x00000100136#define XCASE 0x00004000137#define ECHO 0x00000008138#define ECHOE 0x00000002139#define ECHOK 0x00000004140#define ECHONL 0x00000010141#define NOFLSH 0x80000000142#define TOSTOP 0x00400000143#define ECHOCTL 0x00000040144#define ECHOPRT 0x00000020145#define ECHOKE 0x00000001146#define FLUSHO 0x00800000147#define PENDIN 0x20000000148#define IEXTEN 0x00000400149#define EXTPROC 0x10000000150151/* Values for the OPTIONAL_ACTIONS argument to `tcsetattr'. */152#define TCSANOW 0153#define TCSADRAIN 1154#define TCSAFLUSH 2155156#endif /* _ASM_POWERPC_TERMBITS_H */157158159