diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-08-26 10:18:28 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-26 10:18:28 +0000 |
commit | af16798ef77da84487ed8e64bc955fbd12ac9b1f (patch) | |
tree | 01ce1f72a8355fc7fdca87ab2c3366685897e404 /EmbeddedPkg/Include/libfdt_env.h | |
parent | 749d91f7aaeb9dcc8afc0bf6d9444caff2c2ad62 (diff) | |
download | edk2-af16798ef77da84487ed8e64bc955fbd12ac9b1f.zip edk2-af16798ef77da84487ed8e64bc955fbd12ac9b1f.tar.gz edk2-af16798ef77da84487ed8e64bc955fbd12ac9b1f.tar.bz2 |
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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15905 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Include/libfdt_env.h')
-rw-r--r-- | EmbeddedPkg/Include/libfdt_env.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/EmbeddedPkg/Include/libfdt_env.h b/EmbeddedPkg/Include/libfdt_env.h index 3e24db9..18a8450 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 <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
@@ -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 */
|