summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-07-20 19:55:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-07-20 19:55:21 +0000
commit193af5f2eb33f54e4c65ca45a30bac5fb8fcc53d (patch)
treeead1b69320a3a152c60c35bf36390b463c9e2a90 /sys
parente5ad7908299161213aa4024203104618f750ff6f (diff)
Not all Cheetah machines have the DSSI controller at a non-canonical address;
this will get corrected on a machine-by-machine basis.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/vax/vax/ibus.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/ibus.c b/sys/arch/vax/vax/ibus.c
index 8793268ffaa..0b21cb8d121 100644
--- a/sys/arch/vax/vax/ibus.c
+++ b/sys/arch/vax/vax/ibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ibus.c,v 1.7 2006/07/20 19:52:08 miod Exp $ */
+/* $OpenBSD: ibus.c,v 1.8 2006/07/20 19:55:20 miod Exp $ */
/* $NetBSD: ibus.c,v 1.7 2001/02/04 20:36:32 ragge Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden.
@@ -110,7 +110,12 @@ ibus_attach(parent, self, aux)
* The same procedure for SHAC.
*/
bp.type = "shac";
- if (vax_boardtype == VAX_BTYP_1303)
+ /*
+ * XXX Clearly the address on Cheetah machines varies between models,
+ * XXX but I could only check the address on a 4000 105A so far. -- miod
+ */
+ if (vax_boardtype == VAX_BTYP_1303 &&
+ ((vax_siedata >> 8) & 0xFF) != VAX_STYP_53)
va = vax_map_physmem(SHAC1303ADDR, 1);
else
va = vax_map_physmem(SHACADDR, 1);