fb_mmc.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2014 Broadcom Corporation.
  4. */
  5. #ifndef _FB_MMC_H_
  6. #define _FB_MMC_H_
  7. /**
  8. * fastboot_mmc_get_part_info() - Lookup eMMC partion by name
  9. *
  10. * @part_name: Named partition to lookup
  11. * @dev_desc: Pointer to returned blk_desc pointer
  12. * @part_info: Pointer to returned disk_partition_t
  13. * @response: Pointer to fastboot response buffer
  14. */
  15. int fastboot_mmc_get_part_info(const char *part_name,
  16. struct blk_desc **dev_desc,
  17. disk_partition_t *part_info, char *response);
  18. /**
  19. * fastboot_mmc_flash_write() - Write image to eMMC for fastboot
  20. *
  21. * @cmd: Named partition to write image to
  22. * @download_buffer: Pointer to image data
  23. * @download_bytes: Size of image data
  24. * @response: Pointer to fastboot response buffer
  25. */
  26. void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
  27. u32 download_bytes, char *response);
  28. /**
  29. * fastboot_mmc_flash_erase() - Erase eMMC for fastboot
  30. *
  31. * @cmd: Named partition to erase
  32. * @response: Pointer to fastboot response buffer
  33. */
  34. void fastboot_mmc_erase(const char *cmd, char *response);
  35. #endif