xref: /illumos-gate/usr/src/uts/common/sys/ttold.h (revision b4203d75)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23*7c478bd9Sstevel@tonic-gate /*	  All Rights Reserved	*/
24*7c478bd9Sstevel@tonic-gate 
25*7c478bd9Sstevel@tonic-gate /*
26*7c478bd9Sstevel@tonic-gate  * University Copyright- Copyright (c) 1982, 1986, 1988
27*7c478bd9Sstevel@tonic-gate  * The Regents of the University of California
28*7c478bd9Sstevel@tonic-gate  * All Rights Reserved
29*7c478bd9Sstevel@tonic-gate  *
30*7c478bd9Sstevel@tonic-gate  * University Acknowledgment- Portions of this document are derived from
31*7c478bd9Sstevel@tonic-gate  * software developed by the University of California, Berkeley, and its
32*7c478bd9Sstevel@tonic-gate  * contributors.
33*7c478bd9Sstevel@tonic-gate  */
34*7c478bd9Sstevel@tonic-gate 
35*7c478bd9Sstevel@tonic-gate #ifndef _SYS_TTOLD_H
36*7c478bd9Sstevel@tonic-gate #define	_SYS_TTOLD_H
37*7c478bd9Sstevel@tonic-gate 
38*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
39*7c478bd9Sstevel@tonic-gate extern "C" {
40*7c478bd9Sstevel@tonic-gate #endif
41*7c478bd9Sstevel@tonic-gate 
42*7c478bd9Sstevel@tonic-gate /* All the ioctls (BSD, V7, XENIX, S5) defines are in termios.h */
43*7c478bd9Sstevel@tonic-gate /* this file has mostly BSD structures and flags */
44*7c478bd9Sstevel@tonic-gate 
45*7c478bd9Sstevel@tonic-gate /* BSD special characters. Structure for TIOCSTC/TIOCGTC */
46*7c478bd9Sstevel@tonic-gate struct tchars {
47*7c478bd9Sstevel@tonic-gate 	char	t_intrc;	/* interrupt */
48*7c478bd9Sstevel@tonic-gate 	char	t_quitc;	/* quit */
49*7c478bd9Sstevel@tonic-gate 	char	t_startc;	/* start output */
50*7c478bd9Sstevel@tonic-gate 	char	t_stopc;	/* stop output */
51*7c478bd9Sstevel@tonic-gate 	char	t_eofc;		/* end-of-file */
52*7c478bd9Sstevel@tonic-gate 	char	t_brkc;		/* input delimiter (like nl) */
53*7c478bd9Sstevel@tonic-gate };
54*7c478bd9Sstevel@tonic-gate 
55*7c478bd9Sstevel@tonic-gate /* note xenix defines tchars as tc */
56*7c478bd9Sstevel@tonic-gate struct tc {
57*7c478bd9Sstevel@tonic-gate 	char	t_intrc;	/* interrupt */
58*7c478bd9Sstevel@tonic-gate 	char	t_quitc;	/* quit */
59*7c478bd9Sstevel@tonic-gate 	char	t_startc;	/* start output */
60*7c478bd9Sstevel@tonic-gate 	char	t_stopc;	/* stop output */
61*7c478bd9Sstevel@tonic-gate 	char	t_eofc;		/* end-of-file */
62*7c478bd9Sstevel@tonic-gate 	char	t_brkc;		/* input delimiter (like nl) */
63*7c478bd9Sstevel@tonic-gate };
64*7c478bd9Sstevel@tonic-gate 
65*7c478bd9Sstevel@tonic-gate #ifndef _SGTTY_H
66*7c478bd9Sstevel@tonic-gate /*
67*7c478bd9Sstevel@tonic-gate  * Structure for TIOCGETP and TIOCSETP ioctls.
68*7c478bd9Sstevel@tonic-gate  */
69*7c478bd9Sstevel@tonic-gate 
70*7c478bd9Sstevel@tonic-gate /*  sg_flags value changed from short (in SUN/BSD) to int in System V to */
71*7c478bd9Sstevel@tonic-gate /*  match sgtty.h definition */
72*7c478bd9Sstevel@tonic-gate struct	sgttyb {
73*7c478bd9Sstevel@tonic-gate 	char	sg_ispeed;		/* input speed */
74*7c478bd9Sstevel@tonic-gate 	char	sg_ospeed;		/* output speed */
75*7c478bd9Sstevel@tonic-gate 	char	sg_erase;		/* erase character */
76*7c478bd9Sstevel@tonic-gate 	char	sg_kill;		/* kill character */
77*7c478bd9Sstevel@tonic-gate 	int	sg_flags;		/* mode flags */
78*7c478bd9Sstevel@tonic-gate };
79*7c478bd9Sstevel@tonic-gate 
80*7c478bd9Sstevel@tonic-gate /* BSD local special chars. Structure for TIOCSLTC/TIOCGLTC */
81*7c478bd9Sstevel@tonic-gate struct ltchars {
82*7c478bd9Sstevel@tonic-gate 	char	t_suspc;	/* stop process signal */
83*7c478bd9Sstevel@tonic-gate 	char	t_dsuspc;	/* delayed stop process signal */
84*7c478bd9Sstevel@tonic-gate 	char	t_rprntc;	/* reprint line */
85*7c478bd9Sstevel@tonic-gate 	char	t_flushc;	/* flush output (toggles) */
86*7c478bd9Sstevel@tonic-gate 	char	t_werasc;	/* word erase */
87*7c478bd9Sstevel@tonic-gate 	char	t_lnextc;	/* literal next character */
88*7c478bd9Sstevel@tonic-gate };
89*7c478bd9Sstevel@tonic-gate #endif /* _SGTTY_H */
90*7c478bd9Sstevel@tonic-gate 
91*7c478bd9Sstevel@tonic-gate /*
92*7c478bd9Sstevel@tonic-gate  * 4.3BSD/XENIX tty ioctl commands that are either:
93*7c478bd9Sstevel@tonic-gate  *  1) deprecated
94*7c478bd9Sstevel@tonic-gate  *  2) not implemented (and never were implemented)
95*7c478bd9Sstevel@tonic-gate  *  3) implemented on top of new-style "ioctl"s.
96*7c478bd9Sstevel@tonic-gate  */
97*7c478bd9Sstevel@tonic-gate 
98*7c478bd9Sstevel@tonic-gate /*
99*7c478bd9Sstevel@tonic-gate  * These ioctls are also defined in termios.h.
100*7c478bd9Sstevel@tonic-gate  * because XENIX expects to see them in termio.h
101*7c478bd9Sstevel@tonic-gate  */
102*7c478bd9Sstevel@tonic-gate 
103*7c478bd9Sstevel@tonic-gate #ifndef tIOC
104*7c478bd9Sstevel@tonic-gate #define	tIOC	('t'<<8)
105*7c478bd9Sstevel@tonic-gate #endif
106*7c478bd9Sstevel@tonic-gate 
107*7c478bd9Sstevel@tonic-gate #ifndef _SYS_TERMIOS_H
108*7c478bd9Sstevel@tonic-gate /* defined in termios.h also so that all the ioctl codes are visible */
109*7c478bd9Sstevel@tonic-gate 
110*7c478bd9Sstevel@tonic-gate #define	TIOCGETD	(tIOC|0)
111*7c478bd9Sstevel@tonic-gate #define	TIOCSETD	(tIOC|1)
112*7c478bd9Sstevel@tonic-gate #ifndef _SGTTY_H
113*7c478bd9Sstevel@tonic-gate #define	TIOCHPCL	(tIOC|2)
114*7c478bd9Sstevel@tonic-gate #define	TIOCGETP	(tIOC|8)
115*7c478bd9Sstevel@tonic-gate #define	TIOCSETP  	(tIOC|9)
116*7c478bd9Sstevel@tonic-gate #endif /* _SGTTY_H */
117*7c478bd9Sstevel@tonic-gate #define	TIOCSETN	(tIOC|10)
118*7c478bd9Sstevel@tonic-gate #ifndef _SGTTY_H
119*7c478bd9Sstevel@tonic-gate #define	TIOCEXCL	(tIOC|13)
120*7c478bd9Sstevel@tonic-gate #define	TIOCNXCL	(tIOC|14)
121*7c478bd9Sstevel@tonic-gate #endif /* _SGTTY_H */
122*7c478bd9Sstevel@tonic-gate #define	TIOCFLUSH	(tIOC|16)
123*7c478bd9Sstevel@tonic-gate #define	TIOCSETC	(tIOC|17)
124*7c478bd9Sstevel@tonic-gate #define	TIOCGETC	(tIOC|18)
125*7c478bd9Sstevel@tonic-gate 
126*7c478bd9Sstevel@tonic-gate /* BSD ioctls that are not the same as XENIX */
127*7c478bd9Sstevel@tonic-gate #define	TIOCLBIS	(tIOC|127)	/* bis local mode bits */
128*7c478bd9Sstevel@tonic-gate #define	TIOCLBIC	(tIOC|126)	/* bic local mode bits */
129*7c478bd9Sstevel@tonic-gate #define	TIOCLSET	(tIOC|125)	/* set entire local mode word */
130*7c478bd9Sstevel@tonic-gate #define	TIOCLGET	(tIOC|124)	/* get local modes */
131*7c478bd9Sstevel@tonic-gate #define	TIOCSBRK	(tIOC|123)	/* set break bit */
132*7c478bd9Sstevel@tonic-gate #define	TIOCCBRK	(tIOC|122)	/* clear break bit */
133*7c478bd9Sstevel@tonic-gate #define	TIOCSDTR	(tIOC|121)	/* set data terminal ready */
134*7c478bd9Sstevel@tonic-gate #define	TIOCCDTR	(tIOC|120)	/* clear data terminal ready */
135*7c478bd9Sstevel@tonic-gate #define	TIOCSLTC	(tIOC|117)	/* set local special chars */
136*7c478bd9Sstevel@tonic-gate #define	TIOCGLTC	(tIOC|116)	/* get local special chars */
137*7c478bd9Sstevel@tonic-gate #define	TIOCOUTQ	(tIOC|115)	/* driver output queue size */
138*7c478bd9Sstevel@tonic-gate #define	TIOCNOTTY	(tIOC|113)	/* void tty association */
139*7c478bd9Sstevel@tonic-gate #define	TIOCSTOP	(tIOC|111)	/* stop output, like ^S */
140*7c478bd9Sstevel@tonic-gate #define	TIOCSTART	(tIOC|110)	/* start output, like ^Q */
141*7c478bd9Sstevel@tonic-gate 
142*7c478bd9Sstevel@tonic-gate #define	TIOCREMOTE	(tIOC|30)	/* remote input editing */
143*7c478bd9Sstevel@tonic-gate 
144*7c478bd9Sstevel@tonic-gate /* windowing ioctls and structure also defined in termios.h */
145*7c478bd9Sstevel@tonic-gate 
146*7c478bd9Sstevel@tonic-gate #ifndef	_TIOC
147*7c478bd9Sstevel@tonic-gate #define	_TIOC	('T'<<8)
148*7c478bd9Sstevel@tonic-gate #endif
149*7c478bd9Sstevel@tonic-gate 
150*7c478bd9Sstevel@tonic-gate #define	TIOCGWINSZ (_TIOC|104)
151*7c478bd9Sstevel@tonic-gate #define	TIOCSWINSZ (_TIOC|103)
152*7c478bd9Sstevel@tonic-gate 
153*7c478bd9Sstevel@tonic-gate /* Windowing structure to support TIOCSWINSZ/TIOCGWINSZ */
154*7c478bd9Sstevel@tonic-gate struct winsize {
155*7c478bd9Sstevel@tonic-gate 	unsigned short ws_row;		/* rows, in characters */
156*7c478bd9Sstevel@tonic-gate 	unsigned short ws_col;		/* columns, in character */
157*7c478bd9Sstevel@tonic-gate 	unsigned short ws_xpixel;	/* horizontal size, pixels */
158*7c478bd9Sstevel@tonic-gate 	unsigned short ws_ypixel;	/* vertical size, pixels */
159*7c478bd9Sstevel@tonic-gate };
160*7c478bd9Sstevel@tonic-gate 
161*7c478bd9Sstevel@tonic-gate 
162*7c478bd9Sstevel@tonic-gate #endif /* end _SYS_TERMIOS_H */
163*7c478bd9Sstevel@tonic-gate 
164*7c478bd9Sstevel@tonic-gate /* Old SVR3.0 flags - should be removed if there is no problem */
165*7c478bd9Sstevel@tonic-gate /* note they are commented out */
166*7c478bd9Sstevel@tonic-gate 
167*7c478bd9Sstevel@tonic-gate #if 0
168*7c478bd9Sstevel@tonic-gate 
169*7c478bd9Sstevel@tonic-gate #define	O_HUPCL	01
170*7c478bd9Sstevel@tonic-gate #define	O_XTABS	02
171*7c478bd9Sstevel@tonic-gate #define	O_LCASE	04   /* simulate lower case */
172*7c478bd9Sstevel@tonic-gate #define	O_ECHO	010  /* echo input */
173*7c478bd9Sstevel@tonic-gate #define	O_CRMOD	020  /* map \r to \r\n on output */
174*7c478bd9Sstevel@tonic-gate #define	O_RAW	040  /* no i/o processing */
175*7c478bd9Sstevel@tonic-gate #define	O_ODDP	0100 /* get/send odd parity */
176*7c478bd9Sstevel@tonic-gate #define	O_EVENP	0200 /* get/send even parity */
177*7c478bd9Sstevel@tonic-gate #define	O_NLDELAY	001400	/* \n delay */
178*7c478bd9Sstevel@tonic-gate #define	O_NL1	000400
179*7c478bd9Sstevel@tonic-gate #define	O_NL2	001000
180*7c478bd9Sstevel@tonic-gate #define	O_TBDELAY	002000	/* horizontal tab delay */
181*7c478bd9Sstevel@tonic-gate #define	O_NOAL	004000
182*7c478bd9Sstevel@tonic-gate #define	O_CRDELAY	030000	/* \r delay */
183*7c478bd9Sstevel@tonic-gate #define	O_CR1	010000
184*7c478bd9Sstevel@tonic-gate #define	O_CR2	020000
185*7c478bd9Sstevel@tonic-gate #define	O_VTDELAY	040000	/* vertical tab delay */
186*7c478bd9Sstevel@tonic-gate #define	O_BSDELAY	0100000 /* \b delay */
187*7c478bd9Sstevel@tonic-gate 
188*7c478bd9Sstevel@tonic-gate #endif
189*7c478bd9Sstevel@tonic-gate 
190*7c478bd9Sstevel@tonic-gate /*
191*7c478bd9Sstevel@tonic-gate  * 4.3 BSD additions. These are new codes  and some of the
192*7c478bd9Sstevel@tonic-gate  * flags that were there in SVR3.2 ttold.h have been given
193*7c478bd9Sstevel@tonic-gate  * new codes. Otherwise they will not fit in a word.
194*7c478bd9Sstevel@tonic-gate  */
195*7c478bd9Sstevel@tonic-gate 
196*7c478bd9Sstevel@tonic-gate #define		O_TANDEM	0x00000001	/* send stopc on out q full */
197*7c478bd9Sstevel@tonic-gate #define		O_CBREAK	0x00000002	/* half-cooked mode */
198*7c478bd9Sstevel@tonic-gate #define		O_LCASE		0x00000004	/* simulate lower case */
199*7c478bd9Sstevel@tonic-gate #define		O_ECHO		0x00000008	/* echo input */
200*7c478bd9Sstevel@tonic-gate #define		O_CRMOD		0x00000010	/* map \r to \r\n on output */
201*7c478bd9Sstevel@tonic-gate #define		O_RAW		0x00000020	/* no i/o processing */
202*7c478bd9Sstevel@tonic-gate #define		O_ODDP		0x00000040	/* get/send odd parity */
203*7c478bd9Sstevel@tonic-gate #define		O_EVENP		0x00000080	/* get/send even parity */
204*7c478bd9Sstevel@tonic-gate #define		O_ANYP		0x000000c0	/* get any parity/send none */
205*7c478bd9Sstevel@tonic-gate #define		O_NLDELAY	0x00000300	/* \n delay */
206*7c478bd9Sstevel@tonic-gate #define			O_NL0	0x00000000
207*7c478bd9Sstevel@tonic-gate #define			O_NL1	0x00000100	/* tty 37 */
208*7c478bd9Sstevel@tonic-gate #define			O_NL2	0x00000200	/* vt05 */
209*7c478bd9Sstevel@tonic-gate #define			O_NL3	0x00000300
210*7c478bd9Sstevel@tonic-gate #define		O_TBDELAY	0x00000c00	/* horizontal tab delay */
211*7c478bd9Sstevel@tonic-gate #define			O_TAB0	0x00000000
212*7c478bd9Sstevel@tonic-gate #define			O_TAB1	0x00000400	/* tty 37 */
213*7c478bd9Sstevel@tonic-gate #define			O_TAB2	0x00000800
214*7c478bd9Sstevel@tonic-gate #define		O_XTABS		0x00000c00	/* expand tabs on output */
215*7c478bd9Sstevel@tonic-gate #define		O_CRDELAY	0x00003000	/* \r delay */
216*7c478bd9Sstevel@tonic-gate #define			O_CR0	0x00000000
217*7c478bd9Sstevel@tonic-gate #define			O_CR1	0x00001000	/* tn 300 */
218*7c478bd9Sstevel@tonic-gate #define			O_CR2	0x00002000	/* tty 37 */
219*7c478bd9Sstevel@tonic-gate #define			O_CR3	0x00003000	/* concept 100 */
220*7c478bd9Sstevel@tonic-gate #define		O_VTDELAY	0x00004000	/* vertical tab delay */
221*7c478bd9Sstevel@tonic-gate #define			O_FF0	0x00000000
222*7c478bd9Sstevel@tonic-gate #define			O_FF1	0x00004000	/* tty 37 */
223*7c478bd9Sstevel@tonic-gate #define		O_BSDELAY	0x00008000	/* \b delay */
224*7c478bd9Sstevel@tonic-gate #define			O_BS0	0x00000000
225*7c478bd9Sstevel@tonic-gate #define			O_BS1	0x00008000
226*7c478bd9Sstevel@tonic-gate #define		O_ALLDELAY \
227*7c478bd9Sstevel@tonic-gate 	(O_NLDELAY|O_TBDELAY|O_CRDELAY|O_VTDELAY|O_BSDELAY)
228*7c478bd9Sstevel@tonic-gate #define		O_CRTBS		0x00010000	/* do backspacing for crt */
229*7c478bd9Sstevel@tonic-gate #define		O_PRTERA	0x00020000	/* \ ... / erase */
230*7c478bd9Sstevel@tonic-gate #define		O_CRTERA	0x00040000	/* " \b " to wipe out char */
231*7c478bd9Sstevel@tonic-gate #define		O_TILDE		0x00080000	/* hazeltine tilde kludge */
232*7c478bd9Sstevel@tonic-gate #define		O_MDMBUF	0x00100000	/* start/stop output on */
233*7c478bd9Sstevel@tonic-gate 						/* carrier intr */
234*7c478bd9Sstevel@tonic-gate #define		O_LITOUT	0x00200000	/* literal output */
235*7c478bd9Sstevel@tonic-gate #define		O_TOSTOP	0x00400000	/* SIGSTOP on background */
236*7c478bd9Sstevel@tonic-gate 						/* output */
237*7c478bd9Sstevel@tonic-gate #define		O_FLUSHO	0x00800000	/* flush output to terminal */
238*7c478bd9Sstevel@tonic-gate #define		O_NOHANG	0x01000000	/* no SIGHUP on carrier drop */
239*7c478bd9Sstevel@tonic-gate #define		O_L001000	0x02000000
240*7c478bd9Sstevel@tonic-gate #define		O_CRTKIL	0x04000000	/* kill line with " \b " */
241*7c478bd9Sstevel@tonic-gate #define		O_PASS8		0x08000000
242*7c478bd9Sstevel@tonic-gate #define		O_CTLECH	0x10000000	/* echo control chars as ^X */
243*7c478bd9Sstevel@tonic-gate #define		O_PENDIN	0x20000000	/* tp->t_rawq needs reread */
244*7c478bd9Sstevel@tonic-gate #define		O_DECCTQ	0x40000000	/* only ^Q starts after ^S */
245*7c478bd9Sstevel@tonic-gate #define		O_NOFLSH	0x80000000	/* no output flush on signal */
246*7c478bd9Sstevel@tonic-gate 
247*7c478bd9Sstevel@tonic-gate /* more BSD flags */
248*7c478bd9Sstevel@tonic-gate #define		LCRTBS		(O_CRTBS>>16)
249*7c478bd9Sstevel@tonic-gate #define		LPRTERA		(O_PRTERA>>16)
250*7c478bd9Sstevel@tonic-gate #define		LCRTERA		(O_CRTERA>>16)
251*7c478bd9Sstevel@tonic-gate #define		LTILDE		(O_TILDE>>16)
252*7c478bd9Sstevel@tonic-gate #define		LMDMBUF		(O_MDMBUF>>16)
253*7c478bd9Sstevel@tonic-gate #define		LLITOUT		(O_LITOUT>>16)
254*7c478bd9Sstevel@tonic-gate #define		LTOSTOP		(O_TOSTOP>>16)
255*7c478bd9Sstevel@tonic-gate #define		LFLUSHO		(O_FLUSHO>>16)
256*7c478bd9Sstevel@tonic-gate #define		LNOHANG		(O_NOHANG>>16)
257*7c478bd9Sstevel@tonic-gate #define		LCRTKIL		(O_CRTKIL>>16)
258*7c478bd9Sstevel@tonic-gate #define		LPASS8		(O_PASS8>>16)
259*7c478bd9Sstevel@tonic-gate #define		LCTLECH		(O_CTLECH>>16)
260*7c478bd9Sstevel@tonic-gate #define		LPENDIN		(O_PENDIN>>16)
261*7c478bd9Sstevel@tonic-gate #define		LDECCTQ		(O_DECCTQ>>16)
262*7c478bd9Sstevel@tonic-gate #define		LNOFLSH		(O_NOFLSH>>16)
263*7c478bd9Sstevel@tonic-gate 
264*7c478bd9Sstevel@tonic-gate 
265*7c478bd9Sstevel@tonic-gate #define		NOPOST	0x00000001	/* no processing on output (LITOUT */
266*7c478bd9Sstevel@tonic-gate 					/* with 7 bits + parity) */
267*7c478bd9Sstevel@tonic-gate #define		NOISIG	0x00000002	/* disable all signal-generating */
268*7c478bd9Sstevel@tonic-gate 					/* characters */
269*7c478bd9Sstevel@tonic-gate #define		STOPB	0x00000004	/* two stop bits */
270*7c478bd9Sstevel@tonic-gate 
271*7c478bd9Sstevel@tonic-gate #define	OTTYDISC	0		/* old, v7 std tty driver */
272*7c478bd9Sstevel@tonic-gate #define	NETLDISC	1		/* line discip for berk net */
273*7c478bd9Sstevel@tonic-gate #define	NTTYDISC	2		/* new tty discipline */
274*7c478bd9Sstevel@tonic-gate #define	TABLDISC	3		/* hitachi tablet discipline */
275*7c478bd9Sstevel@tonic-gate #define	NTABLDISC	4		/* gtco tablet discipline */
276*7c478bd9Sstevel@tonic-gate #define	MOUSELDISC	5		/* mouse discipline */
277*7c478bd9Sstevel@tonic-gate #define	KBDLDISC	6		/* up/down keyboard trans (console) */
278*7c478bd9Sstevel@tonic-gate 
279*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
280*7c478bd9Sstevel@tonic-gate }
281*7c478bd9Sstevel@tonic-gate #endif
282*7c478bd9Sstevel@tonic-gate 
283*7c478bd9Sstevel@tonic-gate #endif	/* _SYS_TTOLD_H */
284