Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add BUS_DMA_STREAMING to data transfer map loads.



details:   https://anonhg.NetBSD.org/src/rev/3d625247d43a
branches:  trunk
changeset: 506906:3d625247d43a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Mar 08 02:36:35 2001 +0000

description:
Add BUS_DMA_STREAMING to data transfer map loads.

diffstat:

 sys/dev/pci/pcscp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 41199dda0004 -r 3d625247d43a sys/dev/pci/pcscp.c
--- a/sys/dev/pci/pcscp.c       Thu Mar 08 02:21:44 2001 +0000
+++ b/sys/dev/pci/pcscp.c       Thu Mar 08 02:36:35 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcscp.c,v 1.12 2000/12/28 22:59:15 sommerfeld Exp $    */
+/*     $NetBSD: pcscp.c,v 1.13 2001/03/08 02:36:35 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -563,8 +563,8 @@
 
        error = bus_dmamap_load(esc->sc_dmat, dmap, *esc->sc_dmaaddr,
            *esc->sc_dmalen, NULL,
-           sc->sc_nexus->xs->xs_control & XS_CTL_NOSLEEP ?
-           BUS_DMA_NOWAIT : BUS_DMA_WAITOK);
+           ((sc->sc_nexus->xs->xs_control & XS_CTL_NOSLEEP) ?
+           BUS_DMA_NOWAIT : BUS_DMA_WAITOK) | BUS_DMA_STREAMING);
        if (error) {
                printf("%s: unable to load dmamap, error = %d\n",
                    sc->sc_dev.dv_xname, error);



Home | Main Index | Thread Index | Old Index