From 86e680de0c8d07364e3fdadd5e2e026b36fcb2de Mon Sep 17 00:00:00 2001 From: gwr Date: Thu, 16 Oct 1997 16:49:48 +0000 Subject: [PATCH] Add VME support --- sys/arch/sun3x/sun3x/mainbus.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/sys/arch/sun3x/sun3x/mainbus.c b/sys/arch/sun3x/sun3x/mainbus.c index 69e88057d125..14fbdf96f3cb 100644 --- a/sys/arch/sun3x/sun3x/mainbus.c +++ b/sys/arch/sun3x/sun3x/mainbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: mainbus.c,v 1.1.1.1 1997/01/14 20:57:09 gwr Exp $ */ +/* $NetBSD: mainbus.c,v 1.2 1997/10/16 16:49:48 gwr Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -71,14 +71,6 @@ main_match(parent, cf, aux) * This controls the order of autoconfig for important things * used early. For example, idprom is used by Ether drivers. */ -static int bus_order[] = { - BUS_OBIO, /* eeprom, clock */ - BUS_OBMEM, - BUS_VME16, - BUS_VME32 -}; -#define BUS_ORDER_SZ (sizeof(bus_order)/sizeof(bus_order[0])) - static void main_attach(parent, self, args) struct device *parent; @@ -90,8 +82,8 @@ main_attach(parent, self, args) printf("\n"); - for (i = 0; i < BUS_ORDER_SZ; i++) { - ca.ca_bustype = bus_order[i]; + for (i = 0; i < BUS_NTYPES; i++) { + ca.ca_bustype = i; (void) config_found(self, &ca, NULL); } }