1 /* SPDX-License-Identifier: GPL-2.0+ */
3 #ifndef _FASTBOOT_INTERNAL_H_
4 #define _FASTBOOT_INTERNAL_H_
7 * fastboot_buf_addr - base address of the fastboot download buffer
9 extern void *fastboot_buf_addr
;
12 * fastboot_buf_size - size of the fastboot download buffer
14 extern u32 fastboot_buf_size
;
17 * fastboot_progress_callback - callback executed during long operations
19 extern void (*fastboot_progress_callback
)(const char *msg
);
22 * fastboot_getvar() - Writes variable indicated by cmd_parameter to response.
24 * @cmd_parameter: Pointer to command parameter
25 * @response: Pointer to fastboot response buffer
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
31 * Otherwise lookup the name of variable and execute the appropriate
32 * function to return the requested value.
34 void fastboot_getvar(char *cmd_parameter
, char *response
);