summaryrefslogtreecommitdiff
path: root/sys/dev/ic/adv.c
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2001-03-07 23:07:12 +0000
committerthorpej <thorpej@NetBSD.org>2001-03-07 23:07:12 +0000
commitfd7ed72be10effbaa920ca7dfd19c8388549e759 (patch)
treecb13e61dbcaaef1eddebe05d1a4c853ad241498d /sys/dev/ic/adv.c
parent4e453153779dbc6890aba3b910f00dc2c69c601a (diff)
Add BUS_DMA_STREAMING to data transfer maps.
Diffstat (limited to 'sys/dev/ic/adv.c')
-rw-r--r--sys/dev/ic/adv.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/ic/adv.c b/sys/dev/ic/adv.c
index eb8a481b7d5..f55f341f455 100644
--- a/sys/dev/ic/adv.c
+++ b/sys/dev/ic/adv.c
@@ -1,4 +1,4 @@
-/* $NetBSD: adv.c,v 1.20 2000/11/14 18:21:00 thorpej Exp $ */
+/* $NetBSD: adv.c,v 1.21 2001/03/07 23:07:12 thorpej Exp $ */
/*
* Generic driver for the Advanced Systems Inc. Narrow SCSI controllers
@@ -675,15 +675,17 @@ adv_scsi_cmd(xs)
*/
#ifdef TFS
if (flags & SCSI_DATA_UIO) {
- error = bus_dmamap_load_uio(dmat,
- ccb->dmamap_xfer, (struct uio *) xs->data,
- (flags & XS_CTL_NOSLEEP) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK);
+ error = bus_dmamap_load_uio(dmat, ccb->dmamap_xfer,
+ (struct uio *) xs->data,
+ ((flags & XS_CTL_NOSLEEP) ? BUS_DMA_NOWAIT :
+ BUS_DMA_WAITOK) | BUS_DMA_STREAMING);
} else
#endif /* TFS */
{
- error = bus_dmamap_load(dmat,
- ccb->dmamap_xfer, xs->data, xs->datalen, NULL,
- (flags & XS_CTL_NOSLEEP) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK);
+ error = bus_dmamap_load(dmat, ccb->dmamap_xfer,
+ xs->data, xs->datalen, NULL,
+ ((flags & XS_CTL_NOSLEEP) ? BUS_DMA_NOWAIT :
+ BUS_DMA_WAITOK) | BUS_DMA_STREAMING);
}
if (error) {