diff options
author | Maxime Henrion <mux@FreeBSD.org> | 2002-11-14 13:25:53 +0000 |
---|---|---|
committer | Maxime Henrion <mux@FreeBSD.org> | 2002-11-14 13:25:53 +0000 |
commit | cb25d85fc7fccef43fa3389a394ab421da5239af (patch) | |
tree | 7a858f4d4807fe11ee0c6cbe8f055d06b0257847 /sys/dev/mly | |
parent | bedff4e8054cd50b86cbefde159d79138aaef3dd (diff) | |
download | src-cb25d85fc7fccef43fa3389a394ab421da5239af.tar.gz src-cb25d85fc7fccef43fa3389a394ab421da5239af.zip |
Pass correct parameters to bus_space_barrier() instead of 0
so that this code compiles on alpha.
Notes
Notes:
svn path=/head/; revision=106912
Diffstat (limited to 'sys/dev/mly')
-rw-r--r-- | sys/dev/mly/mly.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c index de1d84b3fd68..51a8b39d9a8e 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); |