cpuconf.c revision 1.1 1 /* $NetBSD: cpuconf.c,v 1.1 1996/11/12 05:14:28 cgd Exp $ */
2
3 /*
4 * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. All advertising materials mentioning features or use of this software
15 * must display the following acknowledgement:
16 * This product includes software developed by Christopher G. Demetriou
17 * for the NetBSD Project.
18 * 4. 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 ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33 /*
34 * CPU (machine) type configuration switch.
35 *
36 * This table should probably go at the end of conf.c, but
37 * I didn't want to make conf.c "different."
38 */
39
40 #include <sys/param.h>
41 #include <sys/device.h>
42 #include <machine/cpuconf.h>
43
44 #undef DEC_2100_A50 /* config 'option' with flag brokenness */
45 #include "dec_2100_a50.h"
46 cpu_decl(dec_2100_a50);
47
48 #undef DEC_21000 /* config 'option' with flag brokenness */
49 #include "dec_21000.h"
50 cpu_decl(dec_21000);
51
52 #undef DEC_3000_300 /* config 'option' with flag brokenness */
53 #include "dec_3000_300.h"
54 cpu_decl(dec_3000_300);
55
56 #undef DEC_3000_500 /* config 'option' with flag brokenness */
57 #include "dec_3000_500.h"
58 cpu_decl(dec_3000_500);
59
60 #undef DEC_AXPPCI_33 /* config 'option' with flag brokenness */
61 #include "dec_axppci_33.h"
62 cpu_decl(dec_axppci_33);
63
64 #undef DEC_EB164 /* config 'option' with flag brokenness */
65 #include "dec_eb164.h"
66 cpu_decl(dec_eb164);
67
68 #undef DEC_KN20AA /* config 'option' with flag brokenness */
69 #include "dec_kn20aa.h"
70 cpu_decl(dec_kn20aa);
71
72 const struct cpusw cpusw[] = {
73 cpu_unknown(), /* 0: ??? */
74 cpu_notdef("Alpha Demonstration Unit"), /* 1: ST_ADU */
75 cpu_notdef("DEC 4000 (\"Cobra\")"), /* 2: ST_DEC_4000 */
76 cpu_notdef("DEC 7000 (\"Ruby\")"), /* 3: ST_DEC_7000 */
77 cpu_init("DEC 3000/500 (\"Flamingo\")",DEC_3000_500,dec_3000_500),
78 /* 4: ST_DEC_3000_500 */
79 cpu_notdef("DEC 2000/300 (\"Jensen\")"),
80 /* 5: ST_DEC_2000_300 */
81 cpu_init("DEC 3000/300 (\"Pelican\")",DEC_3000_300,dec_3000_300),
82 /* 6: ST_DEC_3000_300 */
83 cpu_unknown(), /* 7: ??? */
84 cpu_unknown(), /* 8: ??? */
85 cpu_notdef("DEC 2100/A500 (\"Sable\")"),
86 /* 9: ST_DEC_2100_A500 */
87 cpu_notdef("AXPvme 64"), /* 10: ST_DEC_APXVME_64 */
88 cpu_init("DEC AXPpci",DEC_AXPPCI_33,dec_axppci_33),
89 /* 11: ST_DEC_AXPPCI_33 */
90 cpu_init("DEC 21000",DEC_21000,dec_21000),
91 /* 12: ST_DEC_21000 */
92 cpu_init("AlphaStation 200/400 (\"Avanti\")",DEC_2100_A50,dec_2100_a50),
93 /* 13: ST_DEC_2100_A50 */
94 cpu_notdef("Mustang"), /* 14: ST_DEC_MUSTANG */
95 cpu_init("AlphaStation 600 (KN20AA)",DEC_KN20AA,dec_kn20aa),
96 /* 15: ST_DEC_KN20AA */
97 cpu_unknown(), /* 16: ??? */
98 cpu_notdef("DEC 1000 (\"Mikasa\")"), /* 17: ST_DEC_1000 */
99 cpu_unknown(), /* 18: ??? */
100 cpu_notdef("EB66"), /* 19: ST_EB66 */
101 cpu_notdef("EB64+"), /* 20: ST_EB64P */
102 cpu_unknown(), /* 21: ??? */
103 cpu_notdef("DEC 4100 (\"Rawhide\")"), /* 22: ST_DEC_4100 */
104 cpu_notdef("??? (\"Lego\")"), /* 23: ST_DEC_EV45_PBP */
105 cpu_notdef("DEC 2100A/A500 (\"Lynx\")"),
106 /* 24: ST_DEC_2100A_A500 */
107 cpu_unknown(), /* 25: ??? */
108 cpu_init("EB164",DEC_EB164,dec_eb164), /* 26: ST_EB164 */
109 cpu_notdef("DEC 1000A (\"Noritake\")"), /* 27: ST_DEC_1000A */
110 cpu_notdef("AlphaVME 224 (\"Cortex\")"),
111 /* 28: ST_DEC_ALPHAVME_224 */
112 };
113 const int ncpusw = sizeof (cpusw) / sizeof (cpusw[0]);
114