6198 Let's EOL cachefs
[illumos-gate.git] / usr / src / uts / common / sys / stermio.h
blob9946f177eafeb856d3737ea36016903f19c8161d
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
26 #ifndef _SYS_STERMIO_H
27 #define _SYS_STERMIO_H
29 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 11.2 */
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
36 * ioctl commands for control channels
38 #define STSTART 1 /* start protocol */
39 #define STHALT 2 /* cease protocol */
40 #define STPRINT 3 /* assign device to printer */
41 #define STENABLE 4 /* enable polling */
42 #define STDISABLE 5 /* disable polling */
43 #define STPOLL 6 /* set polling rate */
44 #define STCNTRS 7 /* poke for status reports */
45 #define STTCHAN 8 /* set trace channel number */
48 * ioctl commands for terminal and printer channels
50 #define STGET (('X'<<8)|0) /* get line options */
51 #define STSET (('X'<<8)|1) /* set line options */
52 #define STTHROW (('X'<<8)|2) /* throw away queued input */
53 #define STWLINE (('X'<<8)|3) /* get synchronous line # */
54 #define STTSV (('X'<<8)|4) /* get all line information */
56 struct stio {
57 unsigned short ttyid;
58 char row;
59 char col;
60 char orow;
61 char ocol;
62 char tab;
63 char aid;
64 char ss1;
65 char ss2;
66 unsigned short imode;
67 unsigned short lmode;
68 unsigned short omode;
72 * Mode Definitions.
74 #define STFLUSH 00400 /* FLUSH mode; lmode */
75 #define STWRAP 01000 /* WRAP mode; lmode */
76 #define STAPPL 02000 /* APPLICATION mode; lmode */
78 struct sttsv {
79 char st_major;
80 short st_pcdnum;
81 char st_devaddr;
82 int st_csidev;
85 struct stcntrs {
86 char st_lrc;
87 char st_xnaks;
88 char st_rnaks;
89 char st_xwaks;
90 char st_rwaks;
91 char st_scc;
94 /* trace message definitions */
96 #define LOC 113 /* loss of carrier */
98 #ifdef __cplusplus
100 #endif
102 #endif /* _SYS_STERMIO_H */