mmc_private.h 734 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2008,2010 Freescale Semiconductor, Inc
  3. * Andy Fleming
  4. *
  5. * Based (loosely) on the Linux code
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #ifndef _MMC_PRIVATE_H_
  10. #define _MMC_PRIVATE_H_
  11. #include <mmc.h>
  12. extern int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
  13. struct mmc_data *data);
  14. extern int mmc_send_status(struct mmc *mmc, int timeout);
  15. extern int mmc_set_blocklen(struct mmc *mmc, int len);
  16. #ifdef CONFIG_FSL_ESDHC_ADAPTER_IDENT
  17. void mmc_adapter_card_type_ident(void);
  18. #endif
  19. extern unsigned long mmc_berase(int dev_num, unsigned int start, unsigned int blkcnt);
  20. extern unsigned long mmc_bwrite(int dev_num, unsigned int start, unsigned int blkcnt, const void *src);
  21. #endif /* _MMC_PRIVATE_H_ */