summaryrefslogtreecommitdiff
path: root/sys/dev/ic/i82596var.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/i82596var.h')
-rw-r--r--sys/dev/ic/i82596var.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ic/i82596var.h b/sys/dev/ic/i82596var.h
index f8a84489e48..fea89780500 100644
--- a/sys/dev/ic/i82596var.h
+++ b/sys/dev/ic/i82596var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: i82596var.h,v 1.9 2002/10/13 14:21:49 mickey Exp $ */
+/* $OpenBSD: i82596var.h,v 1.10 2002/12/19 01:24:03 mickey Exp $ */
/* $NetBSD: i82586var.h,v 1.10 1998/08/15 04:42:42 mycroft Exp $ */
/*-
@@ -295,10 +295,11 @@ int i82596_start_cmd(struct ie_softc *, int, int, int, int);
static __inline__ void
ie_ack(struct ie_softc *sc, u_int mask) /* in native byte-order */
{
- register u_int status;
+ u_int status;
+ int off = IE_SCB_STATUS(sc->scb);
- bus_space_barrier(sc->bt, sc->bh, 0, 0, BUS_SPACE_BARRIER_READ);
- status = (sc->ie_bus_read16)(sc, IE_SCB_STATUS(sc->scb));
+ bus_space_barrier(sc->bt, sc->bh, off, 2, BUS_SPACE_BARRIER_READ);
+ status = (sc->ie_bus_read16)(sc, off);
i82596_start_cmd(sc, status & mask, 0, 0, 0);
}