]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/alpha/alpha/dec_3000_300.c
This commit was generated by cvs2svn to compensate for changes in r57419,
[FreeBSD/FreeBSD.git] / sys / alpha / alpha / dec_3000_300.c
1 /* $FreeBSD$ */
2 /*
3  * Copyright (c) 1997 by Matthew Jacob
4  * NASA AMES Research Center.
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 immediately at the beginning of the file, without modification,
12  *    this list of conditions, and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  * 3. The name of the author may not be used to endorse or promote products
17  *    derived from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
23  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29  * SUCH DAMAGE.
30  */
31
32 #include "opt_cpu.h"
33
34 #include <sys/param.h>
35 #include <sys/systm.h>
36 #include <sys/termios.h>
37
38 #include <machine/rpb.h>
39 #include <machine/cpuconf.h>
40
41 #include <alpha/tlsb/tlsbreg.h>
42 #include <alpha/tlsb/gbusreg.h>
43 #include <alpha/tlsb/zsvar.h>
44
45 void dec_3000_300_init(int);
46 static void dec_3000_300_cons_init(void);
47
48 static const struct alpha_variation_table dec_3000_300_variations[] = {
49         { SV_ST_PELICAN, "DEC 3000/300 (\"Pelican\")" },
50         { SV_ST_PELICA, "DEC 3000/300L (\"Pelica\")" },
51         { SV_ST_PELICANPLUS, "DEC 3000/300X (\"Pelican+\")" },
52         { SV_ST_PELICAPLUS, "DEC 3000/300LX (\"Pelica+\")" },
53         { 0, NULL },
54 };
55
56 void
57 dec_3000_300_init(int cputype)
58 {
59         u_int64_t variation;
60
61         platform.family = "DEC 3000/300 (\"Pelican\")";
62
63         if ((platform.model = alpha_dsr_sysname()) == NULL) {
64                 variation = hwrpb->rpb_variation & SV_ST_MASK;
65                 if ((platform.model = alpha_variation_name(variation,
66                     dec_3000_300_variations)) == NULL)
67                         platform.model = alpha_unknown_sysname();
68         }
69
70         platform.iobus = "tcasic";
71         platform.cons_init = dec_3000_300_cons_init;
72 }
73
74 /*
75  * dec_3000_300_cons_init- not needed right now.
76  *
77  */
78 static void
79 dec_3000_300_cons_init(void)
80 {
81         return;
82 }