diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-05 17:25:59 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-05 17:25:59 +0000 |
commit | 85530efaf7a6a42f72dd88dd2812fc34f33a931e (patch) | |
tree | fe27ed806015eba36ede599b284de31066d02abb /sys/dev/ic/adv.c | |
parent | 6278fb02068a0fc75a8a6ecb4ed0a3292aad76ab (diff) |
Switch everything to the new bus_dmamap_sync API.
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@
and drahn@.
Diffstat (limited to 'sys/dev/ic/adv.c')
-rw-r--r-- | sys/dev/ic/adv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/adv.c b/sys/dev/ic/adv.c index e6a22226a3d..5200e1d0b78 100644 --- a/sys/dev/ic/adv.c +++ b/sys/dev/ic/adv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adv.c,v 1.9 2001/08/26 18:03:07 krw Exp $ */ +/* $OpenBSD: adv.c,v 1.10 2001/11/05 17:25:58 art Exp $ */ /* $NetBSD: adv.c,v 1.6 1998/10/28 20:39:45 dante Exp $ */ /* @@ -778,7 +778,7 @@ adv_scsi_cmd(xs) adv_free_ccb(sc, ccb); return (COMPLETE); } - adv_bus_dmamap_sync(dmat, ccb->dmamap_xfer, + bus_dmamap_sync(dmat, ccb->dmamap_xfer, 0, ccb->dmamap_xfer->dm_mapsize, ((flags & SCSI_DATA_IN) ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE)); @@ -990,7 +990,7 @@ adv_narrow_isr_callback(sc, qdonep) * the data buffer. */ if (xs->datalen) { - adv_bus_dmamap_sync(dmat, ccb->dmamap_xfer, + bus_dmamap_sync(dmat, ccb->dmamap_xfer, 0, ccb->dmamap_xfer->dm_mapsize, ((xs->flags & SCSI_DATA_IN) ? BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE)); |