2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2010-08-10 18:01:40 -07:00
|
|
|
#ifndef _MMC_CORE_SD_H
|
|
|
|
|
#define _MMC_CORE_SD_H
|
|
|
|
|
|
2017-01-13 14:14:07 +01:00
|
|
|
#include <linux/types.h>
|
2010-08-10 18:01:40 -07:00
|
|
|
|
|
|
|
|
extern struct device_type sd_type;
|
|
|
|
|
|
2017-01-13 14:14:07 +01:00
|
|
|
struct mmc_host;
|
|
|
|
|
struct mmc_card;
|
|
|
|
|
|
2011-05-05 12:18:59 +05:30
|
|
|
int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
|
2010-08-10 18:01:40 -07:00
|
|
|
int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card);
|
|
|
|
|
void mmc_decode_cid(struct mmc_card *card);
|
|
|
|
|
int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
|
|
|
|
|
bool reinit);
|
|
|
|
|
unsigned mmc_sd_get_max_clock(struct mmc_card *card);
|
|
|
|
|
int mmc_sd_switch_hs(struct mmc_card *card);
|
|
|
|
|
|
|
|
|
|
#endif
|