summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2007-02-18 00:15:27 +0300
committerPierre Ossman <drzeus@drzeus.cx>2007-05-01 15:04:15 +0400
commit85a18ad93ec66888d85758630019b10a84257f3c (patch)
tree46b1b7f72a8d4baac51916ca4ea09884ed043822 /include/linux
parentde85989511f3a0e15b04d18582b23d428d6ddbbd (diff)
downloadlinux-85a18ad93ec66888d85758630019b10a84257f3c.tar.xz
mmc: MMC sector based cards
Support for MMC 4.2 sector based cards. This tweaks the init a bit and reads a new field out of the EXT_CSD. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmc/card.h1
-rw-r--r--include/linux/mmc/protocol.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index e45712acfac5..5d9896c260a2 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -41,6 +41,7 @@ struct mmc_csd {
struct mmc_ext_csd {
unsigned int hs_max_dtr;
+ unsigned int sectors;
};
struct sd_scr {
diff --git a/include/linux/mmc/protocol.h b/include/linux/mmc/protocol.h
index c90b6768329d..d740ab94fa25 100644
--- a/include/linux/mmc/protocol.h
+++ b/include/linux/mmc/protocol.h
@@ -284,6 +284,7 @@ struct _mmc_csd {
#define EXT_CSD_BUS_WIDTH 183 /* R/W */
#define EXT_CSD_HS_TIMING 185 /* R/W */
#define EXT_CSD_CARD_TYPE 196 /* RO */
+#define EXT_CSD_SEC_CNT 212 /* RO, 4 bytes */
/*
* EXT_CSD field definitions