summaryrefslogtreecommitdiff
path: root/sys/dev/ic/gem.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-11-25 04:52:50 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-11-25 04:52:50 +0000
commit87889df060d66f8a71793fe73a50aa1675b4f596 (patch)
tree202c4add3277fef1349710e38f895ef464e06a7f /sys/dev/ic/gem.c
parentf733d1e7ae7eff0471462a67ee4bc6935966ae7c (diff)
fix use of gem_bitwait().
Diffstat (limited to 'sys/dev/ic/gem.c')
-rw-r--r--sys/dev/ic/gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c
index c2323d746cd..24e228c709b 100644
--- a/sys/dev/ic/gem.c
+++ b/sys/dev/ic/gem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gem.c,v 1.65 2006/11/25 02:12:04 brad Exp $ */
+/* $OpenBSD: gem.c,v 1.66 2006/11/25 04:52:49 brad Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
@@ -544,7 +544,7 @@ gem_reset_rx(struct gem_softc *sc)
gem_disable_rx(sc);
bus_space_write_4(t, h, GEM_RX_CONFIG, 0);
/* Wait till it finishes */
- if (!gem_bitwait(sc, h, GEM_RESET, 1, 0))
+ if (!gem_bitwait(sc, h, GEM_RX_CONFIG, 1, 0))
printf("%s: cannot disable rx dma\n", sc->sc_dev.dv_xname);
/* Wait 5ms extra. */
delay(5000);