machines.c revision 1.37 1 1.37 pooka /* $NetBSD: machines.c,v 1.37 2011/01/26 01:18:55 pooka Exp $ */
2 1.1 lukem
3 1.5 lukem /*-
4 1.30 lukem * Copyright (c) 2002-2005 The NetBSD Foundation, Inc.
5 1.5 lukem * All rights reserved.
6 1.5 lukem *
7 1.5 lukem * This code is derived from software contributed to The NetBSD Foundation
8 1.5 lukem * by Luke Mewburn of Wasabi Systems.
9 1.5 lukem *
10 1.5 lukem * Redistribution and use in source and binary forms, with or without
11 1.5 lukem * modification, are permitted provided that the following conditions
12 1.5 lukem * are met:
13 1.5 lukem * 1. Redistributions of source code must retain the above copyright
14 1.5 lukem * notice, this list of conditions and the following disclaimer.
15 1.5 lukem * 2. Redistributions in binary form must reproduce the above copyright
16 1.5 lukem * notice, this list of conditions and the following disclaimer in the
17 1.5 lukem * documentation and/or other materials provided with the distribution.
18 1.5 lukem *
19 1.5 lukem * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 1.5 lukem * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 1.5 lukem * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 1.5 lukem * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 1.5 lukem * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 1.5 lukem * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 1.5 lukem * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 1.5 lukem * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 1.5 lukem * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 1.5 lukem * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.5 lukem * POSSIBILITY OF SUCH DAMAGE.
30 1.5 lukem */
31 1.16 lukem
32 1.24 jmc #if HAVE_NBTOOL_CONFIG_H
33 1.24 jmc #include "nbtool_config.h"
34 1.24 jmc #endif
35 1.24 jmc
36 1.16 lukem #include <sys/cdefs.h>
37 1.36 tsutsui #if !defined(__lint)
38 1.37 pooka __RCSID("$NetBSD: machines.c,v 1.37 2011/01/26 01:18:55 pooka Exp $");
39 1.16 lukem #endif /* !__lint */
40 1.1 lukem
41 1.1 lukem #include <sys/types.h>
42 1.1 lukem #include "installboot.h"
43 1.1 lukem
44 1.33 dsl /*
45 1.33 dsl * Define these here so they end up as zero-filled bss if installboot
46 1.33 dsl * isn't built with all the architectures defined.
47 1.33 dsl * A lot simpler that conditionally including the definitions themselves.
48 1.33 dsl */
49 1.34 uwe struct ib_mach
50 1.34 uwe ib_mach_alpha,
51 1.34 uwe ib_mach_amd64,
52 1.34 uwe ib_mach_amiga,
53 1.37 pooka ib_mach_emips,
54 1.34 uwe ib_mach_ews4800mips,
55 1.34 uwe ib_mach_hp300,
56 1.34 uwe ib_mach_hp700,
57 1.34 uwe ib_mach_i386,
58 1.34 uwe ib_mach_landisk,
59 1.34 uwe ib_mach_macppc,
60 1.34 uwe ib_mach_news68k,
61 1.34 uwe ib_mach_newsmips,
62 1.34 uwe ib_mach_next68k,
63 1.34 uwe ib_mach_pmax,
64 1.34 uwe ib_mach_sparc,
65 1.34 uwe ib_mach_sparc64,
66 1.34 uwe ib_mach_sun2,
67 1.34 uwe ib_mach_sun3,
68 1.34 uwe ib_mach_vax,
69 1.34 uwe ib_mach_x68k;
70 1.33 dsl
71 1.32 dsl struct ib_mach *machines[] = {
72 1.34 uwe &ib_mach_alpha,
73 1.34 uwe &ib_mach_amd64,
74 1.34 uwe &ib_mach_amiga,
75 1.37 pooka &ib_mach_emips,
76 1.34 uwe &ib_mach_ews4800mips,
77 1.34 uwe &ib_mach_hp300,
78 1.34 uwe &ib_mach_hp700,
79 1.34 uwe &ib_mach_i386,
80 1.34 uwe &ib_mach_landisk,
81 1.34 uwe &ib_mach_macppc,
82 1.34 uwe &ib_mach_news68k,
83 1.34 uwe &ib_mach_newsmips,
84 1.34 uwe &ib_mach_next68k,
85 1.34 uwe &ib_mach_pmax,
86 1.34 uwe &ib_mach_sparc,
87 1.34 uwe &ib_mach_sparc64,
88 1.34 uwe &ib_mach_sun2,
89 1.34 uwe &ib_mach_sun3,
90 1.34 uwe &ib_mach_vax,
91 1.34 uwe &ib_mach_x68k,
92 1.32 dsl NULL
93 1.1 lukem };
94 1.32 dsl
95 1.32 dsl #if 0
96 1.32 dsl { "shark", no_setboot, no_clearboot, no_editboot, 0 },
97 1.32 dsl #endif
98