TianoCore EDK2 master
Loading...
Searching...
No Matches
FitLib.h File Reference
#include <PiPei.h>
#include <Library/DebugLib.h>
#include <Library/FdtLib.h>

Go to the source code of this file.

Data Structures

struct  FIT_RELOCATE_ITEM
 
struct  FIT_IMAGE_CONTEXT
 
struct  PROPERTY_DATA
 

Macros

#define IMAGE_BASE_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, ImageBase)
 
#define PAYLOAD_BASE_ADDR_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadBaseAddress)
 
#define PAYLOAD_BASE_SIZE_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadSize)
 
#define PAYLOAD_ENTRY_OFFSET_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadEntryOffset)
 
#define PAYLOAD_ENTRY_SIZE_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadEntrySize)
 
#define PAYLOAD_ENTRY_POINT_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadEntryPoint)
 
#define RELOCATE_TABLE_OFFSET_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, RelocateTableOffset)
 
#define RELOCATE_TABLE_COUNT_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, RelocateTableCount)
 
#define PAYLOAD_LOAD_ADDR_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadLoadAddress)
 

Functions

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

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.h.

Macro Definition Documentation

◆ IMAGE_BASE_OFFSET

#define IMAGE_BASE_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, ImageBase)

Definition at line 36 of file FitLib.h.

◆ PAYLOAD_BASE_ADDR_OFFSET

#define PAYLOAD_BASE_ADDR_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadBaseAddress)

Definition at line 37 of file FitLib.h.

◆ PAYLOAD_BASE_SIZE_OFFSET

#define PAYLOAD_BASE_SIZE_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadSize)

Definition at line 38 of file FitLib.h.

◆ PAYLOAD_ENTRY_OFFSET_OFFSET

#define PAYLOAD_ENTRY_OFFSET_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadEntryOffset)

Definition at line 39 of file FitLib.h.

◆ PAYLOAD_ENTRY_POINT_OFFSET

#define PAYLOAD_ENTRY_POINT_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadEntryPoint)

Definition at line 41 of file FitLib.h.

◆ PAYLOAD_ENTRY_SIZE_OFFSET

#define PAYLOAD_ENTRY_SIZE_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadEntrySize)

Definition at line 40 of file FitLib.h.

◆ PAYLOAD_LOAD_ADDR_OFFSET

#define PAYLOAD_LOAD_ADDR_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, PayloadLoadAddress)

Definition at line 44 of file FitLib.h.

◆ RELOCATE_TABLE_COUNT_OFFSET

#define RELOCATE_TABLE_COUNT_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, RelocateTableCount)

Definition at line 43 of file FitLib.h.

◆ RELOCATE_TABLE_OFFSET_OFFSET

#define RELOCATE_TABLE_OFFSET_OFFSET   OFFSET_OF (FIT_IMAGE_CONTEXT, RelocateTableOffset)

Definition at line 42 of file FitLib.h.

Function Documentation

◆ 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.