]> git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Include/Library/FdtLoadLib.h
EmbeddedPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / EmbeddedPkg / Include / Library / FdtLoadLib.h
1 /** @file
2 *
3 * Copyright (c) 2011-2014, ARM Limited. All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-2-Clause-Patent
6 *
7 **/
8
9 #ifndef _FDT_LOAD_LIB_H_
10 #define _FDT_LOAD_LIB_H_
11
12 /**
13 Load and Install FDT from Semihosting
14
15 @param Filename Name of the file to load from semihosting
16
17 @return EFI_SUCCESS Fdt Blob was successfully installed into the configuration table
18 from semihosting
19 @return EFI_NOT_FOUND Fail to locate the file in semihosting
20 @return EFI_OUT_OF_RESOURCES Fail to allocate memory to contain the blob
21 **/
22 EFI_STATUS
23 InstallFdtFromSemihosting (
24 IN CONST CHAR16* FileName
25 );
26
27 /**
28 Load and Install FDT from Firmware Volume
29
30 @param Filename Guid of the FDT blob to load from firmware volume
31
32 @return EFI_SUCCESS Fdt Blob was successfully installed into the configuration table
33 from firmware volume
34 @return EFI_NOT_FOUND Failed to locate the file in firmware volume
35 @return EFI_OUT_OF_RESOURCES Failed to allocate memory to contain the blob
36 **/
37 EFI_STATUS
38 InstallFdtFromFv (
39 IN CONST EFI_GUID *FileName
40 );
41
42 #endif