Module Name: src Committed By: rin Date: Wed Apr 28 02:28:06 UTC 2021
Modified Files: src/sys/arch/mac68k/mac68k: machdep.c Log Message: Change sccA address for Quadra 800 from base + 0xc000 to 0xc020. The H/W partially decodes its address, and sccA is available at offsets 0xc000, 0xc020, .... The functionality is same, but Mac toolbox ROM routines use 0xc020, and QEMU for Quadra 800 only supports this address. Thanks Mark Cave-Ayland for discussion, who is working on NetBSD support to QEMU for Quadra 800! To generate a diff of this commit: cvs rdiff -u -r1.361 -r1.362 src/sys/arch/mac68k/mac68k/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mac68k/mac68k/machdep.c diff -u src/sys/arch/mac68k/mac68k/machdep.c:1.361 src/sys/arch/mac68k/mac68k/machdep.c:1.362 --- src/sys/arch/mac68k/mac68k/machdep.c:1.361 Wed Apr 28 02:00:58 2021 +++ src/sys/arch/mac68k/mac68k/machdep.c Wed Apr 28 02:28:05 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.361 2021/04/28 02:00:58 rin Exp $ */ +/* $NetBSD: machdep.c,v 1.362 2021/04/28 02:28:05 rin Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -74,7 +74,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.361 2021/04/28 02:00:58 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.362 2021/04/28 02:28:05 rin Exp $"); #include "opt_adb.h" #include "opt_compat_netbsd.h" @@ -2122,6 +2122,15 @@ mac68k_set_io_offsets(vaddr_t base) mac68k_machine.scsi96_2 = 1; iop_init(0); /* For console */ break; + case MACH_MACQ800: + /* + * The H/W partially decode address for sccA; it is + * available at offsets 0xc000, 0xc020, .... Here, + * we choose 0xc020, where Mac toolbox ROM uses. + */ + sccA = (volatile u_char *)base + 0xc020; + SCSIBase = base + 0x10000; + break; case MACH_MACQ700: sccA = (volatile u_char *)base + 0xc000; SCSIBase = base + 0xf000;