mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 10:24:15 +07:00
066185d690
This is the first step in cleaning up the private mmc header files. In this change we makes sure each header file builds standalone, as that helps to resolve dependencies. While changing this, it also seems reasonable to stop including other headers from inside a header itself which it don't depend upon. Additionally, in some cases such dependencies are better resolved by forward declaring the needed struct. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
20 lines
517 B
C
20 lines
517 B
C
#ifndef _MMC_CORE_SD_H
|
|
#define _MMC_CORE_SD_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
extern struct device_type sd_type;
|
|
|
|
struct mmc_host;
|
|
struct mmc_card;
|
|
|
|
int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
|
|
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
|