aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/card.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mmc/card.h')
-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 badf702fcff..43480ebebf9 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -67,6 +67,7 @@ struct mmc_card {
67 unsigned int type; /* card type */ 67 unsigned int type; /* card type */
68#define MMC_TYPE_MMC 0 /* MMC card */ 68#define MMC_TYPE_MMC 0 /* MMC card */
69#define MMC_TYPE_SD 1 /* SD card */ 69#define MMC_TYPE_SD 1 /* SD card */
70#define MMC_TYPE_SDIO 2 /* SDIO card */
70 unsigned int state; /* (our) card state */ 71 unsigned int state; /* (our) card state */
71#define MMC_STATE_PRESENT (1<<0) /* present in sysfs */ 72#define MMC_STATE_PRESENT (1<<0) /* present in sysfs */
72#define MMC_STATE_READONLY (1<<1) /* card is read-only */ 73#define MMC_STATE_READONLY (1<<1) /* card is read-only */
@@ -84,6 +85,7 @@ struct mmc_card {
84 85
85#define mmc_card_mmc(c) ((c)->type == MMC_TYPE_MMC) 86#define mmc_card_mmc(c) ((c)->type == MMC_TYPE_MMC)
86#define mmc_card_sd(c) ((c)->type == MMC_TYPE_SD) 87#define mmc_card_sd(c) ((c)->type == MMC_TYPE_SD)
88#define mmc_card_sdio(c) ((c)->type == MMC_TYPE_SDIO)
87 89
88#define mmc_card_present(c) ((c)->state & MMC_STATE_PRESENT) 90#define mmc_card_present(c) ((c)->state & MMC_STATE_PRESENT)
89#define mmc_card_readonly(c) ((c)->state & MMC_STATE_READONLY) 91#define mmc_card_readonly(c) ((c)->state & MMC_STATE_READONLY)