TianoCore EDK2 master
Loading...
Searching...
No Matches
FitLib.c File Reference
#include "FitLib.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI FitParseFirmwarePropertyData (IN VOID *Fdt, IN CHAR8 *Firmware, OUT FIT_IMAGE_CONTEXT *Context)
 
EFI_STATUS EFIAPI ParseFitImage (IN VOID *ImageBase, OUT FIT_IMAGE_CONTEXT *Context)
 

Variables

PROPERTY_DATA PropertyData32List []
 
PROPERTY_DATA PropertyData64List []
 

Detailed Description

FIT Load Image Support Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FitLib.c.

Function Documentation

◆ FitParseFirmwarePropertyData()

EFI_STATUS EFIAPI FitParseFirmwarePropertyData ( IN VOID *  Fdt,
IN CHAR8 *  Firmware,
OUT FIT_IMAGE_CONTEXT Context 
)

Parse the target firmware image info in FIT.

Parameters
[in]FdtMemory address of a fdt.
[in]FirmwareTarget name of an image.
[out]ContextThe FIT image context pointer.
Return values
EFI_NOT_FOUNDFIT node dose not find.
EFI_SUCCESSFIT binary is loaded successfully.

Definition at line 30 of file FitLib.c.

◆ ParseFitImage()

EFI_STATUS EFIAPI ParseFitImage ( IN VOID *  ImageBase,
OUT FIT_IMAGE_CONTEXT Context 
)

Parse the FIT image info.

Parameters
[in]ImageBaseMemory address of an image.
[out]ContextThe FIT image context pointer.
Return values
EFI_UNSUPPORTEDUnsupported binary type.
EFI_SUCCESSFIT binary is loaded successfully.

Definition at line 82 of file FitLib.c.

Variable Documentation

◆ PropertyData32List

PROPERTY_DATA PropertyData32List[]
Initial value:
= {
{ "data-offset", PAYLOAD_ENTRY_OFFSET_OFFSET },
{ "data-size", PAYLOAD_ENTRY_SIZE_OFFSET },
{ "reloc-start", RELOCATE_TABLE_OFFSET_OFFSET }
}

Definition at line 9 of file FitLib.c.

◆ PropertyData64List

PROPERTY_DATA PropertyData64List[]
Initial value:
= {
{ "entry-start", PAYLOAD_ENTRY_POINT_OFFSET },
{ "load", PAYLOAD_LOAD_ADDR_OFFSET }
}

Definition at line 15 of file FitLib.c.