Path: blob/master/include/uapi/asm-generic/termbits-common.h
26282 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef __ASM_GENERIC_TERMBITS_COMMON_H2#define __ASM_GENERIC_TERMBITS_COMMON_H34typedef unsigned char cc_t;5typedef unsigned int speed_t;67/* c_iflag bits */8#define IGNBRK 0x001 /* Ignore break condition */9#define BRKINT 0x002 /* Signal interrupt on break */10#define IGNPAR 0x004 /* Ignore characters with parity errors */11#define PARMRK 0x008 /* Mark parity and framing errors */12#define INPCK 0x010 /* Enable input parity check */13#define ISTRIP 0x020 /* Strip 8th bit off characters */14#define INLCR 0x040 /* Map NL to CR on input */15#define IGNCR 0x080 /* Ignore CR */16#define ICRNL 0x100 /* Map CR to NL on input */17#define IXANY 0x800 /* Any character will restart after stop */1819/* c_oflag bits */20#define OPOST 0x01 /* Perform output processing */21#define OCRNL 0x0822#define ONOCR 0x1023#define ONLRET 0x2024#define OFILL 0x4025#define OFDEL 0x802627/* c_cflag bit meaning */28/* Common CBAUD rates */29#define B0 0x00000000 /* hang up */30#define B50 0x0000000131#define B75 0x0000000232#define B110 0x0000000333#define B134 0x0000000434#define B150 0x0000000535#define B200 0x0000000636#define B300 0x0000000737#define B600 0x0000000838#define B1200 0x0000000939#define B1800 0x0000000a40#define B2400 0x0000000b41#define B4800 0x0000000c42#define B9600 0x0000000d43#define B19200 0x0000000e44#define B38400 0x0000000f45#define EXTA B1920046#define EXTB B384004748#define ADDRB 0x20000000 /* address bit */49#define CMSPAR 0x40000000 /* mark or space (stick) parity */50#define CRTSCTS 0x80000000 /* flow control */5152#define IBSHIFT 16 /* Shift from CBAUD to CIBAUD */5354/* tcflow() ACTION argument and TCXONC use these */55#define TCOOFF 0 /* Suspend output */56#define TCOON 1 /* Restart suspended output */57#define TCIOFF 2 /* Send a STOP character */58#define TCION 3 /* Send a START character */5960/* tcflush() QUEUE_SELECTOR argument and TCFLSH use these */61#define TCIFLUSH 0 /* Discard data received but not yet read */62#define TCOFLUSH 1 /* Discard data written but not yet sent */63#define TCIOFLUSH 2 /* Discard all pending data */6465#endif /* __ASM_GENERIC_TERMBITS_COMMON_H */666768