Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/mac68k Quadra 900/950 SCC-compatibility seri...



details:   https://anonhg.NetBSD.org/src/rev/ffe47239090a
branches:  trunk
changeset: 474042:ffe47239090a
user:      briggs <briggs%NetBSD.org@localhost>
date:      Sat Jun 26 18:29:28 1999 +0000

description:
Quadra 900/950 SCC-compatibility serial support is at an offset of 0x20
bytes from the base SCC address.  With this change, serial console works
on my Q950 if the MacOS control panel is used.

diffstat:

 sys/arch/mac68k/mac68k/machdep.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 5fca5927debc -r ffe47239090a sys/arch/mac68k/mac68k/machdep.c
--- a/sys/arch/mac68k/mac68k/machdep.c  Sat Jun 26 17:03:48 1999 +0000
+++ b/sys/arch/mac68k/mac68k/machdep.c  Sat Jun 26 18:29:28 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.235 1999/05/26 19:16:31 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.236 1999/06/26 18:29:28 briggs Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -2204,13 +2204,18 @@
        switch (current_mac_model->class) {
        case MACH_CLASSQ:
                Via1Base = (volatile u_char *)base;
+
+               /* The following two may be overridden. */
                sccA = (volatile u_char *)base + 0xc000;
+               SCSIBase = base + 0xf000;
+
                switch (current_mac_model->machineid) {
                case MACH_MACQ900:
                case MACH_MACQ950:
                        mac68k_machine.scsi96_2 = 1;
+                       sccA = (volatile u_char *)base + 0xc020;
+                       break;
                case MACH_MACQ700:
-                       SCSIBase = base + 0xf000;
                        break;
                default:
                        SCSIBase = base + 0x10000;



Home | Main Index | Thread Index | Old Index