Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc Add SDHC_FLAG_POLL_CARD_DET flag which lets th...
details: https://anonhg.NetBSD.org/src/rev/c8ff06489d62
branches: trunk
changeset: 339693:c8ff06489d62
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Aug 03 12:11:36 2015 +0000
description:
Add SDHC_FLAG_POLL_CARD_DET flag which lets the bus glue request polling
instead of standard SDHC card insert / detach events.
diffstat:
sys/dev/sdmmc/sdhc.c | 6 ++++--
sys/dev/sdmmc/sdhcvar.h | 3 ++-
2 files changed, 6 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r e70c20b88c01 -r c8ff06489d62 sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c Mon Aug 03 12:10:29 2015 +0000
+++ b/sys/dev/sdmmc/sdhc.c Mon Aug 03 12:11:36 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhc.c,v 1.76 2015/08/03 10:08:51 jmcneill Exp $ */
+/* $NetBSD: sdhc.c,v 1.77 2015/08/03 12:11:36 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.76 2015/08/03 10:08:51 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.77 2015/08/03 12:11:36 jmcneill Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -550,6 +550,8 @@
}
if (ISSET(sc->sc_flags, SDHC_FLAG_SINGLE_ONLY))
saa.saa_caps |= SMC_CAPS_SINGLE_ONLY;
+ if (ISSET(sc->sc_flags, SDHC_FLAG_POLL_CARD_DET))
+ saa.saa_caps |= SMC_CAPS_POLL_CARD_DET;
hp->sdmmc = config_found(sc->sc_dev, &saa, sdhc_cfprint);
return 0;
diff -r e70c20b88c01 -r c8ff06489d62 sys/dev/sdmmc/sdhcvar.h
--- a/sys/dev/sdmmc/sdhcvar.h Mon Aug 03 12:10:29 2015 +0000
+++ b/sys/dev/sdmmc/sdhcvar.h Mon Aug 03 12:11:36 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhcvar.h,v 1.22 2015/08/02 22:01:28 jmcneill Exp $ */
+/* $NetBSD: sdhcvar.h,v 1.23 2015/08/03 12:11:36 jmcneill Exp $ */
/* $OpenBSD: sdhcvar.h,v 1.3 2007/09/06 08:01:01 jsg Exp $ */
/*
@@ -56,6 +56,7 @@
#define SDHC_FLAG_SINGLE_POWER_WRITE 0x00040000
#define SDHC_FLAG_NO_TIMEOUT 0x00080000 /* ignore timeout interrupts */
#define SDHC_FLAG_USE_ADMA2 0x00100000
+#define SDHC_FLAG_POLL_CARD_DET 0x00200000 /* polling card detect */
uint32_t sc_clkbase;
int sc_clkmsk; /* Mask for SDCLK */
Home |
Main Index |
Thread Index |
Old Index