Prepare v2025.01
[u-boot.git] / include / fb_mmc.h
blob76ed7cd6be11c977d787f57a561ad7df52f67559
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * Copyright 2014 Broadcom Corporation.
4 */
6 #ifndef _FB_MMC_H_
7 #define _FB_MMC_H_
9 struct blk_desc;
10 struct disk_partition;
12 /**
13 * fastboot_mmc_get_part_info() - Lookup eMMC partion by name
15 * @part_name: Named partition to lookup
16 * @dev_desc: Pointer to returned blk_desc pointer
17 * @part_info: Pointer to returned struct disk_partition
18 * @response: Pointer to fastboot response buffer
20 int fastboot_mmc_get_part_info(const char *part_name,
21 struct blk_desc **dev_desc,
22 struct disk_partition *part_info,
23 char *response);
25 /**
26 * fastboot_mmc_flash_write() - Write image to eMMC for fastboot
28 * @cmd: Named partition to write image to
29 * @download_buffer: Pointer to image data
30 * @download_bytes: Size of image data
31 * @response: Pointer to fastboot response buffer
33 void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
34 u32 download_bytes, char *response);
35 /**
36 * fastboot_mmc_flash_erase() - Erase eMMC for fastboot
38 * @cmd: Named partition to erase
39 * @response: Pointer to fastboot response buffer
41 void fastboot_mmc_erase(const char *cmd, char *response);
42 #endif