TianoCore EDK2 master
Loading...
Searching...
No Matches
FirmwareVolume.h File Reference

Go to the source code of this file.

Data Structures

struct  _EFI_PEI_FIRMWARE_VOLUME_PPI
 

Macros

#define EFI_PEI_FIRMWARE_VOLUME_PPI_SIGNATURE   SIGNATURE_32 ('P', 'F', 'V', 'P')
 
#define EFI_PEI_FIRMWARE_VOLUME_PPI_REVISION   0x00010030
 

Typedefs

typedef struct _EFI_PEI_FIRMWARE_VOLUME_PPI EFI_PEI_FIRMWARE_VOLUME_PPI
 
typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_PROCESS_FV) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN VOID *Buffer, IN UINTN BufferSize, OUT EFI_PEI_FV_HANDLE *FvHandle)
 
typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_FILE_TYPE) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_FV_FILETYPE SearchType, IN EFI_PEI_FV_HANDLE FvHandle, IN OUT EFI_PEI_FILE_HANDLE *FileHandle)
 
typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_FILE_NAME) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN CONST EFI_GUID *FileName, IN EFI_PEI_FV_HANDLE *FvHandle, OUT EFI_PEI_FILE_HANDLE *FileHandle)
 
typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_FILE_INFO) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO *FileInfo)
 
typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_FILE_INFO2) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO2 *FileInfo)
 
typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_INFO) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FV_HANDLE FvHandle, OUT EFI_FV_INFO *VolumeInfo)
 
typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_SECTION) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_SECTION_TYPE SearchType, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData)
 
typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_SECTION2) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_SECTION_TYPE SearchType, IN UINTN SearchInstance, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData, OUT UINT32 *AuthenticationStatus)
 

Variables

EFI_GUID gEfiPeiFirmwareVolumePpiGuid
 

Detailed Description

This file provides functions for accessing a memory-mapped firmware volume of a specific format.

Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Revision Reference:
This PPI is from PI Version 1.0 errata.

Definition in file FirmwareVolume.h.

Macro Definition Documentation

◆ EFI_PEI_FIRMWARE_VOLUME_PPI_REVISION

#define EFI_PEI_FIRMWARE_VOLUME_PPI_REVISION   0x00010030

Definition at line 259 of file FirmwareVolume.h.

◆ EFI_PEI_FIRMWARE_VOLUME_PPI_SIGNATURE

#define EFI_PEI_FIRMWARE_VOLUME_PPI_SIGNATURE   SIGNATURE_32 ('P', 'F', 'V', 'P')

Definition at line 258 of file FirmwareVolume.h.

Typedef Documentation

◆ EFI_PEI_FIRMWARE_VOLUME_PPI

The GUID for this PPI is the same as the firmware volume format GUID. The FV format can be EFI_FIRMWARE_FILE_SYSTEM2_GUID or the GUID for a user-defined format. The EFI_FIRMWARE_FILE_SYSTEM2_GUID is the PI Firmware Volume format.

Definition at line 20 of file FirmwareVolume.h.

◆ EFI_PEI_FV_FIND_FILE_NAME

typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_FILE_NAME) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN CONST EFI_GUID *FileName, IN EFI_PEI_FV_HANDLE *FvHandle, OUT EFI_PEI_FILE_HANDLE *FileHandle)

Find a file within a volume by its name.

This service searches for files with a specific name, within either the specified firmware volume or all firmware volumes.

Parameters
ThisPoints to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI.
FileNameA pointer to the name of the file to find within the firmware volume.
FvHandleUpon entry, the pointer to the firmware volume to search or NULL if all firmware volumes should be searched. Upon exit, the actual firmware volume in which the file was found.
FileHandleUpon exit, points to the found file's handle or NULL if it could not be found.
Return values
EFI_SUCCESSFile was found.
EFI_NOT_FOUNDFile was not found.
EFI_INVALID_PARAMETERFvHandle or FileHandle or FileName was NULL.

Definition at line 112 of file FirmwareVolume.h.

◆ EFI_PEI_FV_FIND_FILE_TYPE

typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_FILE_TYPE) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_FV_FILETYPE SearchType, IN EFI_PEI_FV_HANDLE FvHandle, IN OUT EFI_PEI_FILE_HANDLE *FileHandle)

Finds the next file of the specified type.

This service enables PEI modules to discover additional firmware files. The FileHandle must be unique within the system.

