diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-04-07 10:07:13 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-04-07 10:07:13 +0000 |
commit | 3ddbc48eef32b9db6c8e3392977c9c6e131a639b (patch) | |
tree | 00738339263cd663550517d50829b8c6c1971665 /sys | |
parent | cf5529ab621a53ae08236f2a3197ffab847792c6 (diff) |
Sync the command corresponding to our ccb, not slot 0.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/sili.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/sili.c b/sys/dev/ic/sili.c index dd20133fc99..86b04ff79b9 100644 --- a/sys/dev/ic/sili.c +++ b/sys/dev/ic/sili.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sili.c,v 1.16 2007/04/07 09:24:12 pascoe Exp $ */ +/* $OpenBSD: sili.c,v 1.17 2007/04/07 10:07:12 pascoe Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -583,7 +583,7 @@ sili_ata_cmd(struct ata_xfer *xa) return (ATA_ERROR); } bus_dmamap_sync(sc->sc_dmat, SILI_DMA_MAP(sp->sp_cmds), - 0, SILI_CMD_LEN, BUS_DMASYNC_PREWRITE); + xa->tag * SILI_CMD_LEN, SILI_CMD_LEN, BUS_DMASYNC_PREWRITE); #if 0 sili_post_direct(sp, 0, &ccb->ccb_prb, sizeof(ccb->ccb_prb)); @@ -597,7 +597,7 @@ sili_ata_cmd(struct ata_xfer *xa) } bus_dmamap_sync(sc->sc_dmat, SILI_DMA_MAP(sp->sp_cmds), - 0, SILI_CMD_LEN, BUS_DMASYNC_POSTWRITE); + xa->tag * SILI_CMD_LEN, SILI_CMD_LEN, BUS_DMASYNC_POSTWRITE); sili_unload(ccb); |