diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-08-18 23:20:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-08-18 23:20:45 +0000 |
commit | 5ee120b843fa88bf2547b42759b7ef571baecba2 (patch) | |
tree | 8c3342e7fd8fd98c2b4212c0d6f87f73c7a2aed5 /sys/arch/vax/stand/boot/autoconf.c | |
parent | 87d00f400eaf86a770dc09268649713d4a3d50f4 (diff) |
Now that KA60 support is in, include the proper header files instead of
harcoding defines, and add rpb device type #39 (sii) boot information.
Diffstat (limited to 'sys/arch/vax/stand/boot/autoconf.c')
-rw-r--r-- | sys/arch/vax/stand/boot/autoconf.c | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/sys/arch/vax/stand/boot/autoconf.c b/sys/arch/vax/stand/boot/autoconf.c index 9ddc286b3b1..356b0038f35 100644 --- a/sys/arch/vax/stand/boot/autoconf.c +++ b/sys/arch/vax/stand/boot/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.12 2008/08/12 17:23:21 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.13 2008/08/18 23:20:43 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.19 2002/06/01 15:33:22 ragge Exp $ */ /* * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden. @@ -38,11 +38,13 @@ #include <lib/libsa/stand.h> -#include "../../include/mtpr.h" -#include "../../include/sid.h" -#include "../../include/intr.h" -#include "../../include/rpb.h" -#include "../../include/scb.h" +#include <machine/mtpr.h> +#include <machine/sid.h> +#include <machine/intr.h> +#include <machine/rpb.h> +#include <machine/scb.h> +#include <arch/vax/mbus/mbusreg.h> +#include <arch/vax/mbus/fwioreg.h> #include "vaxstand.h" void autoconf(void); @@ -52,6 +54,7 @@ void scbinit(void); void clkstart(void); int getsecs(void); void scb_stray(void *); +void scb_silent(void *); void longjmp(int *); void rtimer(void *); @@ -181,6 +184,8 @@ scbinit(void) scb_vec[i].ev = NULL; } scb_vec[4/4].hoppaddr = mcheck; + if (vax_boardtype == VAX_BTYP_60) + scb_vec[0x60/4].hoppaddr = scb_silent; } void @@ -195,8 +200,8 @@ clkstart(void) extern int ka60_ioslot; /* enable M-Bus clock in IOCSR */ - *(unsigned int *)(0x30800000 + (ka60_ioslot << 25)) |= - 0x20000000; /* CLKIEN */ + *(unsigned int *)(MBUS_SLOT_BASE(ka60_ioslot) + + FWIO_IOCSR_OFFSET) |= FWIO_IOCSR_CLKIEN; } mtpr(20, PR_IPL); @@ -267,3 +272,9 @@ scb_stray(void *arg) vector = (int) arg; printf("stray interrupt: vector 0x%x, ipl %d\n", vector, ipl); } + +void +scb_silent(void *arg) +{ + /* nothing */ +} |