fb_mmc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 struct disk_partition
  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. struct disk_partition *part_info,
  18. char *response);
  19. /**
  20. * fastboot_mmc_flash_write() - Write image to eMMC for fastboot
  21. *
  22. * @cmd: Named partition to write image to
  23. * @download_buffer: Pointer to image data
  24. * @download_bytes: Size of image data
  25. * @response: Pointer to fastboot response buffer
  26. */
  27. void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
  28. u32 download_bytes, char *response);
  29. /**
  30. * fastboot_mmc_flash_erase() - Erase eMMC for fastboot
  31. *
  32. * @cmd: Named partition to erase
  33. * @response: Pointer to fastboot response buffer
  34. */
  35. void fastboot_mmc_erase(const char *cmd, char *response);
  36. #endif