summaryrefslogtreecommitdiffstats
path: root/sys/dev/mly
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-11-14 13:25:53 +0000
committermux <mux@FreeBSD.org>2002-11-14 13:25:53 +0000
commitea51ce165dc5dc522d67c398673512ca8c291345 (patch)
tree7a858f4d4807fe11ee0c6cbe8f055d06b0257847 /sys/dev/mly
parenta9cd663da061d0e3d5e3a4bbbbce1cecdea59bcc (diff)
downloadFreeBSD-src-ea51ce165dc5dc522d67c398673512ca8c291345.zip
FreeBSD-src-ea51ce165dc5dc522d67c398673512ca8c291345.tar.gz
Pass correct parameters to bus_space_barrier() instead of 0
so that this code compiles on alpha.
Diffstat (limited to 'sys/dev/mly')
-rw-r--r--sys/dev/mly/mly.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c
index de1d84b..51a8b39 100644
--- a/sys/dev/mly/mly.c
+++ b/sys/dev/mly/mly.c
@@ -1505,11 +1505,13 @@ mly_start(struct mly_command *mc)
/* copy in new command */
bcopy(mc->mc_packet->mmbox.data, pkt->mmbox.data, sizeof(pkt->mmbox.data));
/* barrier to ensure completion of previous write before we write the flag */
- bus_space_barrier(0, 0, 0, 0, BUS_SPACE_BARRIER_WRITE); /* tag/handle? */
+ bus_space_barrier(sc->mly_btag, sc->mly_bhandle, 0, 0,
+ BUS_SPACE_BARRIER_WRITE);
/* copy flag last */
pkt->mmbox.flag = mc->mc_packet->mmbox.flag;
/* barrier to ensure completion of previous write before we notify the controller */
- bus_space_barrier(0, 0, 0, 0, BUS_SPACE_BARRIER_WRITE); /* tag/handle */
+ bus_space_barrier(sc->mly_btag, sc->mly_bhandle, 0, 0,
+ BUS_SPACE_BARRIER_WRITE);
/* signal controller, update index */
MLY_SET_REG(sc, sc->mly_idbr, MLY_AM_CMDSENT);
OpenPOWER on IntegriCloud