|
EFI_STATUS EFIAPI | PeiFfsFvPpiProcessVolume (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN VOID *Buffer, IN UINTN BufferSize, OUT EFI_PEI_FV_HANDLE *FvHandle) |
|
EFI_STATUS EFIAPI | PeiFfsFvPpiFindFileByType (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) |
|
EFI_STATUS EFIAPI | PeiFfsFvPpiFindFileByName (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) |
|
EFI_STATUS EFIAPI | PeiFfsFvPpiFindSectionByType (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_SECTION_TYPE SearchType, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData) |
|
EFI_STATUS EFIAPI | PeiFfsFvPpiFindSectionByType2 (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) |
|
EFI_STATUS EFIAPI | PeiFfsFvPpiGetFileInfo (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO *FileInfo) |
|
EFI_STATUS EFIAPI | PeiFfsFvPpiGetFileInfo2 (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO2 *FileInfo) |
|
EFI_STATUS EFIAPI | PeiFfsFvPpiGetVolumeInfo (IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FV_HANDLE FvHandle, OUT EFI_FV_INFO *VolumeInfo) |
|
PEI_CORE_FV_HANDLE * | FvHandleToCoreHandle (IN EFI_PEI_FV_HANDLE FvHandle) |
|
EFI_STATUS | FindFileEx (IN CONST EFI_PEI_FV_HANDLE FvHandle, IN CONST EFI_GUID *FileName OPTIONAL, IN EFI_FV_FILETYPE SearchType, IN OUT EFI_PEI_FILE_HANDLE *FileHandle, IN OUT EFI_PEI_FILE_HANDLE *AprioriFile OPTIONAL) |
|
EFI_STATUS | AddUnknownFormatFvInfo (IN PEI_CORE_INSTANCE *PrivateData, IN EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI *FvInfo2Ppi) |
|
EFI_STATUS | FindUnknownFormatFvInfo (IN PEI_CORE_INSTANCE *PrivateData, IN EFI_GUID *Format, OUT VOID **FvInfo, OUT UINT32 *FvInfoSize, OUT UINT32 *AuthenticationStatus) |
|
EFI_STATUS EFIAPI | ThirdPartyFvPpiNotifyCallback (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi) |
|
The internal header file for firmware volume related definitions.
Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FwVol.h.
Report the information for a newly discovered FV in an unknown format.
If the EFI_PEI_FIRMWARE_VOLUME_PPI has not been installed for a third-party FV format, but the FV has been discovered, then the information of this FV will be cached into PEI_CORE_INSTANCE's UnknownFvInfo array.
Also a notification would be installed for unknown FV format GUID, if EFI_PEI_FIRMWARE_VOLUME_PPI is installed later by platform's PEIM, the original unknown FV will be processed by using new installed EFI_PEI_FIRMWARE_VOLUME_PPI.
- Parameters
-
PrivateData | Point to instance of PEI_CORE_INSTANCE |
FvInfo2Ppi | Point to FvInfo2 PPI. |
- Return values
-
EFI_OUT_OF_RESOURCES | The FV info array in PEI_CORE_INSTANCE has no more spaces. |
EFI_SUCCESS | Success to add the information for unknown FV. |
Definition at line 2248 of file FwVol.c.
Given the input file pointer, search for the next matching file in the FFS volume as defined by SearchType. The search starts from FileHeader inside the Firmware Volume defined by FwVolHeader.
- Parameters
-
FvHandle | Pointer to the FV header of the volume to search |
FileName | File name |
SearchType | Filter to find only files of this type. Type EFI_FV_FILETYPE_ALL causes no filtering to be done. |
FileHandle | This parameter must point to a valid FFS volume. |
AprioriFile | Pointer to AprioriFile image in this FV if has |
- Returns
- EFI_NOT_FOUND No files matching the search criteria were found
- Return values
-
EFI_SUCCESS | Success to search given file |
Given the input file pointer, search for the first matching file in the FFS volume as defined by SearchType. The search starts from FileHeader inside the Firmware Volume defined by FwVolHeader. If SearchType is EFI_FV_FILETYPE_ALL, the first FFS file will return without check its file type. If SearchType is PEI_CORE_INTERNAL_FFS_FILE_DISPATCH_TYPE, the first PEIM, or COMBINED PEIM or FV file type FFS file will return.
- Parameters
-
FvHandle | Pointer to the FV header of the volume to search |
FileName | File name |
SearchType | Filter to find only files of this type. Type EFI_FV_FILETYPE_ALL causes no filtering to be done. |
FileHandle | This parameter must point to a valid FFS volume. |
AprioriFile | Pointer to AprioriFile image in this FV if has |
- Returns
- EFI_NOT_FOUND No files matching the search criteria were found
- Return values
-
EFI_SUCCESS | Success to search given file |
Definition at line 266 of file FwVol.c.
Find the FV information according to FV format GUID.
This routine also will remove the FV information found by given FV format GUID from PrivateData->UnknownFvInfo[].
- Parameters
-
PrivateData | Point to instance of PEI_CORE_INSTANCE |
Format | Point to given FV format GUID |
FvInfo | On return, the pointer of FV information buffer in given FV format GUID |
FvInfoSize | On return, the size of FV information buffer. |
AuthenticationStatus | On return, the authentication status of FV information buffer. |
- Return values
-
EFI_NOT_FOUND | The FV is not found for new installed EFI_PEI_FIRMWARE_VOLUME_PPI |
EFI_SUCCESS | Success to find a FV which could be processed by new installed EFI_PEI_FIRMWARE_VOLUME_PPI. |
Find the FV information according to third-party FV format GUID.
This routine also will remove the FV information found by given FV format GUID from PrivateData->UnknownFvInfo[].
- Parameters
-
PrivateData | Point to instance of PEI_CORE_INSTANCE |
Format | Point to given FV format GUID |
FvInfo | On return, the pointer of FV information buffer |
FvInfoSize | On return, the size of FV information buffer. |
AuthenticationStatus | On return, the authentication status of FV information buffer. |
- Return values
-
EFI_NOT_FOUND | The FV is not found for new installed EFI_PEI_FIRMWARE_VOLUME_PPI |
EFI_SUCCESS | Success to find a FV which could be processed by new installed EFI_PEI_FIRMWARE_VOLUME_PPI. |
Definition at line 2304 of file FwVol.c.
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
-
This | Points to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI. |
FileHandle | Handle of the file. |
FileInfo | Upon exit, points to the file's information. |
- Return values
-
EFI_SUCCESS | File information returned. |
EFI_INVALID_PARAMETER | If FileHandle does not represent a valid file. |
EFI_INVALID_PARAMETER | If FileInfo is NULL. |
Definition at line 1891 of file FwVol.c.
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
-
This | Points to this instance of the EFI_PEI_FIRMWARE_VOLUME_PPI. |
Buffer | Points to the start of the buffer. |
BufferSize | Size of the buffer. |
FvHandle | Points to the returned firmware volume handle. The firmware volume handle must be unique within the system. |
- Return values
-
EFI_SUCCESS | Firmware volume handle created. |
EFI_VOLUME_CORRUPTED | Volume was corrupt. |
Definition at line 1641 of file FwVol.c.