|
EFI_STATUS EFIAPI | PeiServicesInstallPpi (IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList) |
|
EFI_STATUS EFIAPI | PeiServicesReInstallPpi (IN CONST EFI_PEI_PPI_DESCRIPTOR *OldPpi, IN CONST EFI_PEI_PPI_DESCRIPTOR *NewPpi) |
|
EFI_STATUS EFIAPI | PeiServicesLocatePpi (IN CONST EFI_GUID *Guid, IN UINTN Instance, IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor OPTIONAL, IN OUT VOID **Ppi) |
|
EFI_STATUS EFIAPI | PeiServicesNotifyPpi (IN CONST EFI_PEI_NOTIFY_DESCRIPTOR *NotifyList) |
|
EFI_STATUS EFIAPI | PeiServicesGetBootMode (OUT EFI_BOOT_MODE *BootMode) |
|
EFI_STATUS EFIAPI | PeiServicesSetBootMode (IN EFI_BOOT_MODE BootMode) |
|
EFI_STATUS EFIAPI | PeiServicesGetHobList (OUT VOID **HobList) |
|
EFI_STATUS EFIAPI | PeiServicesCreateHob (IN UINT16 Type, IN UINT16 Length, OUT VOID **Hob) |
|
EFI_STATUS EFIAPI | PeiServicesFfsFindNextVolume (IN UINTN Instance, IN OUT EFI_PEI_FV_HANDLE *VolumeHandle) |
|
EFI_STATUS EFIAPI | PeiServicesFfsFindNextFile (IN EFI_FV_FILETYPE SearchType, IN EFI_PEI_FV_HANDLE VolumeHandle, IN OUT EFI_PEI_FILE_HANDLE *FileHandle) |
|
EFI_STATUS EFIAPI | PeiServicesFfsFindSectionData (IN EFI_SECTION_TYPE SectionType, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData) |
|
EFI_STATUS EFIAPI | PeiServicesFfsFindSectionData3 (IN EFI_SECTION_TYPE SectionType, IN UINTN SectionInstance, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData, OUT UINT32 *AuthenticationStatus) |
|
EFI_STATUS EFIAPI | PeiServicesInstallPeiMemory (IN EFI_PHYSICAL_ADDRESS MemoryBegin, IN UINT64 MemoryLength) |
|
EFI_STATUS EFIAPI | PeiServicesAllocatePages (IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, OUT EFI_PHYSICAL_ADDRESS *Memory) |
|
EFI_STATUS EFIAPI | PeiServicesFreePages (IN EFI_PHYSICAL_ADDRESS Memory, IN UINTN Pages) |
|
EFI_STATUS EFIAPI | PeiServicesAllocatePool (IN UINTN Size, OUT VOID **Buffer) |
|
EFI_STATUS EFIAPI | PeiServicesResetSystem (VOID) |
|
EFI_STATUS EFIAPI | PeiServicesFfsFindFileByName (IN CONST EFI_GUID *FileName, IN CONST EFI_PEI_FV_HANDLE VolumeHandle, OUT EFI_PEI_FILE_HANDLE *FileHandle) |
|
EFI_STATUS EFIAPI | PeiServicesFfsGetFileInfo (IN CONST EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO *FileInfo) |
|
EFI_STATUS EFIAPI | PeiServicesFfsGetFileInfo2 (IN CONST EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO2 *FileInfo) |
|
EFI_STATUS EFIAPI | PeiServicesFfsGetVolumeInfo (IN EFI_PEI_FV_HANDLE VolumeHandle, OUT EFI_FV_INFO *VolumeInfo) |
|
EFI_STATUS EFIAPI | PeiServicesRegisterForShadow (IN EFI_PEI_FILE_HANDLE FileHandle) |
|
VOID EFIAPI | PeiServicesInstallFvInfoPpi (IN CONST EFI_GUID *FvFormat OPTIONAL, IN CONST VOID *FvInfo, IN UINT32 FvInfoSize, IN CONST EFI_GUID *ParentFvName OPTIONAL, IN CONST EFI_GUID *ParentFileName OPTIONAL) |
|
VOID EFIAPI | PeiServicesInstallFvInfo2Ppi (IN CONST EFI_GUID *FvFormat OPTIONAL, IN CONST VOID *FvInfo, IN UINT32 FvInfoSize, IN CONST EFI_GUID *ParentFvName OPTIONAL, IN CONST EFI_GUID *ParentFileName OPTIONAL, IN UINT32 AuthenticationStatus) |
|
VOID EFIAPI | PeiServicesResetSystem2 (IN EFI_RESET_TYPE ResetType, IN EFI_STATUS ResetStatus, IN UINTN DataSize, IN VOID *ResetData OPTIONAL) |
|
Provides library functions for all PEI Services.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PeiServicesLib.h.
This service is a wrapper for the PEI Service FfsFindByName(), except the pointer to the PEI Services Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Specification for details.
- Parameters
-
FileName | A pointer to the name of the file to find within the firmware volume. |
VolumeHandle | The firmware volume to search FileHandle Upon exit, points to the found file's handle or NULL if it could not be found. |
FileHandle | Pointer to found file handle |
- Return values
-
EFI_SUCCESS | File was found. |
EFI_NOT_FOUND | File was not found. |
EFI_INVALID_PARAMETER | VolumeHandle or FileHandle or FileName was NULL. |
This service is a wrapper for the PEI Service FfsFindByName(), except the pointer to the PEI Services Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Specification for details.
- Parameters
-
FileName | A pointer to the name of the file to find within the firmware volume. |
VolumeHandle | The firmware volume to search FileHandle Upon exit, points to the found file's handle or NULL if it could not be found. |
FileHandle | The pointer to found file handle |
- Return values
-
EFI_SUCCESS | File was found. |
EFI_NOT_FOUND | File was not found. |
EFI_INVALID_PARAMETER | VolumeHandle or FileHandle or FileName was NULL. |
Definition at line 474 of file PeiServicesLib.c.
This service is a wrapper for the PEI Service FfsGetFileInfo(), except the pointer to the PEI Services Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Specification for details.
- Parameters
-
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. |
This service is a wrapper for the PEI Service FfsGetFileInfo(), except the pointer to the PEI Services Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Specification for details.
- Parameters
-
FileHandle | The 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 | FileInfo is NULL. |
Definition at line 442 of file PeiServicesLib.c.
This service is a wrapper for the PEI Service FfsGetFileInfo2(), except the pointer to the PEI Services Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Specification for details.
- Parameters
-
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. |
This service is a wrapper for the PEI Service FfsGetFileInfo2(), except the pointer to the PEI Services Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Specification for details.
- Parameters
-
FileHandle | The 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 | FileInfo is NULL. |
Definition at line 519 of file PeiServicesLib.c.
Install a EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI instance so the PEI Core will be notified about a new firmware volume.
This function allocates, initializes, and installs a new EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI using the parameters passed in to initialize the fields of the EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI instance. If the resources can not be allocated for EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI, then ASSERT(). If the EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI can not be installed, then ASSERT().
- Parameters
-
FvFormat | Unique identifier of the format of the memory-mapped firmware volume. This parameter is optional and may be NULL. If NULL is specified, the EFI_FIRMWARE_FILE_SYSTEM2_GUID format is assumed. |
FvInfo | Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to process the volume. The format of this buffer is specific to the FvFormat. For memory-mapped firmware volumes, this typically points to the first byte of the firmware volume. |
FvInfoSize | The size, in bytes, of FvInfo. For memory-mapped firmware volumes, this is typically the size of the firmware volume. |
ParentFvName | If the new firmware volume originated from a file in a different firmware volume, then this parameter specifies the GUID name of the originating firmware volume. Otherwise, this parameter must be NULL. |
ParentFileName | If the new firmware volume originated from a file in a different firmware volume, then this parameter specifies the GUID file name of the originating firmware file. Otherwise, this parameter must be NULL. |
AuthenticationStatus | Authentication Status |
Install a EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI instance so the PEI Core will be notified about a new firmware volume.
This function allocates, initializes, and installs a new EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI using the parameters passed in to initialize the fields of the EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI instance. If the resources can not be allocated for EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI, then ASSERT(). If the EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI can not be installed, then ASSERT(). If NULL is specified for FvFormat, but FvInfo does not have the firmware file system 2 format, then ASSERT.
- Parameters
-
FvFormat | Unique identifier of the format of the memory-mapped firmware volume. This parameter is optional and may be NULL. If NULL is specified, the EFI_FIRMWARE_FILE_SYSTEM2_GUID format is assumed. |
FvInfo | Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to process the volume. The format of this buffer is specific to the FvFormat. For memory-mapped firmware volumes, this typically points to the first byte of the firmware volume. |
FvInfoSize | The size, in bytes, of FvInfo. For memory-mapped firmware volumes, this is typically the size of the firmware volume. |
ParentFvName | If the new firmware volume originated from a file in a different firmware volume, then this parameter specifies the GUID name of the originating firmware volume. Otherwise, this parameter must be NULL. |
ParentFileName | If the new firmware volume originated from a file in a different firmware volume, then this parameter specifies the GUID file name of the originating firmware file. Otherwise, this parameter must be NULL. |
AuthenticationStatus | Authentication Status |
Definition at line 777 of file PeiServicesLib.c.
Install a EFI_PEI_FIRMWARE_VOLUME_INFO_PPI instance so the PEI Core will be notified about a new firmware volume.
This function allocates, initializes, and installs a new EFI_PEI_FIRMWARE_VOLUME_INFO_PPI using the parameters passed in to initialize the fields of the EFI_PEI_FIRMWARE_VOLUME_INFO_PPI instance. If the resources can not be allocated for EFI_PEI_FIRMWARE_VOLUME_INFO_PPI, then ASSERT(). If the EFI_PEI_FIRMWARE_VOLUME_INFO_PPI can not be installed, then ASSERT().
- Parameters
-
FvFormat | Unique identifier of the format of the memory-mapped firmware volume. This parameter is optional and may be NULL. If NULL is specified, the EFI_FIRMWARE_FILE_SYSTEM2_GUID format is assumed. |
FvInfo | Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to process the volume. The format of this buffer is specific to the FvFormat. For memory-mapped firmware volumes, this typically points to the first byte of the firmware volume. |
FvInfoSize | The size, in bytes, of FvInfo. For memory-mapped firmware volumes, this is typically the size of the firmware volume. |
ParentFvName | If the new firmware volume originated from a file in a different firmware volume, then this parameter specifies the GUID name of the originating firmware volume. Otherwise, this parameter must be NULL. |
ParentFileName | If the new firmware volume originated from a file in a different firmware volume, then this parameter specifies the GUID file name of the originating firmware file. Otherwise, this parameter must be NULL. |
Install a EFI_PEI_FIRMWARE_VOLUME_INFO_PPI instance so the PEI Core will be notified about a new firmware volume.
This function allocates, initializes, and installs a new EFI_PEI_FIRMWARE_VOLUME_INFO_PPI using the parameters passed in to initialize the fields of the EFI_PEI_FIRMWARE_VOLUME_INFO_PPI instance. If the resources can not be allocated for EFI_PEI_FIRMWARE_VOLUME_INFO_PPI, then ASSERT(). If the EFI_PEI_FIRMWARE_VOLUME_INFO_PPI can not be installed, then ASSERT(). If NULL is specified for FvFormat, but FvInfo does not have the firmware file system 2 format, then ASSERT.
- Parameters
-
FvFormat | Unique identifier of the format of the memory-mapped firmware volume. This parameter is optional and may be NULL. If NULL is specified, the EFI_FIRMWARE_FILE_SYSTEM2_GUID format is assumed. |
FvInfo | Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to process the volume. The format of this buffer is specific to the FvFormat. For memory-mapped firmware volumes, this typically points to the first byte of the firmware volume. |
FvInfoSize | The size, in bytes, of FvInfo. For memory-mapped firmware volumes, this is typically the size of the firmware volume. |
ParentFvName | If the new firmware volume originated from a file in a different firmware volume, then this parameter specifies the GUID name of the originating firmware volume. Otherwise, this parameter must be NULL. |
ParentFileName | If the new firmware volume originated from a file in a different firmware volume, then this parameter specifies the GUID file name of the originating firmware file. Otherwise, this parameter must be NULL. |
Definition at line 545 of file PeiServicesLib.c.