]> git.ipfire.org Git - thirdparty/u-boot.git/blob - include/fastboot-internal.h
net: fastboot: Merge AOSP UDP fastboot
[thirdparty/u-boot.git] / include / fastboot-internal.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2
3 #ifndef _FASTBOOT_INTERNAL_H_
4 #define _FASTBOOT_INTERNAL_H_
5
6 /**
7 * fastboot_buf_addr - base address of the fastboot download buffer
8 */
9 extern void *fastboot_buf_addr;
10
11 /**
12 * fastboot_buf_size - size of the fastboot download buffer
13 */
14 extern u32 fastboot_buf_size;
15
16 /**
17 * fastboot_progress_callback - callback executed during long operations
18 */
19 extern void (*fastboot_progress_callback)(const char *msg);
20
21 /**
22 * fastboot_getvar() - Writes variable indicated by cmd_parameter to response.
23 *
24 * @cmd_parameter: Pointer to command parameter
25 * @response: Pointer to fastboot response buffer
26 *
27 * Look up cmd_parameter first as an environment variable of the form
28 * fastboot.<cmd_parameter>, if that exists return use its value to set
29 * response.
30 *
31 * Otherwise lookup the name of variable and execute the appropriate
32 * function to return the requested value.
33 */
34 void fastboot_getvar(char *cmd_parameter, char *response);
35
36 #endif