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