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