0001
0002 #ifndef _MMC_CORE_SD_H
0003 #define _MMC_CORE_SD_H
0004
0005 #include <linux/types.h>
0006
0007 extern struct device_type sd_type;
0008
0009 struct mmc_host;
0010 struct mmc_card;
0011
0012 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
0013 int mmc_sd_get_csd(struct mmc_card *card);
0014 void mmc_decode_cid(struct mmc_card *card);
0015 int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
0016 bool reinit);
0017 unsigned mmc_sd_get_max_clock(struct mmc_card *card);
0018 int mmc_sd_switch_hs(struct mmc_card *card);
0019
0020 #endif