xref: /openbmc/linux/drivers/mmc/core/sd.h (revision d87c25e8)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _MMC_CORE_SD_H
3 #define _MMC_CORE_SD_H
4 
5 #include <linux/types.h>
6 
7 extern struct device_type sd_type;
8 
9 struct mmc_host;
10 struct mmc_card;
11 
12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
13 int mmc_sd_get_csd(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);
19 
20 #endif
21