Michal Miroslaw | 71578a1 | 2010-08-10 18:01:40 -0700 | [diff] [blame] | 1 | #ifndef _MMC_CORE_SD_H |
| 2 | #define _MMC_CORE_SD_H |
| 3 | |
Ulf Hansson | 066185d | 2017-01-13 14:14:07 +0100 | [diff] [blame] | 4 | #include <linux/types.h> |
Michal Miroslaw | 71578a1 | 2010-08-10 18:01:40 -0700 | [diff] [blame] | 5 | |
| 6 | extern struct device_type sd_type; |
| 7 | |
Ulf Hansson | 066185d | 2017-01-13 14:14:07 +0100 | [diff] [blame] | 8 | struct mmc_host; |
| 9 | struct mmc_card; |
| 10 | |
Arindam Nath | d6d50a1 | 2011-05-05 12:18:59 +0530 | [diff] [blame] | 11 | int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr); |
Michal Miroslaw | 71578a1 | 2010-08-10 18:01:40 -0700 | [diff] [blame] | 12 | int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card); |
| 13 | void mmc_decode_cid(struct mmc_card *card); |
| 14 | int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, |
| 15 | bool reinit); |
| 16 | unsigned mmc_sd_get_max_clock(struct mmc_card *card); |
| 17 | int mmc_sd_switch_hs(struct mmc_card *card); |
Michal Miroslaw | 71578a1 | 2010-08-10 18:01:40 -0700 | [diff] [blame] | 18 | |
| 19 | #endif |