Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc print "platform DMA" instead of "SDMA" when us...



details:   https://anonhg.NetBSD.org/src/rev/43f2629df5f7
branches:  trunk
changeset: 339614:43f2629df5f7
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Jul 30 15:03:14 2015 +0000

description:
print "platform DMA" instead of "SDMA" when using external DMA engine

diffstat:

 sys/dev/sdmmc/sdhc.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r b2b329176a09 -r 43f2629df5f7 sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c      Thu Jul 30 10:26:14 2015 +0000
+++ b/sys/dev/sdmmc/sdhc.c      Thu Jul 30 15:03:14 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc.c,v 1.63 2015/07/29 12:11:13 jmcneill Exp $       */
+/*     $NetBSD: sdhc.c,v 1.64 2015/07/30 15:03:14 jmcneill Exp $       */
 /*     $OpenBSD: sdhc.c,v 1.25 2009/01/13 19:44:20 grange Exp $        */
 
 /*
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.63 2015/07/29 12:11:13 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.64 2015/07/30 15:03:14 jmcneill Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -351,7 +351,11 @@
                        if (!ISSET(sc->sc_flags, SDHC_FLAG_EXTERNAL_DMA) ||
                            ISSET(sc->sc_flags, SDHC_FLAG_EXTDMA_DMAEN))
                                SET(hp->flags, SHF_MODE_DMAEN);
-                       aprint_normal(", SDMA");
+                       if (sc->sc_vendor_transfer_data_dma) {
+                               aprint_normal(", platform DMA");
+                       } else {
+                               aprint_normal(", SDMA");
+                       }
                }
        } else {
                aprint_normal(", PIO");



Home | Main Index | Thread Index | Old Index