xref: /netbsd/sys/arch/vax/vax/conf.c (revision c4a72b64)
1 /*	$NetBSD: conf.c,v 1.61 2002/10/26 13:50:48 jdolecek Exp $	*/
2 
3 /*-
4  * Copyright (c) 1982, 1986 The Regents of the University of California.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  * 3. All advertising materials mentioning features or use of this software
16  *    must display the following acknowledgement:
17  *	This product includes software developed by the University of
18  *	California, Berkeley and its contributors.
19  * 4. Neither the name of the University nor the names of its contributors
20  *    may be used to endorse or promote products derived from this software
21  *    without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33  * SUCH DAMAGE.
34  *
35  *	@(#)conf.c	7.18 (Berkeley) 5/9/91
36  */
37 
38 #include "opt_cputype.h"
39 
40 #include <sys/param.h>
41 #include <sys/conf.h>
42 #include <machine/cpu.h>
43 
44 /*
45  * Console routines for VAX console.
46  */
47 #include <dev/cons.h>
48 
49 #include "smg.h"
50 #include "wskbd.h"
51 #if NSMG > 0
52 #if NWSKBD > 0
53 #define smgcngetc wskbd_cngetc
54 #else
55 static int
56 smgcngetc(dev_t dev)
57 {
58 	return 0;
59 }
60 #endif
61 
62 #define smgcnputc wsdisplay_cnputc
63 #define	smgcnpollc nullcnpollc
64 #endif
65 
66 cons_decl(gen);
67 cons_decl(dz);
68 cons_decl(qd);
69 cons_decl(smg);
70 #include "qv.h"
71 #include "qd.h"
72 
73 struct	consdev constab[]={
74 #if VAX8600 || VAX8200 || VAX780 || VAX750 || VAX650 || VAX630 || VAX660 || \
75 	VAX670 || VAX680 || VAX8800 || VAXANY
76 	cons_init(gen), /* Generic console type; mtpr/mfpr */
77 #endif
78 #if VAX410 || VAX43 || VAX46 || VAX48 || VAX49 || VAX53 || VAXANY
79 	cons_init(dz),	/* DZ11-like serial console on VAXstations */
80 #endif
81 #if VAX650 || VAX630 || VAXANY
82 #if NQV
83 	cons_init(qv),	/* QVSS/QDSS bit-mapped console driver */
84 #endif
85 #if NQD
86 	cons_init(qd),
87 #endif
88 #endif
89 #if NSMG
90 	cons_init(smg),
91 #endif
92 
93 #ifdef notyet
94 /* We may not always use builtin console, sometimes RD */
95 	{ rdcnprobe, rdcninit, rdcngetc, rdcnputc },
96 #endif
97 	{ 0 }
98 };
99