summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-04-01 18:09:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-04-01 18:09:53 +0000
commit2db9b9d16010c2552f525061a9d5dbfb9fed204a (patch)
tree43fed1d28dd08e9e3d23123d517f16457eb6fbd1 /sys/dev/sbus
parentfcae158862e93f66f373e1aca119026532e6e3ab (diff)
handle burst size of 64
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/if_hme_sbus.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/sbus/if_hme_sbus.c b/sys/dev/sbus/if_hme_sbus.c
index 3e9042e1956..3ad7e09daeb 100644
--- a/sys/dev/sbus/if_hme_sbus.c
+++ b/sys/dev/sbus/if_hme_sbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_hme_sbus.c,v 1.7 2003/07/07 15:37:07 jason Exp $ */
+/* $OpenBSD: if_hme_sbus.c,v 1.8 2005/04/01 18:09:52 brad Exp $ */
/* $NetBSD: if_hme_sbus.c,v 1.6 2001/02/28 14:52:48 mrg Exp $ */
/*-
@@ -183,8 +183,14 @@ hmeattach_sbus(struct device *parent, struct device *self, void *aux)
burst &= sbusburst;
/* Translate into plain numerical format */
- sc->sc_burst = (burst & SBUS_BURST_32) ? 32 :
- (burst & SBUS_BURST_16) ? 16 : 0;
+ if ((burst & SBUS_BURST_64))
+ sc->sc_burst = 64;
+ else if ((burst & SBUS_BURST_32))
+ sc->sc_burst = 32;
+ else if ((burst & SBUS_BURST_16))
+ sc->sc_burst = 16;
+ else
+ sc->sc_burst = 0;
sc->sc_pci = 0; /* XXXXX should all be done in bus_dma. */
hme_config(sc);