Parameters
ThisPoints to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI.
SearchTypeA filter to find only files of this type. Type EFI_FV_FILETYPE_ALL causes no filtering to be done.
FvHandleHandle of firmware volume in which to search.
FileHandlePoints to the current handle from which to begin searching or NULL to start at the beginning of the firmware volume. Updated upon return to reflect the file found.
Return values
EFI_SUCCESSThe file was found.
EFI_NOT_FOUNDThe file was not found. FileHandle contains NULL.

Definition at line 78 of file FirmwareVolume.h.

◆ EFI_PEI_FV_FIND_SECTION

typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_SECTION) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_SECTION_TYPE SearchType, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData)

Find the next matching section in the firmware file.

This service enables PEI modules to discover sections of a given type within a valid file.

Parameters
ThisPoints to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI.
SearchTypeA filter to find only sections of this type.
FileHandleHandle of firmware file in which to search.
SectionDataUpdated upon return to point to the section found.
Return values
EFI_SUCCESSSection was found.
EFI_NOT_FOUNDSection of the specified type was not found. SectionData contains NULL.

Definition at line 216 of file FirmwareVolume.h.

◆ EFI_PEI_FV_FIND_SECTION2

typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_SECTION2) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_SECTION_TYPE SearchType, IN UINTN SearchInstance, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData, OUT UINT32 *AuthenticationStatus)

Find the next matching section in the firmware file.

This service enables PEI modules to discover sections of a given instance and type within a valid file.

Parameters
ThisPoints to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI.
SearchTypeA filter to find only sections of this type.
SearchInstanceA filter to find the specific instance of sections.
FileHandleHandle of firmware file in which to search.
SectionDataUpdated upon return to point to the section found.
AuthenticationStatusUpdated upon return to point to the authentication status for this section.
Return values
EFI_SUCCESSSection was found.
EFI_NOT_FOUNDSection of the specified type was not found. SectionData contains NULL.

Definition at line 248 of file FirmwareVolume.h.

◆ EFI_PEI_FV_GET_FILE_INFO

typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_FILE_INFO) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO *FileInfo)

Returns information about a specific file.

This function returns information about a specific file, including its file name, type, attributes, starting address and size.

Parameters
ThisPoints to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI.
FileHandleHandle of the file.
FileInfoUpon exit, points to the file's information.
Return values
EFI_SUCCESSFile information returned.
EFI_INVALID_PARAMETERIf FileHandle does not represent a valid file.
EFI_INVALID_PARAMETERIf FileInfo is NULL.

Definition at line 140 of file FirmwareVolume.h.

◆ EFI_PEI_FV_GET_FILE_INFO2

typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_FILE_INFO2) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO2 *FileInfo)

Returns information about a specific file.

This function returns information about a specific file, including its file name, type, attributes, starting address, size and authentication status.

Parameters
ThisPoints to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI.
FileHandleHandle of the file.
FileInfoUpon exit, points to the file's information.
Return values
EFI_SUCCESSFile information returned.
EFI_INVALID_PARAMETERIf FileHandle does not represent a valid file.
EFI_INVALID_PARAMETERIf FileInfo is NULL.

Definition at line 167 of file FirmwareVolume.h.

◆ EFI_PEI_FV_GET_INFO

typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_INFO) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FV_HANDLE FvHandle, OUT EFI_FV_INFO *VolumeInfo)

This function returns information about the firmware volume.

Parameters
ThisPoints to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI.
FvHandleHandle to the firmware handle.
VolumeInfoPoints to the returned firmware volume information.
Return values
EFI_SUCCESSInformation returned successfully.
EFI_INVALID_PARAMETERFvHandle does not indicate a valid firmware volume or VolumeInfo is NULL.

Definition at line 189 of file FirmwareVolume.h.

◆ EFI_PEI_FV_PROCESS_FV

typedef EFI_STATUS(EFIAPI * EFI_PEI_FV_PROCESS_FV) (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN VOID *Buffer, IN UINTN BufferSize, OUT EFI_PEI_FV_HANDLE *FvHandle)

Process a firmware volume and create a volume handle.

Create a volume handle from the information in the buffer. For memory-mapped firmware volumes, Buffer and BufferSize refer to the start of the firmware volume and the firmware volume size. For non memory-mapped firmware volumes, this points to a buffer which contains the necessary information for creating the firmware volume handle. Normally, these values are derived from the EFI_FIRMWARE_VOLUME_INFO_PPI.

Parameters
ThisPoints to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI.
BufferPoints to the start of the buffer.
BufferSizeSize of the buffer.
FvHandlePoints to the returned firmware volume handle. The firmware volume handle must be unique within the system.
Return values
EFI_SUCCESSFirmware volume handle created.
EFI_VOLUME_CORRUPTEDVolume was corrupt.

Definition at line 47 of file FirmwareVolume.h.