Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arc/jazz Unload xfer dmamap in asc_dma_stop().



details:   https://anonhg.NetBSD.org/src/rev/b6b91ccb9a6b
branches:  trunk
changeset: 573210:b6b91ccb9a6b
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jan 22 07:32:05 2005 +0000

description:
Unload xfer dmamap in asc_dma_stop().

diffstat:

 sys/arch/arc/jazz/asc.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r f12a8c4b0e3f -r b6b91ccb9a6b sys/arch/arc/jazz/asc.c
--- a/sys/arch/arc/jazz/asc.c   Sat Jan 22 05:18:01 2005 +0000
+++ b/sys/arch/arc/jazz/asc.c   Sat Jan 22 07:32:05 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asc.c,v 1.13 2003/07/15 00:04:48 lukem Exp $   */
+/*     $NetBSD: asc.c,v 1.14 2005/01/22 07:32:05 tsutsui Exp $ */
 
 /*
  * Copyright (c) 2003 Izumi Tsutsui.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: asc.c,v 1.13 2003/07/15 00:04:48 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asc.c,v 1.14 2005/01/22 07:32:05 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -443,6 +443,8 @@
        bus_space_write_4(asc->sc_iot, asc->sc_dmaioh, R4030_DMA_ENAB, 0);
        bus_space_write_4(asc->sc_iot, asc->sc_dmaioh, R4030_DMA_MODE, 0);
 
+       bus_dmamap_unload(asc->sc_dmat, asc->sc_dmamap);
+
        asc->sc_active = 0;
 }
 



Home | Main Index | Thread Index | Old Index