AndroidBootImg.h 885 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /** @file
  2. Copyright (c) 2017, Linaro. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #ifndef __ANDROID_BOOTIMG_PROTOCOL_H__
  6. #define __ANDROID_BOOTIMG_PROTOCOL_H__
  7. //
  8. // Protocol interface structure
  9. //
  10. typedef struct _ANDROID_BOOTIMG_PROTOCOL ANDROID_BOOTIMG_PROTOCOL;
  11. //
  12. // Function Prototypes
  13. //
  14. typedef
  15. EFI_STATUS
  16. (EFIAPI *ANDROID_BOOTIMG_APPEND_KERNEL_ARGS)(
  17. IN CHAR16 *Args,
  18. IN UINTN Size
  19. );
  20. typedef
  21. EFI_STATUS
  22. (EFIAPI *ANDROID_BOOTIMG_UPDATE_DTB)(
  23. IN EFI_PHYSICAL_ADDRESS OrigDtbBase,
  24. OUT EFI_PHYSICAL_ADDRESS *NewDtbBase
  25. );
  26. struct _ANDROID_BOOTIMG_PROTOCOL {
  27. ANDROID_BOOTIMG_APPEND_KERNEL_ARGS AppendArgs;
  28. ANDROID_BOOTIMG_UPDATE_DTB UpdateDtb;
  29. };
  30. extern EFI_GUID gAndroidBootImgProtocolGuid;
  31. #endif /* __ANDROID_BOOTIMG_PROTOCOL_H__ */