fastboot-internal.h 980 B

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