Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Unload xfer dmamap in pscsp_dma_stop().



details:   https://anonhg.NetBSD.org/src/rev/b0a9f506486e
branches:  trunk
changeset: 573181:b0a9f506486e
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jan 21 14:37:58 2005 +0000

description:
Unload xfer dmamap in pscsp_dma_stop().

diffstat:

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

diffs (26 lines):

diff -r 0c95e635d285 -r b0a9f506486e sys/dev/pci/pcscp.c
--- a/sys/dev/pci/pcscp.c       Fri Jan 21 14:31:29 2005 +0000
+++ b/sys/dev/pci/pcscp.c       Fri Jan 21 14:37:58 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcscp.c,v 1.31 2005/01/02 12:10:34 tsutsui Exp $       */
+/*     $NetBSD: pcscp.c,v 1.32 2005/01/21 14:37:58 tsutsui Exp $       */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcscp.c,v 1.31 2005/01/02 12:10:34 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcscp.c,v 1.32 2005/01/21 14:37:58 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -605,6 +605,7 @@
        /* XXX What should we do here ? */
        WRITE_DMAREG(esc, DMA_CMD,
            DMACMD_ABORT | (esc->sc_datain ? DMACMD_DIR : 0));
+       bus_dmamap_unload(esc->sc_dmat, esc->sc_xfermap);
 
        esc->sc_active = 0;
 }



Home | Main Index | Thread Index | Old Index