diff options
| author | thorpej <thorpej@NetBSD.org> | 1998-02-04 05:12:46 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 1998-02-04 05:12:46 +0000 |
| commit | 8abe76d2f09ed46db2694080253e1623501ac3f7 (patch) | |
| tree | 16a9f663c517aab7299fd828dd585608afccb293 /sys/dev/ic | |
| parent | 99cc8482d1b6d02bcdee248c019e5e8b3767e1a1 (diff) | |
Add offset and length parameters to bus_dmamap_sync(), used for specifiying
partial syncs of a DMA mapping.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/aha.c | 10 | ||||
| -rw-r--r-- | sys/dev/ic/bha.c | 10 | ||||
| -rw-r--r-- | sys/dev/ic/uha.c | 10 |
3 files changed, 18 insertions, 12 deletions
diff --git a/sys/dev/ic/aha.c b/sys/dev/ic/aha.c index c22712f7774..4808bff0bcf 100644 --- a/sys/dev/ic/aha.c +++ b/sys/dev/ic/aha.c @@ -1,4 +1,4 @@ -/* $NetBSD: aha.c,v 1.13 1998/02/04 00:36:54 thorpej Exp $ */ +/* $NetBSD: aha.c,v 1.14 1998/02/04 05:14:03 thorpej Exp $ */ #undef AHADIAG #ifdef DDB @@ -8,7 +8,7 @@ #endif /*- - * Copyright (c) 1997 The NetBSD Foundation, Inc. + * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation @@ -842,7 +842,8 @@ aha_done(sc, ccb) * the data buffer. */ if (xs->datalen) { - 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); bus_dmamap_unload(dmat, ccb->dmamap_xfer); @@ -1377,7 +1378,8 @@ aha_scsi_cmd(xs) goto bad; } - 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); diff --git a/sys/dev/ic/bha.c b/sys/dev/ic/bha.c index 86a601722e8..fa2134d02a2 100644 --- a/sys/dev/ic/bha.c +++ b/sys/dev/ic/bha.c @@ -1,4 +1,4 @@ -/* $NetBSD: bha.c,v 1.20 1998/02/04 00:36:52 thorpej Exp $ */ +/* $NetBSD: bha.c,v 1.21 1998/02/04 05:14:01 thorpej Exp $ */ #undef BHADIAG #ifdef DDB @@ -8,7 +8,7 @@ #endif /*- - * Copyright (c) 1997 The NetBSD Foundation, Inc. + * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation @@ -855,7 +855,8 @@ bha_done(sc, ccb) * the data buffer. */ if (xs->datalen) { - 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); bus_dmamap_unload(dmat, ccb->dmamap_xfer); @@ -1492,7 +1493,8 @@ bha_scsi_cmd(xs) goto bad; } - 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); diff --git a/sys/dev/ic/uha.c b/sys/dev/ic/uha.c index b9ebdadc523..17d35803163 100644 --- a/sys/dev/ic/uha.c +++ b/sys/dev/ic/uha.c @@ -1,4 +1,4 @@ -/* $NetBSD: uha.c,v 1.14 1998/02/04 00:36:53 thorpej Exp $ */ +/* $NetBSD: uha.c,v 1.15 1998/02/04 05:14:02 thorpej Exp $ */ #undef UHADEBUG #ifdef DDB @@ -8,7 +8,7 @@ #endif /*- - * Copyright (c) 1997 The NetBSD Foundation, Inc. + * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation @@ -465,7 +465,8 @@ uha_done(sc, mscp) * the data buffer. */ if (xs->datalen) { - bus_dmamap_sync(dmat, mscp->dmamap_xfer, + bus_dmamap_sync(dmat, mscp->dmamap_xfer, 0, + mscp->dmamap_xfer->dm_mapsize, (xs->flags & SCSI_DATA_IN) ? BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE); bus_dmamap_unload(dmat, mscp->dmamap_xfer); @@ -677,7 +678,8 @@ uha_scsi_cmd(xs) goto bad; } - bus_dmamap_sync(dmat, mscp->dmamap_xfer, + bus_dmamap_sync(dmat, mscp->dmamap_xfer, 0, + mscp->dmamap_xfer->dm_mapsize, (flags & SCSI_DATA_IN) ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE); |
