summaryrefslogtreecommitdiffstats
path: root/include/mci.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-01-25 16:38:27 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-27 12:17:28 +0100
commit20615ac8c9ea6ef14ee31bb01cfd8f9d0e9fbaef (patch)
tree3493546b8d84521b07b6b718fee2c1038d497fa7 /include/mci.h
parent456fae022798fd9142a0ac255890e1622463e10c (diff)
downloadbarebox-20615ac8c9ea6ef14ee31bb01cfd8f9d0e9fbaef.tar.gz
barebox-20615ac8c9ea6ef14ee31bb01cfd8f9d0e9fbaef.tar.xz
mci: add card_write_protected
Currently there is no common way for the mci host driver to tell that thee car is write protected. This adds a card_write_protected callback which is used by the framework to tell whether it's protected or not. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mci.h')
-rw-r--r--include/mci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mci.h b/include/mci.h
index c0d179b592..cf9582dbe3 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -302,6 +302,8 @@ struct mci_host {
int (*send_cmd)(struct mci_host*, struct mci_cmd*, struct mci_data*);
/** check if a card is inserted */
int (*card_present)(struct mci_host *);
+ /** check if a card is write protected */
+ int (*card_write_protected)(struct mci_host *);
};
/** MMC/SD and interface instance information */