summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2009-12-07 18:39:21 -0800
committerGary King <gking@nvidia.com>2009-12-08 13:52:46 -0800
commit7b5c7f98990e8d943803933df5e8081dbc740b5b (patch)
treebd197ad53d2dc2f07e0c0c321a0f355ff949d02a /include
parent886eaf043fb40bdb2ae023bd748a137cfdf4205b (diff)
mmc: add detection for MMC 4.4 boot sectors
properly unpacks the boot sector extension in MMC 4.4 CID responses
Diffstat (limited to 'include')
-rw-r--r--include/linux/mmc/card.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index 403aa505f27e..10d414060c6c 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -16,6 +16,7 @@ struct mmc_cid {
unsigned int manfid;
char prod_name[8];
unsigned int serial;
+ unsigned char cbx:2;
unsigned short oemid;
unsigned short year;
unsigned char hwrev;
@@ -118,6 +119,7 @@ struct mmc_card {
#define mmc_card_mmc(c) ((c)->type == MMC_TYPE_MMC)
#define mmc_card_sd(c) ((c)->type == MMC_TYPE_SD)
#define mmc_card_sdio(c) ((c)->type == MMC_TYPE_SDIO)
+#define mmc_card_has_boot(c) ((c)->cid.cbx != 0)
#define mmc_card_present(c) ((c)->state & MMC_STATE_PRESENT)
#define mmc_card_readonly(c) ((c)->state & MMC_STATE_READONLY)