EmbeddedPkg: Split off FDT loading functionality from FdtLib
[mirror_edk2.git] / EmbeddedPkg / Include / Library / FdtLoadLib.h
CommitLineData
1e9b2bdd
AB
1/** @file\r
2*\r
3* Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
4*\r
5* This program and the accompanying materials\r
6* are licensed and made available under the terms and conditions of the BSD License\r
7* which accompanies this distribution. The full text of the license may be found at\r
8* http://opensource.org/licenses/bsd-license.php\r
9*\r
10* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12*\r
13**/\r
14\r
15#ifndef _FDT_LOAD_LIB_H_\r
16#define _FDT_LOAD_LIB_H_\r
17\r
18/**\r
19 Load and Install FDT from Semihosting\r
20\r
21 @param Filename Name of the file to load from semihosting\r
22\r
23 @return EFI_SUCCESS Fdt Blob was successfully installed into the configuration table\r
24 from semihosting\r
25 @return EFI_NOT_FOUND Fail to locate the file in semihosting\r
26 @return EFI_OUT_OF_RESOURCES Fail to allocate memory to contain the blob\r
27**/\r
28EFI_STATUS\r
29InstallFdtFromSemihosting (\r
30 IN CONST CHAR16* FileName\r
31 );\r
32\r
33/**\r
34 Load and Install FDT from Firmware Volume\r
35\r
36 @param Filename Guid of the FDT blob to load from firmware volume\r
37\r
38 @return EFI_SUCCESS Fdt Blob was successfully installed into the configuration table\r
39 from firmware volume\r
40 @return EFI_NOT_FOUND Failed to locate the file in firmware volume\r
41 @return EFI_OUT_OF_RESOURCES Failed to allocate memory to contain the blob\r
42**/\r
43EFI_STATUS\r
44InstallFdtFromFv (\r
45 IN CONST EFI_GUID *FileName\r
46 );\r
47\r
48#endif\r