*\r
* Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
*\r
-* This program and the accompanying materials\r
-* are licensed and made available under the terms and conditions of the BSD License\r
-* which accompanies this distribution. The full text of the license may be found at\r
-* http://opensource.org/licenses/bsd-license.php\r
-*\r
-* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+* SPDX-License-Identifier: BSD-2-Clause-Patent\r
*\r
**/\r
\r
#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
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
+static inline size_t strnlen (const char* str, size_t strsz ) {\r
+ return AsciiStrnLenS (str, strsz);\r
+}\r
\r
#endif /* _LIBFDT_ENV_H */\r