2 /* $NetBSD: dec_kn8ae.c,v 1.15 1998/02/13 00:12:50 thorpej Exp $ */
5 * Copyright (c) 1997 by Matthew Jacob
6 * NASA AMES Research Center.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice immediately at the beginning of the file, without modification,
14 * this list of conditions, and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. The name of the author may not be used to endorse or promote products
19 * derived from this software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 #include "opt_simos.h"
36 #include <sys/param.h>
37 #include <sys/systm.h>
38 #include <sys/termios.h>
40 #include <machine/rpb.h>
41 #include <machine/cpuconf.h>
43 #include <alpha/tlsb/tlsbreg.h>
44 #include <alpha/tlsb/gbusreg.h>
45 #include <alpha/tlsb/zsvar.h>
47 void dec_kn8ae_init(int);
48 static void dec_kn8ae_cons_init(void);
50 static const struct alpha_variation_table dec_kn8ae_variations[] = {
51 { 0, "AlphaServer 8400" },
56 dec_kn8ae_init(int cputype)
60 platform.family = "AlphaServer 8400";
62 if ((platform.model = alpha_dsr_sysname()) == NULL) {
63 variation = hwrpb->rpb_variation & SV_ST_MASK;
64 if ((platform.model = alpha_variation_name(variation,
65 dec_kn8ae_variations)) == NULL)
66 platform.model = alpha_unknown_sysname();
69 platform.iobus = "tlsb";
70 platform.cons_init = dec_kn8ae_cons_init;
74 * dec_kn8ae_cons_init- not needed right now. XXX hack in SimOS console
78 * The AXP 8X00 seems to encode the
79 * type of console in the ctb_type field,
80 * not the ctb_term_type field.
83 dec_kn8ae_cons_init(void)
86 zs_cnattach(TLSB_GBUS_BASE, GBUS_DUART0_OFFSET);