Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev Mask out 64-bit burst capability on sun4m...



details:   https://anonhg.NetBSD.org/src/rev/587d305fa4eb
branches:  trunk
changeset: 471885:587d305fa4eb
user:      pk <pk%NetBSD.org@localhost>
date:      Wed Apr 14 09:50:01 1999 +0000

description:
Mask out 64-bit burst capability on sun4m's, since some models (SS20)
erroneously report this in their sbus properties.

diffstat:

 sys/arch/sparc/dev/sbus.c |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r af2ab959c974 -r 587d305fa4eb sys/arch/sparc/dev/sbus.c
--- a/sys/arch/sparc/dev/sbus.c Wed Apr 14 09:48:37 1999 +0000
+++ b/sys/arch/sparc/dev/sbus.c Wed Apr 14 09:50:01 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbus.c,v 1.34 1999/02/14 12:44:31 pk Exp $ */
+/*     $NetBSD: sbus.c,v 1.35 1999/04/14 09:50:01 pk Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -402,6 +402,17 @@
         */
        sc->sc_burst = getpropint(busnode, "burst-sizes", 0);
 
+
+       if (CPU_ISSUN4M) {
+               /*
+                * Some models (e.g. SS20) erroneously report 64-bit
+                * burst capability. We mask it out here for all SUN4Ms,
+                * since probably no member of that class supports
+                * 64-bit Sbus bursts.
+                */
+               sc->sc_burst &= ~SBUS_BURST_64;
+       }
+
        /* Propagate bootpath */
        if (bp != NULL && strcmp(bp->name, busname) == 0)
                bp++;



Home | Main Index | Thread Index | Old Index