diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-07-29 05:45:29 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-07-29 05:45:29 +0000 |
commit | 60ef0bce11829d13babe6d9b8386532c655be1b4 (patch) | |
tree | 92cb385657106a7a554a1a2584abc9d59c8a16a7 /sys | |
parent | b1db7c20a766fa13add577d30d687458df0732f8 (diff) |
hifn isn't sure if the burst write problem applies to the 7811 rev 1 or not, so play it safe and apply the workaround on all 7811's.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/hifn7751.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c index 5dd48c27b1b..5dc4aa2f104 100644 --- a/sys/dev/pci/hifn7751.c +++ b/sys/dev/pci/hifn7751.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751.c,v 1.130 2002/07/25 15:27:20 jason Exp $ */ +/* $OpenBSD: hifn7751.c,v 1.131 2002/07/29 05:45:28 jason Exp $ */ /* * Invertex AEON / Hifn 7751 driver @@ -164,7 +164,8 @@ hifn_attach(parent, self, aux) if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_HIFN && PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_HIFN_7811) - sc->sc_flags |= HIFN_IS_7811 | HIFN_HAS_RNG | HIFN_HAS_LEDS; + sc->sc_flags |= HIFN_IS_7811 | HIFN_HAS_RNG | HIFN_HAS_LEDS | + HIFN_NO_BURSTWRITE; cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); cmd |= PCI_COMMAND_MEM_ENABLE | PCI_COMMAND_MASTER_ENABLE; @@ -195,14 +196,6 @@ hifn_attach(parent, self, aux) hifn_set_retry(sc); - if (sc->sc_flags & HIFN_IS_7811) { - u_int32_t revid; - - revid = READ_REG_1(sc, HIFN_1_REVID); - if (revid == HIFN_REVID_7811_PB3_2) - sc->sc_flags |= HIFN_NO_BURSTWRITE; - } - if (sc->sc_flags & HIFN_NO_BURSTWRITE) { sc->sc_waw_lastgroup = -1; sc->sc_waw_lastreg = 1; |