Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc Identify SDHC 4.1 and 4.2. From {DragonFly,Fre...



details:   https://anonhg.NetBSD.org/src/rev/56fb1e0c9a0e
branches:  trunk
changeset: 936007:56fb1e0c9a0e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jul 15 15:57:52 2020 +0000

description:
Identify SDHC 4.1 and 4.2. From {DragonFly,Free}BSD.

diffstat:

 sys/dev/sdmmc/sdhc.c    |  10 ++++++++--
 sys/dev/sdmmc/sdhcreg.h |   4 +++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r 50c2917d832e -r 56fb1e0c9a0e sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c      Wed Jul 15 15:08:26 2020 +0000
+++ b/sys/dev/sdmmc/sdhc.c      Wed Jul 15 15:57:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc.c,v 1.106 2019/10/28 18:11:15 joerg Exp $ */
+/*     $NetBSD: sdhc.c,v 1.107 2020/07/15 15:57:52 msaitoh 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.106 2019/10/28 18:11:15 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.107 2020/07/15 15:57:52 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -324,6 +324,12 @@
        case SDHC_SPEC_VERS_400:
                aprint_normal("4.0");
                break;
+       case SDHC_SPEC_VERS_410:
+               aprint_normal("4.1");
+               break;
+       case SDHC_SPEC_VERS_420:
+               aprint_normal("4.2");
+               break;
        case SDHC_SPEC_NOVERS:
                hp->specver = -1;
                aprint_normal("NO-VERS");
diff -r 50c2917d832e -r 56fb1e0c9a0e sys/dev/sdmmc/sdhcreg.h
--- a/sys/dev/sdmmc/sdhcreg.h   Wed Jul 15 15:08:26 2020 +0000
+++ b/sys/dev/sdmmc/sdhcreg.h   Wed Jul 15 15:57:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhcreg.h,v 1.20 2019/10/23 05:20:52 hkenken Exp $     */
+/*     $NetBSD: sdhcreg.h,v 1.21 2020/07/15 15:57:52 msaitoh Exp $     */
 /*     $OpenBSD: sdhcreg.h,v 1.4 2006/07/30 17:20:40 fgsch Exp $       */
 
 /*
@@ -248,6 +248,8 @@
 #define SDHC_SPEC_VERS_200             0x01
 #define SDHC_SPEC_VERS_300             0x02
 #define SDHC_SPEC_VERS_400             0x03
+#define SDHC_SPEC_VERS_410             0x04
+#define SDHC_SPEC_VERS_420             0x05
 #define SDHC_SPEC_NOVERS               0xff    /* dummy */
 
 /* SDHC_CAPABILITIES decoding */



Home | Main Index | Thread Index | Old Index