summaryrefslogtreecommitdiff
path: root/sys/dev/pci/hifn7751.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-05-07 20:37:25 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-05-07 20:37:25 +0000
commitdc2cc8545d4e55e5a2f5f503c1d9514cfcbb5dc3 (patch)
tree2adea318b7cc43f4694c8a1fd1f2a5cdf14697a9 /sys/dev/pci/hifn7751.c
parentcbe0f75b14fc9a25a9b454b9f72912678464e70a (diff)
7811 needs a short pause before setting up the DMA CSR during reset or it
will hang during the first DMA operation on some machines.
Diffstat (limited to 'sys/dev/pci/hifn7751.c')
-rw-r--r--sys/dev/pci/hifn7751.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index e292e63963c..59a9e19b9ee 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.118 2002/04/30 16:03:19 jason Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.119 2002/05/07 20:37:24 jason Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
@@ -716,6 +716,8 @@ hifn_init_pci_registers(sc)
WRITE_REG_1(sc, HIFN_1_DMA_RRAR, sc->sc_dmamap->dm_segs[0].ds_addr +
offsetof(struct hifn_dma, resr[0]));
+ DELAY(2000);
+
/* write status register */
WRITE_REG_1(sc, HIFN_1_DMA_CSR,
HIFN_DMACSR_D_CTRL_DIS | HIFN_DMACSR_R_CTRL_DIS |