FdtLoadLib.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /** @file
  2. *
  3. * Copyright (c) 2011-2014, ARM Limited. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause-Patent
  6. *
  7. **/
  8. #ifndef _FDT_LOAD_LIB_H_
  9. #define _FDT_LOAD_LIB_H_
  10. /**
  11. Load and Install FDT from Semihosting
  12. @param Filename Name of the file to load from semihosting
  13. @return EFI_SUCCESS Fdt Blob was successfully installed into the configuration table
  14. from semihosting
  15. @return EFI_NOT_FOUND Fail to locate the file in semihosting
  16. @return EFI_OUT_OF_RESOURCES Fail to allocate memory to contain the blob
  17. **/
  18. EFI_STATUS
  19. InstallFdtFromSemihosting (
  20. IN CONST CHAR16 *FileName
  21. );
  22. /**
  23. Load and Install FDT from Firmware Volume
  24. @param Filename Guid of the FDT blob to load from firmware volume
  25. @return EFI_SUCCESS Fdt Blob was successfully installed into the configuration table
  26. from firmware volume
  27. @return EFI_NOT_FOUND Failed to locate the file in firmware volume
  28. @return EFI_OUT_OF_RESOURCES Failed to allocate memory to contain the blob
  29. **/
  30. EFI_STATUS
  31. InstallFdtFromFv (
  32. IN CONST EFI_GUID *FileName
  33. );
  34. #endif