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
This commit is contained in:
committed by
oliviermartin
parent
749d91f7aa
commit
af16798ef7
@@ -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 */
|
||||
|
Reference in New Issue
Block a user