From cb25d85fc7fccef43fa3389a394ab421da5239af Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Thu, 14 Nov 2002 13:25:53 +0000 Subject: Pass correct parameters to bus_space_barrier() instead of 0 so that this code compiles on alpha. --- sys/dev/mly/mly.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c index de1d84b3fd681..51a8b39d9a8e5 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); -- cgit v1.3