summaryrefslogtreecommitdiff
path: root/EmbeddedPkg/Include/libfdt_env.h
diff options
context:
space:
mode:
Diffstat (limited to 'EmbeddedPkg/Include/libfdt_env.h')
-rw-r--r--EmbeddedPkg/Include/libfdt_env.h16
1 files changed, 16 insertions, 0 deletions
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 <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 */