AndroidFastbootApp.h 767 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /** @file
  2. Copyright (c) 2013-2014, ARM Ltd. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #ifndef __ANDROID_FASTBOOT_APP_H__
  6. #define __ANDROID_FASTBOOT_APP_H__
  7. #include <Library/AndroidBootImgLib.h>
  8. #include <Library/BaseLib.h>
  9. #include <Library/DebugLib.h>
  10. #include <Library/MemoryAllocationLib.h>
  11. #define BOOTIMG_KERNEL_ARGS_SIZE 512
  12. #define ANDROID_FASTBOOT_VERSION "0.4"
  13. EFI_STATUS
  14. BootAndroidBootImg (
  15. IN UINTN BufferSize,
  16. IN VOID *Buffer
  17. );
  18. EFI_STATUS
  19. ParseAndroidBootImg (
  20. IN VOID *BootImg,
  21. OUT VOID **Kernel,
  22. OUT UINTN *KernelSize,
  23. OUT VOID **Ramdisk,
  24. OUT UINTN *RamdiskSize,
  25. OUT CHAR8 *KernelArgs
  26. );
  27. #endif //ifdef __ANDROID_FASTBOOT_APP_H__