mirror of https://github.com/acidanthera/audk.git
follow up code review
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5894 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f73e0ad215
commit
f944ec32e7
|
@ -15,26 +15,26 @@
|
|||
#ifndef __PEI_PI_LIB_H__
|
||||
#define __PEI_PI_LIB_H__
|
||||
|
||||
#include <Pi/PiFirmwareFile.h>
|
||||
|
||||
/**
|
||||
Install a EFI_PEI_FIRMWARE_VOLUME_INFO PPI to inform PEI core about the existence of a new Firmware Volume.
|
||||
Install a EFI_PEI_FIRMWARE_VOLUME_INFO PPI to inform PEI core about the existence of a new Firmware Volume.
|
||||
|
||||
The function allocate the EFI_PEI_PPI_DESCRIPTOR structure and update the fields accordingly to parameter passed
|
||||
in and install the PPI.
|
||||
|
||||
@param FvFormat Unique identifier of the format of the memory-mapped firmware volume. If NULL is specified,
|
||||
EFI_FIRMWARE_FILE_SYSTEM2_GUID is used as the Format GUID.
|
||||
@param 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.
|
||||
@param FvInfoSize Size of the data provided by FvInfo. For memory-mapped firmware volumes, this is
|
||||
typically the size of the firmware volume.
|
||||
@param ParentFvName, ParentFileName If the firmware volume originally came from a firmware file, then these point to the
|
||||
parent firmware volume name and firmware volume file. If it did not originally come
|
||||
from a firmware file, these should be NULL
|
||||
The function allocate the EFI_PEI_PPI_DESCRIPTOR structure and update the fields accordingly to parameter passed
|
||||
in and install the PPI.
|
||||
|
||||
@param FvFormat Unique identifier of the format of the memory-mapped firmware volume.
|
||||
If NULL is specified, EFI_FIRMWARE_FILE_SYSTEM2_GUID is used as the Format GUID.
|
||||
@param 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.
|
||||
@param FvInfoSize Size of the data provided by FvInfo. For memory-mapped firmware volumes, this is
|
||||
typically the size of the firmware volume.
|
||||
@param ParentFvName If the firmware volume originally came from a firmware file, then these point to the
|
||||
parent firmware volume name. If it did not originally come from a firmware file,
|
||||
these should be NULL.
|
||||
@param ParentFileName If the firmware volume originally came from a firmware file, then these point to the
|
||||
firmware volume file. If it did not originally come from a firmware file,
|
||||
these should be NULL.
|
||||
|
||||
**/
|
||||
VOID
|
||||
|
|
|
@ -39,7 +39,7 @@ GetPeiServicesTablePointer (
|
|||
VOID
|
||||
EFIAPI
|
||||
SetPeiServicesTablePointer (
|
||||
EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||
IN EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||
);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -32,25 +32,25 @@ CONST EFI_PEI_PPI_DESCRIPTOR mPpiListTemplate [] = {
|
|||
};
|
||||
|
||||
/**
|
||||
Install a EFI_PEI_FIRMWARE_VOLUME_INFO PPI to inform PEI core about the existence of a new Firmware Volume.
|
||||
Install a EFI_PEI_FIRMWARE_VOLUME_INFO PPI to inform PEI core about the existence of a new Firmware Volume.
|
||||
|
||||
The function allocate the EFI_PEI_PPI_DESCRIPTOR structure and update the fields accordingly to parameter passed
|
||||
in and install the PPI.
|
||||
The function allocate the EFI_PEI_PPI_DESCRIPTOR structure and update the fields accordingly to parameter passed
|
||||
in and install the PPI.
|
||||
|
||||
@param FvFormat Unique identifier of the format of the memory-mapped firmware volume. If NULL is specified,
|
||||
EFI_FIRMWARE_FILE_SYSTEM2_GUID is used as the Format GUID.
|
||||
@param 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.
|
||||
@param FvInfoSize Size of the data provided by FvInfo. For memory-mapped firmware volumes, this is
|
||||
typically the size of the firmware volume.
|
||||
@param ParentFvName If the firmware volume originally came from a firmware file, then these point to the
|
||||
parent firmware volume name. If it did not originally come
|
||||
from a firmware file, these should be NULL.
|
||||
@param ParentFileName If the firmware volume originally came from a firmware file, then these point to the
|
||||
firmware volume file. If it did not originally come
|
||||
from a firmware file, these should be NULL.
|
||||
@param FvFormat Unique identifier of the format of the memory-mapped firmware volume.
|
||||
If NULL is specified, EFI_FIRMWARE_FILE_SYSTEM2_GUID is used as the Format GUID.
|
||||
@param 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.
|
||||
@param FvInfoSize Size of the data provided by FvInfo. For memory-mapped firmware volumes, this is
|
||||
typically the size of the firmware volume.
|
||||
@param ParentFvName If the firmware volume originally came from a firmware file, then these point to the
|
||||
parent firmware volume name. If it did not originally come from a firmware file,
|
||||
these should be NULL.
|
||||
@param ParentFileName If the firmware volume originally came from a firmware file, then these point to the
|
||||
firmware volume file. If it did not originally come from a firmware file,
|
||||
these should be NULL.
|
||||
|
||||
**/
|
||||
VOID
|
||||
|
|
|
@ -29,7 +29,7 @@ STATIC EFI_PEI_SERVICES **gPeiServices;
|
|||
VOID
|
||||
EFIAPI
|
||||
SetPeiServicesTablePointer (
|
||||
EFI_PEI_SERVICES **PeiServices
|
||||
IN EFI_PEI_SERVICES **PeiServices
|
||||
)
|
||||
{
|
||||
gPeiServices = PeiServices;
|
||||
|
|
|
@ -65,7 +65,7 @@ GetPeiServicesTablePointer (
|
|||
VOID
|
||||
EFIAPI
|
||||
SetPeiServicesTablePointer (
|
||||
EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||
IN EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||
)
|
||||
{
|
||||
IA32_DESCRIPTOR Idtr;
|
||||
|
|
|
@ -71,7 +71,7 @@ PeiServicesTablePointerLibConstructor (
|
|||
VOID
|
||||
EFIAPI
|
||||
SetPeiServicesTablePointer (
|
||||
EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||
IN EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||
)
|
||||
{
|
||||
AsmWriteKr7 ((UINT64)(UINTN)PeiServicesTablePointer);
|
||||
|
|
Loading…
Reference in New Issue