From af16798ef77da84487ed8e64bc955fbd12ac9b1f Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Tue, 26 Aug 2014 10:18:28 +0000 Subject: EmbeddedPkg/FdtLib: Added support to load Fdt from Semihosting The FDT is also installed into the UEFI configuration table to be used by the OS loader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15905 6f19259b-4bc3-4df7-8a09-765794883524 --- EmbeddedPkg/Include/libfdt_env.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'EmbeddedPkg/Include') diff --git a/EmbeddedPkg/Include/libfdt_env.h b/EmbeddedPkg/Include/libfdt_env.h index 3e24db9409..18a8450b92 100644 --- a/EmbeddedPkg/Include/libfdt_env.h +++ b/EmbeddedPkg/Include/libfdt_env.h @@ -15,6 +15,7 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H +#include #include #include @@ -78,4 +79,19 @@ static inline char *strchr(const char *s, int c) { return AsciiStrStr (s, pattern); } +/** + Load and Install FDT from Semihosting + + @param Filename Name of the file to load from semihosting + + @return EFI_SUCCESS Fdt Blob was successfully installed into the configuration table + from semihosting + @return EFI_NOT_FOUND Fail to locate the file in semihosting + @return EFI_OUT_OF_RESOURCES Fail to allocate memory to contain the blob +**/ +EFI_STATUS +InstallFdtFromSemihosting ( + IN CONST CHAR16* FileName + ); + #endif /* _LIBFDT_ENV_H */ -- cgit v1.2.3