DtPlatformDtbLoaderLib.h 825 B

123456789101112131415161718192021222324252627282930313233
  1. /** @file
  2. *
  3. * Copyright (c) 2017, Linaro, Ltd. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause-Patent
  6. *
  7. **/
  8. #ifndef __DT_PLATFORM_DTB_LOADER_LIB_H__
  9. #define __DT_PLATFORM_DTB_LOADER_LIB_H__
  10. #include <Uefi/UefiBaseType.h>
  11. /**
  12. Return a pool allocated copy of the DTB image that is appropriate for
  13. booting the current platform via DT.
  14. @param[out] Dtb Pointer to the DTB copy
  15. @param[out] DtbSize Size of the DTB copy
  16. @retval EFI_SUCCESS Operation completed successfully
  17. @retval EFI_NOT_FOUND No suitable DTB image could be located
  18. @retval EFI_OUT_OF_RESOURCES No pool memory available
  19. **/
  20. EFI_STATUS
  21. EFIAPI
  22. DtPlatformLoadDtb (
  23. OUT VOID **Dtb,
  24. OUT UINTN *DtbSize
  25. );
  26. #endif