1/*	$NetBSD: ultrix_tty.h,v 1.3 2009/12/14 00:47:12 matt Exp $	*/
2
3/* From:  NetBSD sunos.h,v 1.4 1995/03/04 09:50:00 pk Exp 	*/
4
5#include <sys/ioccom.h>
6
7
8struct ultrix_ttysize {
9	int	ts_row;
10	int	ts_col;
11};
12
13/*
14 *  Ultrix includes (BRL-derived?)  SysV compatibile termio
15 * as well as termios.  This is the termio structure.
16 */
17
18struct ultrix_termio {
19	u_short	c_iflag;
20	u_short	c_oflag;
21	u_short	c_cflag;
22	u_short	c_lflag;
23	char	c_line;
24	unsigned char c_cc[10];	/* 8 for SunOS */
25};
26#define ULTRIX_TCGETA	_IOR('t', 91, struct ultrix_termio)
27#define ULTRIX_TCSETA	_IOW('t', 90, struct ultrix_termio)
28#define ULTRIX_TCSETAW	_IOW('t', 89, struct ultrix_termio)
29#define ULTRIX_TCSETAF	_IOW('t', 88, struct ultrix_termio)
30
31/*
32 * Ultrix POSIX-compatible termios.
33 * Very similar to SunOS but with more c_cc entries (gag)
34 */
35struct ultrix_termios {
36	__uint32_t	c_iflag;
37	__uint32_t	c_oflag;
38	__uint32_t	c_cflag;
39	__uint32_t	c_lflag;
40	u_char	c_cc[19]; /* 17 for Sun */
41	u_char	c_line;
42};
43
44#define ULTRIX_TCXONC	_IO('T', 6)
45#define ULTRIX_TCFLSH	_IO('T', 7)
46#define ULTRIX_TCGETS	_IOR('t', 85, struct ultrix_termios)
47#define ULTRIX_TCSETS	_IOW('t', 84, struct ultrix_termios) /* set termios */
48#define ULTRIX_TCSETSW	_IOW('t', 83, struct ultrix_termios) /* Drain&set,*/
49#define ULTRIX_TCSETSF	_IOW('t', 82, struct ultrix_termios) /*Drainflush,set*/
50#define ULTRIX_TCSNDBRK	_IO('T', 12)
51#define ULTRIX_TCDRAIN	_IO('T', 13)
52