blob: 610d4f914140595109aaf0c5bfb97b0c59f49687 [file] [log] [blame]
Alex Kiernand5aa57c2018-05-29 15:30:53 +00001/* 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 */
9extern void *fastboot_buf_addr;
10
11/**
12 * fastboot_buf_size - size of the fastboot download buffer
13 */
14extern u32 fastboot_buf_size;
15
16/**
17 * fastboot_progress_callback - callback executed during long operations
18 */
19extern void (*fastboot_progress_callback)(const char *msg);
20
21/**
Ion Agorria99fc6452024-01-05 09:22:07 +020022 * fastboot_getvar_all() - Writes current variable being listed from "all" to response.
23 *
24 * @response: Pointer to fastboot response buffer
25 */
26void fastboot_getvar_all(char *response);
27
28/**
Alex Kiernand5aa57c2018-05-29 15:30:53 +000029 * 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 */
41void fastboot_getvar(char *cmd_parameter, char *response);
42
43#endif