1
2
3
4
5
6
7
8
9
10#ifndef _MMC_PRIVATE_H_
11#define _MMC_PRIVATE_H_
12
13#include <mmc.h>
14
15extern int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
16 struct mmc_data *data);
17extern int mmc_send_status(struct mmc *mmc, int timeout);
18extern int mmc_set_blocklen(struct mmc *mmc, int len);
19#ifdef CONFIG_FSL_ESDHC_ADAPTER_IDENT
20void mmc_adapter_card_type_ident(void);
21#endif
22
23#ifndef CONFIG_SPL_BUILD
24
25extern unsigned long mmc_berase(int dev_num, lbaint_t start, lbaint_t blkcnt);
26
27extern ulong mmc_bwrite(int dev_num, lbaint_t start, lbaint_t blkcnt,
28 const void *src);
29
30#else
31
32
33
34static inline unsigned long mmc_berase(int dev_num, lbaint_t start,
35 lbaint_t blkcnt)
36{
37 return 0;
38}
39
40static inline ulong mmc_bwrite(int dev_num, lbaint_t start, lbaint_t blkcnt,
41 const void *src)
42{
43 return 0;
44}
45
46#endif
47
48#endif
49