]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Include/libfdt_env.h
StandaloneMmPkg/Core: permit encapsulated firmware volumes
[mirror_edk2.git] / EmbeddedPkg / Include / libfdt_env.h
index c4dc83c02494cbaaaa429e63bb3ba1d875581233..d84a6a491481af6d574779d63ad78170ce14c1df 100644 (file)
@@ -15,7 +15,6 @@
 #ifndef _LIBFDT_ENV_H\r
 #define _LIBFDT_ENV_H\r
 \r
-#include <Uefi.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 \r
@@ -79,34 +78,8 @@ static inline char *strchr(const char *s, int c) {
   return AsciiStrStr (s, pattern);\r
 }\r
 \r
-/**\r
-  Load and Install FDT from Semihosting\r
-\r
-  @param Filename   Name of the file to load from semihosting\r
-\r
-  @return EFI_SUCCESS           Fdt Blob was successfully installed into the configuration table\r
-                                from semihosting\r
-  @return EFI_NOT_FOUND         Fail to locate the file in semihosting\r
-  @return EFI_OUT_OF_RESOURCES  Fail to allocate memory to contain the blob\r
-**/\r
-EFI_STATUS\r
-InstallFdtFromSemihosting (\r
-  IN  CONST CHAR16*   FileName\r
-  );\r
-\r
-/**\r
-  Load and Install FDT from Firmware Volume\r
-\r
-  @param Filename   Guid of the FDT blob to load from firmware volume\r
-\r
-  @return EFI_SUCCESS           Fdt Blob was successfully installed into the configuration table\r
-                                from firmware volume\r
-  @return EFI_NOT_FOUND         Failed to locate the file in firmware volume\r
-  @return EFI_OUT_OF_RESOURCES  Failed to allocate memory to contain the blob\r
-**/\r
-EFI_STATUS\r
-InstallFdtFromFv (\r
-  IN  CONST EFI_GUID *FileName\r
-  );\r
+static inline size_t strnlen (const char* str, size_t strsz ) {\r
+  return AsciiStrnLenS (str, strsz);\r
+}\r
 \r
 #endif /* _LIBFDT_ENV_H */\r