summaryrefslogtreecommitdiffstats
path: root/sys/dev/mmc/mmcbrvar.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2012-04-21 01:51:16 +0000
committermarius <marius@FreeBSD.org>2012-04-21 01:51:16 +0000
commitc8b1a4baafceb8e9d879c23f22b2fa3f8a7b054d (patch)
treed0c619f112f182684c8944dcdb6f62f47452356a /sys/dev/mmc/mmcbrvar.h
parent8f2d167ee3384a1ea35ebbf014d8f022d332df59 (diff)
downloadFreeBSD-src-c8b1a4baafceb8e9d879c23f22b2fa3f8a7b054d.zip
FreeBSD-src-c8b1a4baafceb8e9d879c23f22b2fa3f8a7b054d.tar.gz
o Fixes:
- When switching to 4-bit operation, send a SET_CLR_CARD_DETECT command to disconnect the card-detect pull-up resistor from the DAT3 line before sending the SET_BUS_WIDTH command. - Add the missing "reserved" zero entry to the mantissa table used to decode various CSD fields. This was causing SD cards to report that they could run at 30 MHz instead of the maximum 25 MHz mandated in the spec. o Enhancements: - At the MMC layer, format various info from the CID into a string that uniquely identifies the card instance (manufacturer number, serial number, product name and revision, etc). Export it as an instance variable. - At the MMCSD layer, display the formatted card ID string, and also report the clock speed of the hardware (not the card's max speed), and the number of bits and number of blocks per transfer. It comes out like this now: mmcsd0: 968MB <SD SD01G 8.0 SN 276886905 MFG 08/2008 by 3 SD> at mmc0 22.5MHz/4bit/128-block o Use DEVMETHOD_END. o Use NULL instead of 0 for pointers. PR: 156496 Submitted by: Ian Lepore MFC after: 1 week
Diffstat (limited to 'sys/dev/mmc/mmcbrvar.h')
-rw-r--r--sys/dev/mmc/mmcbrvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mmc/mmcbrvar.h b/sys/dev/mmc/mmcbrvar.h
index 1effa14..9fc1ab8 100644
--- a/sys/dev/mmc/mmcbrvar.h
+++ b/sys/dev/mmc/mmcbrvar.h
@@ -56,6 +56,7 @@
#define DEV_MMC_MMCBRVAR_H
#include <dev/mmc/bridge.h>
+#include <dev/mmc/mmcreg.h>
#include "mmcbr_if.h"
enum mmcbr_device_ivars {
@@ -72,8 +73,7 @@ enum mmcbr_device_ivars {
MMCBR_IVAR_VDD,
MMCBR_IVAR_CAPS,
MMCBR_IVAR_TIMING,
- MMCBR_IVAR_MAX_DATA,
-// MMCBR_IVAR_,
+ MMCBR_IVAR_MAX_DATA
};
/*
OpenPOWER on IntegriCloud