|
|
1.1 ! root 1: /* ! 2: * Mach Operating System ! 3: * Copyright (c) 1991,1990 Carnegie Mellon University ! 4: * All Rights Reserved. ! 5: * ! 6: * Permission to use, copy, modify and distribute this software and its ! 7: * documentation is hereby granted, provided that both the copyright ! 8: * notice and this permission notice appear in all copies of the ! 9: * software, derivative works or modified versions, and any portions ! 10: * thereof, and that both notices appear in supporting documentation. ! 11: * ! 12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" ! 13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR ! 14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. ! 15: * ! 16: * Carnegie Mellon requests users of this software to return to ! 17: * ! 18: * Software Distribution Coordinator or [email protected] ! 19: * School of Computer Science ! 20: * Carnegie Mellon University ! 21: * Pittsburgh PA 15213-3890 ! 22: * ! 23: * any improvements or extensions that they make and grant Carnegie Mellon ! 24: * the rights to redistribute these changes. ! 25: */ ! 26: /* ! 27: * Author: David B. Golub, Carnegie Mellon University ! 28: * Date: ll/90 ! 29: * ! 30: * Status information for tty. ! 31: */ ! 32: ! 33: struct tty_status { ! 34: int tt_ispeed; /* input speed */ ! 35: int tt_ospeed; /* output speed */ ! 36: int tt_breakc; /* character to deliver when break ! 37: detected on line */ ! 38: int tt_flags; /* mode flags */ ! 39: }; ! 40: #define TTY_STATUS_COUNT (sizeof(struct tty_status)/sizeof(int)) ! 41: #define TTY_STATUS (dev_flavor_t)(('t'<<16) + 1) ! 42: ! 43: /* ! 44: * Speeds ! 45: */ ! 46: #define B0 0 ! 47: #define B50 1 ! 48: #define B75 2 ! 49: #define B110 3 ! 50: #define B134 4 ! 51: #define B150 5 ! 52: #define B200 6 ! 53: #define B300 7 ! 54: #define B600 8 ! 55: #define B1200 9 ! 56: #define B1800 10 ! 57: #define B2400 11 ! 58: #define B4800 12 ! 59: #define B9600 13 ! 60: #define EXTA 14 /* XX can we just get rid of EXTA and EXTB? */ ! 61: #define EXTB 15 ! 62: #define B19200 EXTA ! 63: #define B38400 EXTB ! 64: ! 65: #define NSPEEDS 16 ! 66: ! 67: /* ! 68: * Flags ! 69: */ ! 70: #define TF_TANDEM 0x00000001 /* send stop character when input ! 71: queue full */ ! 72: #define TF_ODDP 0x00000002 /* get/send odd parity */ ! 73: #define TF_EVENP 0x00000004 /* get/send even parity */ ! 74: #define TF_ANYP (TF_ODDP|TF_EVENP) ! 75: /* get any parity/send none */ ! 76: #define TF_LITOUT 0x00000008 /* output all 8 bits ! 77: otherwise, characters >= 0x80 ! 78: are time delays XXX */ ! 79: #define TF_MDMBUF 0x00000010 /* start/stop output on carrier ! 80: interrupt ! 81: otherwise, dropping carrier ! 82: hangs up line */ ! 83: #define TF_NOHANG 0x00000020 /* no hangup signal on carrier drop */ ! 84: #define TF_HUPCLS 0x00000040 /* hang up (outgoing) on last close */ ! 85: ! 86: /* ! 87: * Read-only flags - information about device ! 88: */ ! 89: #define TF_ECHO 0x00000080 /* device wants user to echo input */ ! 90: #define TF_CRMOD 0x00000100 /* device wants \r\n, not \n */ ! 91: #define TF_XTABS 0x00000200 /* device does not understand tabs */ ! 92: ! 93: /* ! 94: * Modem control ! 95: */ ! 96: #define TTY_MODEM_COUNT (1) /* one integer */ ! 97: #define TTY_MODEM (dev_flavor_t)(('t'<<16) + 2) ! 98: ! 99: #define TM_LE 0x0001 /* line enable */ ! 100: #define TM_DTR 0x0002 /* data terminal ready */ ! 101: #define TM_RTS 0x0004 /* request to send */ ! 102: #define TM_ST 0x0008 /* secondary transmit */ ! 103: #define TM_SR 0x0010 /* secondary receive */ ! 104: #define TM_CTS 0x0020 /* clear to send */ ! 105: #define TM_CAR 0x0040 /* carrier detect */ ! 106: #define TM_RNG 0x0080 /* ring */ ! 107: #define TM_DSR 0x0100 /* data set ready */ ! 108: ! 109: #define TM_BRK 0x0200 /* set line break (internal) */ ! 110: #define TM_HUP 0x0000 /* close line (internal) */ ! 111: ! 112: /* ! 113: * Other controls ! 114: */ ! 115: #define TTY_FLUSH_COUNT (1) /* one integer - D_READ|D_WRITE */ ! 116: #define TTY_FLUSH (dev_flavor_t)(('t'<<16) + 3) ! 117: /* flush input or output */ ! 118: #define TTY_STOP (dev_flavor_t)(('t'<<16) + 4) ! 119: /* stop output */ ! 120: #define TTY_START (dev_flavor_t)(('t'<<16) + 5) ! 121: /* start output */ ! 122: #define TTY_SET_BREAK (dev_flavor_t)(('t'<<16) + 6) ! 123: /* set break condition */ ! 124: #define TTY_CLEAR_BREAK (dev_flavor_t)(('t'<<16) + 7) ! 125: /* clear break condition */ ! 126: #define TTY_SET_TRANSLATION (dev_flavor_t)(('t'<<16) + 8) ! 127: /* set translation table */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.