diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-18 12:47:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-20 10:53:30 +0100 |
commit | 096789bc2af53f0f28f285aa0a88d5e9d05d3316 (patch) | |
tree | 2a6b13debdc9db16568f4e58cdbed47e6eff0c1c /include/mci.h | |
parent | c94cd71bb4846310cc6258f668644f3c8dffa698 (diff) | |
download | barebox-096789bc2af53f0f28f285aa0a88d5e9d05d3316.tar.gz barebox-096789bc2af53f0f28f285aa0a88d5e9d05d3316.tar.xz |
mci: Add card_present callback
Currently there is no common way for the mci host driver to tell
that there is no card present. This adds a card_present callback
which is used by the framework to tell whether it's present or not.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mci.h')
-rw-r--r-- | include/mci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mci.h b/include/mci.h index 0041e2714f..c0d179b592 100644 --- a/include/mci.h +++ b/include/mci.h @@ -300,6 +300,8 @@ struct mci_host { void (*set_ios)(struct mci_host*, struct mci_ios *); /** handle a command */ int (*send_cmd)(struct mci_host*, struct mci_cmd*, struct mci_data*); + /** check if a card is inserted */ + int (*card_present)(struct mci_host *); }; /** MMC/SD and interface instance information */ |