xref: /original-bsd/sys/hp/dev/cons.h (revision 10020db5)
1 /*
2  * Copyright (c) 1988 University of Utah.
3  * Copyright (c) 1990 The Regents of the University of California.
4  * All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * the Systems Programming Group of the University of Utah Computer
8  * Science Department.
9  *
10  * %sccs.include.redist.c%
11  *
12  * from: Utah $Hdr: cons.h 1.4 88/12/03$
13  *
14  *	@(#)cons.h	7.1 (Berkeley) 05/08/90
15  */
16 
17 struct consdev {
18 	int	(*cn_probe)();	/* probe hardware and fill in consdev info */
19 	int	(*cn_init)();	/* turn on as console */
20 	int	(*cn_getc)();	/* kernel getchar interface */
21 	int	(*cn_putc)();	/* kernel putchar interface */
22 	struct	tty *cn_tp;	/* tty structure for console device */
23 	dev_t	cn_dev;		/* major/minor of device */
24 	short	cn_pri;		/* pecking order; the higher the better */
25 };
26 
27 /* values for cn_pri - reflect our policy for console selection */
28 #define	CN_DEAD		0	/* device doesn't exist */
29 #define CN_NORMAL	1	/* device exists but is nothing special */
30 #define CN_INTERNAL	2	/* "internal" bit-mapped display */
31 #define CN_REMOTE	3	/* serial interface with remote bit set */
32 
33 /* XXX */
34 #define	CONSMAJOR	0
35