mmc: Add function declarations for mmc_bread() and mmc_switch_part()
These private functions are used both in the driver-model implementation and in the legacy code. Add them to the header. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -215,11 +215,10 @@ static int mmc_read_blocks(struct mmc *mmc, void *dst, lbaint_t start,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BLK
|
#ifdef CONFIG_BLK
|
||||||
static ulong mmc_bread(struct udevice *dev, lbaint_t start, lbaint_t blkcnt,
|
ulong mmc_bread(struct udevice *dev, lbaint_t start, lbaint_t blkcnt, void *dst)
|
||||||
void *dst)
|
|
||||||
#else
|
#else
|
||||||
static ulong mmc_bread(struct blk_desc *block_dev, lbaint_t start,
|
ulong mmc_bread(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
|
||||||
lbaint_t blkcnt, void *dst)
|
void *dst)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_BLK
|
#ifdef CONFIG_BLK
|
||||||
@@ -566,7 +565,7 @@ static int mmc_set_capacity(struct mmc *mmc, int part_num)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mmc_switch_part(struct mmc *mmc, unsigned int part_num)
|
int mmc_switch_part(struct mmc *mmc, unsigned int part_num)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@@ -20,6 +20,14 @@ extern int mmc_set_blocklen(struct mmc *mmc, int len);
|
|||||||
void mmc_adapter_card_type_ident(void);
|
void mmc_adapter_card_type_ident(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BLK
|
||||||
|
ulong mmc_bread(struct udevice *dev, lbaint_t start, lbaint_t blkcnt,
|
||||||
|
void *dst);
|
||||||
|
#else
|
||||||
|
ulong mmc_bread(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
|
||||||
|
void *dst);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_SPL_BUILD
|
#ifndef CONFIG_SPL_BUILD
|
||||||
|
|
||||||
unsigned long mmc_berase(struct blk_desc *block_dev, lbaint_t start,
|
unsigned long mmc_berase(struct blk_desc *block_dev, lbaint_t start,
|
||||||
@@ -89,4 +97,13 @@ void mmc_list_init(void);
|
|||||||
*/
|
*/
|
||||||
void mmc_list_add(struct mmc *mmc);
|
void mmc_list_add(struct mmc *mmc);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* mmc_switch_part() - Switch to a new MMC hardware partition
|
||||||
|
*
|
||||||
|
* @mmc: MMC device
|
||||||
|
* @part_num: Hardware partition number
|
||||||
|
* @return 0 if OK, -ve on error
|
||||||
|
*/
|
||||||
|
int mmc_switch_part(struct mmc *mmc, unsigned int part_num);
|
||||||
|
|
||||||
#endif /* _MMC_PRIVATE_H_ */
|
#endif /* _MMC_PRIVATE_H_ */
|
||||||
|
Reference in New Issue
Block a user