summaryrefslogtreecommitdiff
path: root/sys/arch/vax/boot/autoconf.c
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>1997-01-15 23:25:34 +0000
committerMats O Jansson <maja@cvs.openbsd.org>1997-01-15 23:25:34 +0000
commitbf6413046b73005ecca3f5352c8711d00a6d00b9 (patch)
treefcd2c64f80b1be68d962f84a1e34da0a02d5385f /sys/arch/vax/boot/autoconf.c
parent957078809571dbe61aac81705145fa4cee6bfda8 (diff)
sync with NetBSD 970112 -moj
Diffstat (limited to 'sys/arch/vax/boot/autoconf.c')
-rw-r--r--sys/arch/vax/boot/autoconf.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/sys/arch/vax/boot/autoconf.c b/sys/arch/vax/boot/autoconf.c
index ca08f01214a..d3b2d2b67fd 100644
--- a/sys/arch/vax/boot/autoconf.c
+++ b/sys/arch/vax/boot/autoconf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.5 1996/03/07 23:27:06 ragge Exp $ */
+/* $NetBSD: autoconf.c,v 1.6 1996/08/02 11:21:46 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -39,8 +39,8 @@
#include "vaxstand.h"
int nmba=0, nuba=0, nbi=0,nsbi=0,nuda=0;
-int *mbaaddr, *ubaaddr;
-int *udaaddr, *uioaddr, tmsaddr;
+int *mbaaddr, *ubaaddr, *biaddr;
+int *udaaddr, *uioaddr, tmsaddr, *bioaddr;
static int mba750[]={0xf28000,0xf2a000,0xf2c000};
static int uba750[]={0xf30000,0xf32000};
@@ -55,6 +55,10 @@ static int uba780[]={0x20006000,0x20008000,0x2000a000,0x2000c000,
static int uio780[]={0x20100000,0x20140000,0x20180000,0x201c0000,
0x22100000,0x22140000,0x22180000,0x221c0000};
+static int bi8200[]={0x20000000, 0x22000000, 0x24000000, 0x26000000,
+ 0x28000000, 0x2a000000};
+static int bio8200[]={0x20400000};
+
static int uba630[]={0x20087800};
static int uio630[]={0x30000000};
#define qbdev(csr) (((csr) & 017777)-0x10000000)
@@ -67,12 +71,11 @@ static int uda630[]={qbdev(0772150),qbdev(0760334)};
autoconf()
{
- int i = MACHID(mfpr(PR_SID));
- switch (i) {
+ switch (vax_cputype) {
default:
- printf("CPU type %d not supported by boot\n",i);
+ printf("CPU type %d not supported by boot\n",vax_cputype);
asm("halt");
case VAX_8600:
@@ -117,6 +120,11 @@ autoconf()
uioaddr = uio630;
tmsaddr = qbdev(0774500);
break;
+
+ case VAX_8200:
+ nbi = 1;
+ biaddr = bi8200;
+ bioaddr = bio8200;
}
}