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_all() - Writes current variable being listed from "all" to response.
23  *
24  * @response: Pointer to fastboot response buffer
25  */
26 void fastboot_getvar_all(char *response);
27 
28 /**
29  * fastboot_getvar() - Writes variable indicated by cmd_parameter to response.
30  *
31  * @cmd_parameter: Pointer to command parameter
32  * @response: Pointer to fastboot response buffer
33  *
34  * Look up cmd_parameter first as an environment variable of the form
35  * fastboot.<cmd_parameter>, if that exists return use its value to set
36  * response.
37  *
38  * Otherwise lookup the name of variable and execute the appropriate
39  * function to return the requested value.
40  */
41 void fastboot_getvar(char *cmd_parameter, char *response);
42 
43 #endif
44