xref: /original-bsd/sys/hp300/dev/cons_conf.c (revision 3705696b)
1 /*
2  * Copyright (c) 1988 University of Utah.
3  * Copyright (c) 1990, 1993
4  *	The Regents of the University of California.  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_conf.c 1.1 92/01/21
13  *
14  *	@(#)cons_conf.c	8.1 (Berkeley) 06/10/93
15  */
16 
17 /*
18  * This entire table could be autoconfig()ed but that would mean that
19  * the kernel's idea of the console would be out of sync with that of
20  * the standalone boot.  I think it best that they both use the same
21  * known algorithm unless we see a pressing need otherwise.
22  */
23 #include <sys/types.h>
24 
25 #include <hp/dev/cons.h>
26 
27 #include "ite.h"
28 #include "dca.h"
29 #include "dcm.h"
30 
31 #if NITE > 0
32 extern int itecnprobe(), itecninit(), itecngetc(), itecnputc();
33 #endif
34 #if NDCA > 0
35 extern	int dcacnprobe(), dcacninit(), dcacngetc(), dcacnputc();
36 #endif
37 #if NDCM > 0
38 extern	int dcmcnprobe(), dcmcninit(), dcmcngetc(), dcmcnputc();
39 #endif
40 
41 struct	consdev constab[] = {
42 #if NITE > 0
43 	{ itecnprobe,	itecninit,	itecngetc,	itecnputc },
44 #endif
45 #if NDCA > 0
46 	{ dcacnprobe,	dcacninit,	dcacngetc,	dcacnputc },
47 #endif
48 #if NDCM > 0
49 	{ dcmcnprobe,	dcmcninit,	dcmcngetc,	dcmcnputc },
50 #endif
51 	{ 0 },
52 };
53