From 21cedb92ab0aa4a4e51fdb421cc0afdd04823793 Mon Sep 17 00:00:00 2001 From: briggs Date: Mon, 28 Oct 1996 03:48:54 +0000 Subject: Most 040 models have scsi regs at base + 0x10000, not base + 0xf000 like the Q700. --- sys/arch/mac68k/mac68k/machdep.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'sys/arch/mac68k') diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index b9d60762b95..3611f2cd985 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.21 1996/10/23 04:49:48 briggs Exp $ */ +/* $OpenBSD: machdep.c,v 1.22 1996/10/28 03:48:53 briggs Exp $ */ /* $NetBSD: machdep.c,v 1.122 1996/10/15 06:40:39 scottr Exp $ */ /* @@ -2517,7 +2517,16 @@ mac68k_set_io_offsets(base) Via1Base = (volatile u_char *) base; sccA = (volatile u_char *) base + 0xc000; ASCBase = (volatile u_char *) base + 0x14000; - SCSIBase = base + 0xf000; + switch (current_mac_model->machineid) { + case MACH_MACQ900: + case MACH_MACQ950: + case MACH_MACQ700: + SCSIBase = base + 0xf000; + break; + default: + SCSIBase = base + 0x10000; + break; + } break; case MACH_CLASSQ2: /* @@ -2528,12 +2537,12 @@ mac68k_set_io_offsets(base) Via1Base = (volatile u_char *) base; sccA = (volatile u_char *) base + 0xc020; ASCBase = (volatile u_char *) base + 0x14000; - SCSIBase = base + 0xf000; + SCSIBase = base + 0x10000; break; case MACH_CLASSAV: Via1Base = (volatile u_char *) base; sccA = (volatile u_char *) base + 0x4000; - ASCBase = NULL; + ASCBase = (volatile u_char *) base + 0x14000; SCSIBase = base + 0x18000; break; case MACH_CLASSII: -- cgit v1.2.3