summaryrefslogtreecommitdiff
path: root/include/fastboot-internal.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2018-06-01 09:52:15 -0400
committerTom Rini <[email protected]>2018-06-01 09:52:15 -0400
commitcaa2a2e5ab44d87faf51fafc780ecc985e0c05d6 (patch)
treeda4f3cba6cdfbeae5f723a9ebf00bd29c8ae31bb /include/fastboot-internal.h
parentc90c43cda8c376f949266f920bbb49119aef0b00 (diff)
parent277b1333b780acd8ddb761c9160c06ffdf1c3901 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'include/fastboot-internal.h')
-rw-r--r--include/fastboot-internal.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/fastboot-internal.h b/include/fastboot-internal.h
new file mode 100644
index 00000000000..bf2f2b3c891
--- /dev/null
+++ b/include/fastboot-internal.h
@@ -0,0 +1,36 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+
+#ifndef _FASTBOOT_INTERNAL_H_
+#define _FASTBOOT_INTERNAL_H_
+
+/**
+ * fastboot_buf_addr - base address of the fastboot download buffer
+ */
+extern void *fastboot_buf_addr;
+
+/**
+ * fastboot_buf_size - size of the fastboot download buffer
+ */
+extern u32 fastboot_buf_size;
+
+/**
+ * fastboot_progress_callback - callback executed during long operations
+ */
+extern void (*fastboot_progress_callback)(const char *msg);
+
+/**
+ * fastboot_getvar() - Writes variable indicated by cmd_parameter to response.
+ *
+ * @cmd_parameter: Pointer to command parameter
+ * @response: Pointer to fastboot response buffer
+ *
+ * Look up cmd_parameter first as an environment variable of the form
+ * fastboot.<cmd_parameter>, if that exists return use its value to set
+ * response.
+ *
+ * Otherwise lookup the name of variable and execute the appropriate
+ * function to return the requested value.
+ */
+void fastboot_getvar(char *cmd_parameter, char *response);
+
+#endif