mirror of https://github.com/acidanthera/audk.git
Update PEIM entry point to follow PEIM entry point.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6753 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
067447099c
commit
8bd22b8aaa
|
@ -15,8 +15,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <Guid/CustomDecompress.h>
|
|
||||||
#include "BaseUefiTianoCustomDecompressLibInternals.h"
|
#include "BaseUefiTianoCustomDecompressLibInternals.h"
|
||||||
|
#include <Guid/CustomDecompress.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Shift mBitBuf NumOfBits left. Read in NumOfBits of bits from source.
|
Shift mBitBuf NumOfBits left. Read in NumOfBits of bits from source.
|
||||||
|
@ -815,7 +815,7 @@ TianoDecompress (
|
||||||
@retval RETURN_SUCCESS Register successfully.
|
@retval RETURN_SUCCESS Register successfully.
|
||||||
@retval RETURN_OUT_OF_RESOURCES No enough memory to store this handler.
|
@retval RETURN_OUT_OF_RESOURCES No enough memory to store this handler.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
RETURN_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
TianoDecompressLibConstructor (
|
TianoDecompressLibConstructor (
|
||||||
)
|
)
|
||||||
|
|
|
@ -265,15 +265,16 @@ PciCfg2Modify (
|
||||||
This routine will install EFI_PEI_PCI_CFG2_PPI or EFI_PEI_PCI_CFG_PPI
|
This routine will install EFI_PEI_PCI_CFG2_PPI or EFI_PEI_PCI_CFG_PPI
|
||||||
according to PeiServices's version.
|
according to PeiServices's version.
|
||||||
|
|
||||||
@param FfsHeader Image's header
|
@param FileHandle Handle of the file being invoked.
|
||||||
@param PeiServices Pointer of EFI_PEI_SERVICES
|
@param PeiServices Describes the list of possible PEI Services.
|
||||||
|
|
||||||
@return Whether success to install service
|
@return Whether success to install service
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PeimInitializePciCfg (
|
PeimInitializePciCfg (
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
@ -292,16 +293,16 @@ PeimInitializePciCfg (
|
||||||
// FrameworkPeiServices = (FRAMEWORK_PEI_SERVICES **) PeiServices;
|
// FrameworkPeiServices = (FRAMEWORK_PEI_SERVICES **) PeiServices;
|
||||||
// (**FrameworkPeiServices).PciCfg = &mPciCfgPpi;
|
// (**FrameworkPeiServices).PciCfg = &mPciCfgPpi;
|
||||||
//
|
//
|
||||||
(**PeiServices).PciCfg = (EFI_PEI_PCI_CFG2_PPI *) &gPciCfgPpi;
|
(**(EFI_PEI_SERVICES**)PeiServices).PciCfg = (EFI_PEI_PCI_CFG2_PPI *) &gPciCfgPpi;
|
||||||
} else {
|
} else {
|
||||||
(**PeiServices).PciCfg = &gPciCfg2Ppi;
|
(**(EFI_PEI_SERVICES**)PeiServices).PciCfg = &gPciCfg2Ppi;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdPciCfgDisable)) {
|
if (!FeaturePcdGet (PcdPciCfgDisable)) {
|
||||||
Status = (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **)PeiServices, &gPciCfgPpiList);
|
Status = (**PeiServices).InstallPpi (PeiServices, &gPciCfgPpiList);
|
||||||
}
|
}
|
||||||
if (!FeaturePcdGet (PcdPciCfg2Disable)) {
|
if (!FeaturePcdGet (PcdPciCfg2Disable)) {
|
||||||
Status = (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **)PeiServices, &gPciCfg2PpiList);
|
Status = (**PeiServices).InstallPpi (PeiServices, &gPciCfg2PpiList);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
|
|
@ -98,16 +98,16 @@ ReportDispatcher (
|
||||||
Initialize PEI status codes and publish the status code
|
Initialize PEI status codes and publish the status code
|
||||||
PPI.
|
PPI.
|
||||||
|
|
||||||
@param FfsHeader FV this PEIM was loaded from.
|
@param FileHandle Handle of the file being invoked.
|
||||||
@param PeiServices General purpose services available to every PEIM.
|
@param PeiServices Describes the list of possible PEI Services.
|
||||||
|
|
||||||
@return The function always returns success.
|
@return The function always returns success.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PeiStatusCodeDriverEntry (
|
PeiStatusCodeDriverEntry (
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
|
@ -47,8 +47,8 @@ EFI_GUID mEfiVariableIndexTableGuid = EFI_VARIABLE_INDEX_TABLE_GUID;
|
||||||
/**
|
/**
|
||||||
Provide the functionality of the variable services.
|
Provide the functionality of the variable services.
|
||||||
|
|
||||||
@param FfsHeadher - The FFS file header
|
@param FileHandle Handle of the file being invoked.
|
||||||
@param PeiServices - General purpose services available to every PEIM.
|
@param PeiServices Describes the list of possible PEI Services.
|
||||||
|
|
||||||
@return Status - EFI_SUCCESS if the interface could be successfully
|
@return Status - EFI_SUCCESS if the interface could be successfully
|
||||||
installed
|
installed
|
||||||
|
@ -57,14 +57,14 @@ EFI_GUID mEfiVariableIndexTableGuid = EFI_VARIABLE_INDEX_TABLE_GUID;
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PeimInitializeVariableServices (
|
PeimInitializeVariableServices (
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// Publish the variable capability to other modules
|
// Publish the variable capability to other modules
|
||||||
//
|
//
|
||||||
return (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **) PeiServices, &mPpiListVariable[0]);
|
return (**PeiServices).InstallPpi (PeiServices, &mPpiListVariable[0]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,12 +59,6 @@ typedef struct {
|
||||||
//
|
//
|
||||||
// Functions
|
// Functions
|
||||||
//
|
//
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
PeimInitializeVariableServices (
|
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
|
||||||
);
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
|
|
@ -65,8 +65,8 @@ EFI_PEI_PPI_DESCRIPTOR mPpiPCD = {
|
||||||
|
|
||||||
This routine initialize the PCD database for PEI phase and install PCD_PPI.
|
This routine initialize the PCD database for PEI phase and install PCD_PPI.
|
||||||
|
|
||||||
@param FfsHeader Pointer to PEIM FFS header image
|
@param FileHandle Handle of the file being invoked.
|
||||||
@param PeiServices Pointer to EFI_PEI_SERVICES
|
@param PeiServices Describes the list of possible PEI Services.
|
||||||
|
|
||||||
@return Status of install PCD_PPI
|
@return Status of install PCD_PPI
|
||||||
|
|
||||||
|
@ -74,8 +74,8 @@ EFI_PEI_PPI_DESCRIPTOR mPpiPCD = {
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PcdPeimInit (
|
PcdPeimInit (
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BuildPcdDatabase ();
|
BuildPcdDatabase ();
|
||||||
|
|
|
@ -355,15 +355,15 @@ PciCfg2Modify (
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PeimInitializePciCfg (
|
PeimInitializePciCfg (
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
ASSERT ((**PeiServices).Hdr.Revision >= PEI_SERVICES_REVISION);
|
ASSERT ((**PeiServices).Hdr.Revision >= PEI_SERVICES_REVISION);
|
||||||
|
|
||||||
(**PeiServices).PciCfg = &gPciCfg2Ppi;
|
(**(EFI_PEI_SERVICES **)PeiServices).PciCfg = &gPciCfg2Ppi;
|
||||||
Status = (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **)PeiServices, &gPciCfg2PpiList);
|
Status = (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **)PeiServices, &gPciCfg2PpiList);
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Reference in New Issue