Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
71578a1e MM |
2 | #ifndef _MMC_CORE_SD_H |
3 | #define _MMC_CORE_SD_H | |
4 | ||
066185d6 | 5 | #include <linux/types.h> |
71578a1e MM |
6 | |
7 | extern struct device_type sd_type; | |
8 | ||
066185d6 UH |
9 | struct mmc_host; |
10 | struct mmc_card; | |
11 | ||
d6d50a15 | 12 | int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr); |
71578a1e MM |
13 | int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card); |
14 | void mmc_decode_cid(struct mmc_card *card); | |
15 | int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, | |
16 | bool reinit); | |
17 | unsigned mmc_sd_get_max_clock(struct mmc_card *card); | |
18 | int mmc_sd_switch_hs(struct mmc_card *card); | |
71578a1e MM |
19 | |
20 | #endif |