2 * Copyright 2008,2010 Freescale Semiconductor, Inc
5 * Based (loosely) on the Linux code
7 * SPDX-License-Identifier: GPL-2.0+
10 #ifndef _MMC_PRIVATE_H_
11 #define _MMC_PRIVATE_H_
15 extern int mmc_send_cmd(struct mmc
*mmc
, struct mmc_cmd
*cmd
,
16 struct mmc_data
*data
);
17 extern int mmc_send_status(struct mmc
*mmc
, int timeout
);
18 extern int mmc_set_blocklen(struct mmc
*mmc
, int len
);
20 #ifndef CONFIG_SPL_BUILD
22 extern unsigned long mmc_berase(int dev_num
, lbaint_t start
, lbaint_t blkcnt
);
24 extern ulong
mmc_bwrite(int dev_num
, lbaint_t start
, lbaint_t blkcnt
,
27 #else /* CONFIG_SPL_BUILD */
29 /* SPL will never write or erase, declare dummies to reduce code size. */
31 static inline unsigned long mmc_berase(int dev_num
, lbaint_t start
,
37 static inline ulong
mmc_bwrite(int dev_num
, lbaint_t start
, lbaint_t blkcnt
,
43 #endif /* CONFIG_SPL_BUILD */
45 #endif /* _MMC_PRIVATE_H_ */