diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1998-12-14 17:37:25 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1998-12-14 17:37:25 +0000 |
commit | 727010796a620b9ad8c12eb16e3da49c7fceb2d8 (patch) | |
tree | ef2c7aa749cf5129b596ec12186c6e9633378c7e /sys/arch/sparc/dev | |
parent | 8372c345845f070997acb933cce161ffb53f7e64 (diff) |
Do clamping of dvma burst size like everything else
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/hme.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index d8d2e8eec93..b327c2af067 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.13 1998/11/11 00:26:00 jason Exp $ */ +/* $OpenBSD: hme.c,v 1.14 1998/12/14 17:37:24 jason Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -196,7 +196,12 @@ hmeattach(parent, self, aux) else if (sc->sc_rev != 0xa0) sc->sc_flags = HME_FLAG_NOT_A0; - sc->sc_burst = ((struct sbus_softc *)parent)->sc_burst; + sc->sc_burst = getpropint(ca->ca_ra.ra_node, "burst-sizes", -1); + if (sc->sc_burst == -1) + sc->sc_burst = ((struct sbus_softc *)parent)->sc_burst; + + /* Clamp at parent's burst sizes */ + sc->sc_burst &= ((struct sbus_softc *)parent)->sc_burst; hme_meminit(sc); |