summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2018-08-09 13:50:16 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2018-08-09 13:50:16 +0000
commitbb821f078382ab811a3a69388b804a3480157791 (patch)
treed8ffdd330ea250633cdc86ac84f93026cbf0eb1d
parentacbd1291f79bc9f961fe4ffdd2eaa9b29e93d4d6 (diff)
Correct the bitmask that returns the function count. We missed a bit
and thus only supported 4 functions instead of 8. ok kettenis@
-rw-r--r--sys/dev/sdmmc/sdmmc_ioreg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdmmc_ioreg.h b/sys/dev/sdmmc/sdmmc_ioreg.h
index 627c5f99b3a..b074ba785e7 100644
--- a/sys/dev/sdmmc/sdmmc_ioreg.h
+++ b/sys/dev/sdmmc/sdmmc_ioreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc_ioreg.h,v 1.10 2018/06/04 13:33:10 patrick Exp $ */
+/* $OpenBSD: sdmmc_ioreg.h,v 1.11 2018/08/09 13:50:15 patrick Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -55,7 +55,7 @@
/* SD R4 response (IO OCR) */
#define SD_IO_OCR_MEM_READY (1<<31)
-#define SD_IO_OCR_NUM_FUNCTIONS(ocr) (((ocr) >> 28) & 0x3)
+#define SD_IO_OCR_NUM_FUNCTIONS(ocr) (((ocr) >> 28) & 0x7)
/* XXX big fat memory present "flag" because we don't know better */
#define SD_IO_OCR_MEM_PRESENT (0xf<<24)
#define SD_IO_OCR_MASK 0x00fffff0