1 /* 2 * Copyright (c) 1982, 1986 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 * 6 * @(#)ttydev.h 7.3 (Berkeley) 10/18/88 7 */ 8 9 /* 10 * Terminal definitions related to underlying hardware. 11 */ 12 #ifndef _TTYDEV_ 13 #define _TTYDEV_ 14 15 /* 16 * Speeds 17 */ 18 #define B0 0 19 #define B50 50 20 #define B75 75 21 #define B110 110 22 #define B134 134 23 #define B150 150 24 #define B200 200 25 #define B300 300 26 #define B600 600 27 #define B1200 1200 28 #define B1800 1800 29 #define B2400 2400 30 #define B4800 4800 31 #define B9600 9600 32 #define B19200 19200 33 #define EXTA B19200 34 #define B38400 38400 35 #define EXTB B38400 36 37 struct speedtab { 38 int sp_speed; 39 int sp_code; 40 }; 41 42 #ifdef KERNEL 43 /* 44 * Modem control commands. 45 */ 46 #define DMSET 0 47 #define DMBIS 1 48 #define DMBIC 2 49 #define DMGET 3 50 51 /* 52 * Exceptional conditions possible on character input. 53 */ 54 #define TTY_FE 0x01000000 /* Framing error or BREAK condition */ 55 #define TTY_PE 0x02000000 /* Parity error */ 56 #define TTY_CHARMASK 0x000000ff /* Character mask */ 57 #define TTY_QUOTE 0x00000100 /* Character quoted */ 58 #define TTY_ERRORMASK 0xff000000 /* Error mask */ 59 60 #endif /* KERNEL */ 61 62 #endif /* _TTYDEV_ */ 63