Home | History | Annotate | Line # | Download | only in installboot
machines.c revision 1.39.26.1
      1  1.39.26.1  christos /*	$NetBSD: machines.c,v 1.39.26.1 2019/06/10 22:10:30 christos 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.39.26.1  christos __RCSID("$NetBSD: machines.c,v 1.39.26.1 2019/06/10 22:10:30 christos 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.39.26.1  christos     ib_mach_evbarm,
     55       1.34       uwe     ib_mach_ews4800mips,
     56       1.34       uwe     ib_mach_hp300,
     57       1.39     skrll     ib_mach_hppa,
     58       1.34       uwe     ib_mach_i386,
     59       1.34       uwe     ib_mach_landisk,
     60       1.34       uwe     ib_mach_macppc,
     61       1.34       uwe     ib_mach_news68k,
     62       1.34       uwe     ib_mach_newsmips,
     63       1.34       uwe     ib_mach_next68k,
     64       1.34       uwe     ib_mach_pmax,
     65       1.34       uwe     ib_mach_sparc,
     66       1.34       uwe     ib_mach_sparc64,
     67       1.34       uwe     ib_mach_sun2,
     68       1.34       uwe     ib_mach_sun3,
     69       1.34       uwe     ib_mach_vax,
     70       1.34       uwe     ib_mach_x68k;
     71       1.33       dsl 
     72       1.38      matt struct ib_mach * const machines[] = {
     73       1.34       uwe     &ib_mach_alpha,
     74       1.34       uwe     &ib_mach_amd64,
     75       1.34       uwe     &ib_mach_amiga,
     76       1.37     pooka     &ib_mach_emips,
     77  1.39.26.1  christos     &ib_mach_evbarm,
     78       1.34       uwe     &ib_mach_ews4800mips,
     79       1.34       uwe     &ib_mach_hp300,
     80       1.39     skrll     &ib_mach_hppa,
     81       1.34       uwe     &ib_mach_i386,
     82       1.34       uwe     &ib_mach_landisk,
     83       1.34       uwe     &ib_mach_macppc,
     84       1.34       uwe     &ib_mach_news68k,
     85       1.34       uwe     &ib_mach_newsmips,
     86       1.34       uwe     &ib_mach_next68k,
     87       1.34       uwe     &ib_mach_pmax,
     88       1.34       uwe     &ib_mach_sparc,
     89       1.34       uwe     &ib_mach_sparc64,
     90       1.34       uwe     &ib_mach_sun2,
     91       1.34       uwe     &ib_mach_sun3,
     92       1.34       uwe     &ib_mach_vax,
     93       1.34       uwe     &ib_mach_x68k,
     94       1.32       dsl     NULL
     95        1.1     lukem };
     96       1.32       dsl 
     97       1.32       dsl #if 0
     98       1.32       dsl 	{ "shark",	no_setboot,	no_clearboot,	no_editboot, 0 },
     99       1.32       dsl #endif
    100