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