]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/alpha/alpha/dec_kn8ae.c
This commit was generated by cvs2svn to compensate for changes in r57093,
[FreeBSD/FreeBSD.git] / sys / alpha / alpha / dec_kn8ae.c
1 /* $FreeBSD$ */
2 /* $NetBSD: dec_kn8ae.c,v 1.15 1998/02/13 00:12:50 thorpej Exp $ */
3
4 /*
5  * Copyright (c) 1997 by Matthew Jacob
6  * NASA AMES Research Center.
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
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.
20  *
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
31  * SUCH DAMAGE.
32  */
33
34 #include "opt_simos.h"
35
36 #include <sys/param.h>
37 #include <sys/systm.h>
38 #include <sys/termios.h>
39
40 #include <machine/rpb.h>
41 #include <machine/cpuconf.h>
42
43 #include <alpha/tlsb/tlsbreg.h>
44 #include <alpha/tlsb/gbusreg.h>
45 #include <alpha/tlsb/zsvar.h>
46
47 void dec_kn8ae_init(int);
48 static void dec_kn8ae_cons_init(void);
49
50 static const struct alpha_variation_table dec_kn8ae_variations[] = {
51         { 0, "AlphaServer 8400" },
52         { 0, NULL },
53 };
54
55 void
56 dec_kn8ae_init(int cputype)
57 {
58         u_int64_t variation;
59
60         platform.family = "AlphaServer 8400";
61
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();
67         }
68
69         platform.iobus = "tlsb";
70         platform.cons_init = dec_kn8ae_cons_init;
71 }
72
73 /*
74  * dec_kn8ae_cons_init- not needed right now. XXX hack in SimOS console
75  *
76  * Info to retain:
77  *
78  *      The AXP 8X00 seems to encode the
79  *      type of console in the ctb_type field,
80  *      not the ctb_term_type field.
81  */
82 static void
83 dec_kn8ae_cons_init(void)
84 {
85 #ifdef SIMOS
86     zs_cnattach(TLSB_GBUS_BASE, GBUS_DUART0_OFFSET);
87 #endif
88 }