xref: /original-bsd/sys/hp300/dev/cons_conf.c (revision 6093a5ae)
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_conf.c 1.1 92/01/21
13  *
14  *	@(#)cons_conf.c	7.1 (Berkeley) 06/05/92
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 #include "hp/dev/cons.h"
25 
26 #include "ite.h"
27 #include "dca.h"
28 #include "dcm.h"
29 
30 #if NITE > 0
31 extern int itecnprobe(), itecninit(), itecngetc(), itecnputc();
32 #endif
33 #if NDCA > 0
34 extern	int dcacnprobe(), dcacninit(), dcacngetc(), dcacnputc();
35 #endif
36 #if NDCM > 0
37 extern	int dcmcnprobe(), dcmcninit(), dcmcngetc(), dcmcnputc();
38 #endif
39 
40 struct	consdev constab[] = {
41 #if NITE > 0
42 	{ itecnprobe,	itecninit,	itecngetc,	itecnputc },
43 #endif
44 #if NDCA > 0
45 	{ dcacnprobe,	dcacninit,	dcacngetc,	dcacnputc },
46 #endif
47 #if NDCM > 0
48 	{ dcmcnprobe,	dcmcninit,	dcmcngetc,	dcmcnputc },
49 #endif
50 	{ 0 },
51 };
52