xref: /csrg-svn/sys/hp/dev/cons.h (revision 63146)
141474Smckusick /*
241474Smckusick  * Copyright (c) 1988 University of Utah.
3*63146Sbostic  * Copyright (c) 1990, 1993
4*63146Sbostic  *	The Regents of the University of California.  All rights reserved.
541474Smckusick  *
641474Smckusick  * This code is derived from software contributed to Berkeley by
741474Smckusick  * the Systems Programming Group of the University of Utah Computer
841474Smckusick  * Science Department.
941474Smckusick  *
1041474Smckusick  * %sccs.include.redist.c%
1141474Smckusick  *
1253923Shibler  * from: Utah $Hdr: cons.h 1.6 92/01/21$
1341474Smckusick  *
14*63146Sbostic  *	@(#)cons.h	8.1 (Berkeley) 06/10/93
1541474Smckusick  */
1641474Smckusick 
1741474Smckusick struct consdev {
1841474Smckusick 	int	(*cn_probe)();	/* probe hardware and fill in consdev info */
1941474Smckusick 	int	(*cn_init)();	/* turn on as console */
2041474Smckusick 	int	(*cn_getc)();	/* kernel getchar interface */
2141474Smckusick 	int	(*cn_putc)();	/* kernel putchar interface */
2241474Smckusick 	struct	tty *cn_tp;	/* tty structure for console device */
2341474Smckusick 	dev_t	cn_dev;		/* major/minor of device */
2441474Smckusick 	short	cn_pri;		/* pecking order; the higher the better */
2541474Smckusick };
2641474Smckusick 
2741474Smckusick /* values for cn_pri - reflect our policy for console selection */
2841474Smckusick #define	CN_DEAD		0	/* device doesn't exist */
2941474Smckusick #define CN_NORMAL	1	/* device exists but is nothing special */
3041474Smckusick #define CN_INTERNAL	2	/* "internal" bit-mapped display */
3141474Smckusick #define CN_REMOTE	3	/* serial interface with remote bit set */
3241474Smckusick 
3341474Smckusick /* XXX */
3441474Smckusick #define	CONSMAJOR	0
3542365Smckusick 
3642365Smckusick #ifdef KERNEL
3742365Smckusick extern	struct consdev constab[];
3842365Smckusick extern	struct consdev *cn_tab;
3942365Smckusick extern	struct tty *cn_tty;
4042365Smckusick #endif
41