<Libraries>
<Library>PeimEntryPoint</Library>
<Library>PeiMemoryLib</Library>
- <Library>PeiCoreLib</Library>
+ <Library>PeiServicesLib</Library>
<Library OverrideID="4444">PeiServicesTablePointerLib</Library>
<Library>PeiHobLib</Library>
<Library>BaseCacheMaintenanceLib</Library>
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PerformanceLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">ReportStatusCodeLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">CacheMaintenanceLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">EdkPeCoffLoaderLib</LibraryClass>\r
<Libraries>
<Library>PeimEntryPoint</Library>
<Library>PeiMemoryLib</Library>
- <Library>PeiCoreLib</Library>
+ <Library>PeiServicesLib</Library>
<Library OverrideID="4444">PeiServicesTablePointerLib</Library>
<Library>PeiHobLib</Library>
<Library>BaseCacheMaintenanceLib</Library>
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">PerformanceLib</LibraryClass>
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">ReportStatusCodeLib</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">CacheMaintenanceLib</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">EdkPeCoffLoaderLib</LibraryClass>
EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader;\r
EFI_BOOT_MODE BootMode;\r
\r
- Status = PeiCoreGetBootMode (&BootMode);\r
+ Status = PeiServicesGetBootMode (&BootMode);\r
\r
ASSERT_EFI_ERROR (Status);\r
\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gPeiInMemoryGuid,\r
0,\r
NULL,\r
//\r
// Install LoadFile PPI\r
//\r
- Status = PeiCoreInstallPpi (&mPpiLoadFile);\r
+ Status = PeiServicesInstallPpi (&mPpiLoadFile);\r
\r
if (EFI_ERROR (Status)) {\r
return Status;\r
//\r
// Install DxeIpl PPI\r
//\r
- PeiCoreInstallPpi (&mPpiList);\r
+ PeiServicesInstallPpi (&mPpiList);\r
\r
if (EFI_ERROR (Status)) {\r
return Status;\r
//\r
// if in S3 Resume, restore configure\r
//\r
- Status = PeiCoreGetBootMode (&BootMode);\r
+ Status = PeiServicesGetBootMode (&BootMode);\r
\r
if (!EFI_ERROR (Status) && (BootMode == BOOT_ON_S3_RESUME)) {\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiS3ResumePpiGuid,\r
0,\r
NULL,\r
//\r
// See if we are in crisis recovery\r
//\r
- Status = PeiCoreGetBootMode (&BootMode);\r
+ Status = PeiServicesGetBootMode (&BootMode);\r
\r
if (!EFI_ERROR (Status) && (BootMode == BOOT_IN_RECOVERY_MODE)) {\r
\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiRecoveryModulePpiGuid,\r
0,\r
NULL,\r
//\r
// PERF_END (PeiServices, L"DxeIpl", NULL, 0);\r
\r
- Status = PeiCoreInstallPpi (&mPpiSignal);\r
+ Status = PeiServicesInstallPpi (&mPpiSignal);\r
\r
ASSERT_EFI_ERROR (Status);\r
\r
Hob.Raw = GetHobList ();\r
while ((Hob.Raw = GetNextHob (EFI_HOB_TYPE_FV, Hob.Raw)) != NULL) {\r
FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) (Hob.FirmwareVolume->BaseAddress);\r
- Status = PeiCoreFfsFindNextFile (\r
+ Status = PeiServicesFfsFindNextFile (\r
Type,\r
FwVolHeader,\r
&FfsFileHeader\r
//\r
// Install PeiInMemory to indicate the Dxeipl is shadowed\r
//\r
- Status = PeiCoreInstallPpi (&mPpiPeiInMemory);\r
+ Status = PeiServicesInstallPpi (&mPpiPeiInMemory);\r
\r
if (EFI_ERROR (Status)) {\r
return Status;\r
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;\r
EFI_COMPRESSION_SECTION *CompressionSection;\r
\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_COMPRESSION,\r
FfsFileHeader,\r
&SectionData\r
//\r
AuthenticationStatus = 0;\r
\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiSectionExtractionPpiGuid,\r
0,\r
NULL,\r
// If not ask the Security PPI, if exists, for disposition\r
//\r
//\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiSecurityPpiGuid,\r
0,\r
NULL,\r
if (FvHeader->Signature == EFI_FVH_SIGNATURE) {\r
FfsFileHeader = NULL;\r
BuildFvHob ((EFI_PHYSICAL_ADDRESS) (UINTN) FvHeader, FvHeader->FvLength);\r
- Status = PeiCoreFfsFindNextFile (\r
+ Status = PeiServicesFfsFindNextFile (\r
EFI_FV_FILETYPE_DXE_CORE,\r
FvHeader,\r
&FfsFileHeader\r
//\r
} else {\r
\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_PE32,\r
FfsFileHeader,\r
&SectionData\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_TE,\r
FfsFileHeader,\r
&SectionData\r
EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader;\r
EFI_BOOT_MODE BootMode;\r
\r
- Status = PeiCoreGetBootMode (&BootMode);\r
+ Status = PeiServicesGetBootMode (&BootMode);\r
\r
ASSERT_EFI_ERROR (Status);\r
\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gPeiInMemoryGuid,\r
0,\r
NULL,\r
//\r
// Install LoadFile PPI\r
//\r
- Status = PeiCoreInstallPpi (&mPpiLoadFile);\r
+ Status = PeiServicesInstallPpi (&mPpiLoadFile);\r
\r
if (EFI_ERROR (Status)) {\r
return Status;\r
//\r
// Install DxeIpl PPI\r
//\r
- PeiCoreInstallPpi (&mPpiList);\r
+ PeiServicesInstallPpi (&mPpiList);\r
\r
if (EFI_ERROR (Status)) {\r
return Status;\r
//\r
// if in S3 Resume, restore configure\r
//\r
- Status = PeiCoreGetBootMode (&BootMode);\r
+ Status = PeiServicesGetBootMode (&BootMode);\r
\r
if (!EFI_ERROR (Status) && (BootMode == BOOT_ON_S3_RESUME)) {\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiS3ResumePpiGuid,\r
0,\r
NULL,\r
//\r
// Allocate 128KB for the Stack\r
//\r
- PeiCoreAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (STACK_SIZE), &BaseOfStack);\r
+ PeiServicesAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (STACK_SIZE), &BaseOfStack);\r
ASSERT (BaseOfStack != 0);\r
\r
//\r
//\r
// See if we are in crisis recovery\r
//\r
- Status = PeiCoreGetBootMode (&BootMode);\r
+ Status = PeiServicesGetBootMode (&BootMode);\r
if (!EFI_ERROR (Status) && (BootMode == BOOT_IN_RECOVERY_MODE)) {\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiRecoveryModulePpiGuid,\r
0,\r
NULL,\r
//\r
// PEI_PERF_END (PeiServices, L"DxeIpl", NULL, 0);\r
\r
- Status = PeiCoreInstallPpi (&mPpiSignal);\r
+ Status = PeiServicesInstallPpi (&mPpiSignal);\r
ASSERT_EFI_ERROR (Status);\r
\r
//\r
Hob.Raw = GetHobList ();\r
while ((Hob.Raw = GetNextHob (EFI_HOB_TYPE_FV, Hob.Raw)) != NULL) {\r
FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) (Hob.FirmwareVolume->BaseAddress);\r
- Status = PeiCoreFfsFindNextFile (\r
+ Status = PeiServicesFfsFindNextFile (\r
Type,\r
FwVolHeader,\r
&FfsFileHeader\r
//\r
// Allocate Memory for the image\r
//\r
- PeiCoreAllocatePages (MemoryType, EFI_SIZE_TO_PAGES ((UINT32) ImageContext.ImageSize), &MemoryBuffer);\r
+ PeiServicesAllocatePages (MemoryType, EFI_SIZE_TO_PAGES ((UINT32) ImageContext.ImageSize), &MemoryBuffer);\r
ImageContext.ImageAddress = MemoryBuffer;\r
ASSERT (ImageContext.ImageAddress != 0);\r
\r
//\r
// Install PeiInMemory to indicate the Dxeipl is shadowed\r
//\r
- Status = PeiCoreInstallPpi (&mPpiPeiInMemory);\r
+ Status = PeiServicesInstallPpi (&mPpiPeiInMemory);\r
\r
if (EFI_ERROR (Status)) {\r
return Status;\r
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;\r
EFI_COMPRESSION_SECTION *CompressionSection;\r
\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_COMPRESSION,\r
FfsFileHeader,\r
&SectionData\r
//\r
AuthenticationStatus = 0;\r
\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiSectionExtractionPpiGuid,\r
0,\r
NULL,\r
// If not ask the Security PPI, if exists, for disposition\r
//\r
//\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiSecurityPpiGuid,\r
0,\r
NULL,\r
if (FvHeader->Signature == EFI_FVH_SIGNATURE) {\r
FfsFileHeader = NULL;\r
BuildFvHob ((EFI_PHYSICAL_ADDRESS) (UINTN) FvHeader, FvHeader->FvLength);\r
- Status = PeiCoreFfsFindNextFile (\r
+ Status = PeiServicesFfsFindNextFile (\r
EFI_FV_FILETYPE_DXE_CORE,\r
FvHeader,\r
&FfsFileHeader\r
//\r
} else {\r
\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_PE32,\r
FfsFileHeader,\r
&SectionData\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_TE,\r
FfsFileHeader,\r
&SectionData\r
//\r
// Allocate 16KB for the BspStore\r
//\r
- Status = PeiCoreAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (BSP_STORE_SIZE), BspStore);\r
+ Status = PeiServicesAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (BSP_STORE_SIZE), BspStore);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
//\r
// Check if the PPI is installed.\r
//\r
- Status = PeiCoreLocatePpi(\r
+ Status = PeiServicesLocatePpi(\r
&PpiGuid, // GUID\r
0, // INSTANCE\r
NULL, // EFI_PEI_PPI_DESCRIPTOR\r
// anymore FVs, then exit the PEIM search loop.\r
//\r
if (DispatchData->FindFv == NULL) {\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiFindFvPpiGuid,\r
0,\r
NULL,\r
INT8 *DepexData;\r
BOOLEAN Runnable;\r
\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_PEI_DEPEX,\r
CurrentPeimAddress,\r
(VOID **)&DepexData\r
// Locate all instances of FindFV\r
// Alternately, could use FV HOBs, but the PPI is cleaner\r
//\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiFindFvPpiGuid,\r
0,\r
NULL,\r
//\r
// Try to find a PE32 section.\r
//\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_PE32,\r
PeimFileHeader,\r
&Pe32Data\r
// If we didn't find a PE32 section, try to find a TE section.\r
//\r
if (EFI_ERROR (Status)) {\r
- Status = PeiCoreFfsFindSectionData (\r
+ Status = PeiServicesFfsFindSectionData (\r
EFI_SECTION_TE,\r
PeimFileHeader,\r
(VOID **) &TEImageHeader\r
// There was not a PE32 or a TE section, so assume that it's a Compressed section\r
// and use the LoadFile\r
//\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiFvFileLoaderPpiGuid,\r
0,\r
NULL,\r
// it should use AllocatePages service instead.\r
//\r
ASSERT (Size < 0x10000 - sizeof (EFI_HOB_MEMORY_POOL));\r
- Status = PeiCoreCreateHob (\r
+ Status = PeiServicesCreateHob (\r
EFI_HOB_TYPE_PEI_MEMORY_POOL,\r
(UINT16)(sizeof (EFI_HOB_MEMORY_POOL) + Size),\r
(VOID **)&Hob\r
<Library>BaseLib</Library>
<Library>BaseMemoryLib</Library>
<Library OverrideID="4444">PeiServicesTablePointerLib</Library>
- <Library>PeiCoreLib</Library>
+ <Library>PeiServicesLib</Library>
<Library>PeiHobLib</Library>
<Library>PeiReportStatusCodeLib</Library>
<Library>BaseDebugLibReportStatusCode</Library>
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PerformanceLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">ReportStatusCodeLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeCoffGetEntryPointLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
// Alert any listeners that there is permanent memory available\r
//\r
PERF_START (NULL,"DisMem", NULL, 0);\r
- Status = PeiCoreInstallPpi (&mMemoryDiscoveredPpi);\r
+ Status = PeiServicesInstallPpi (&mMemoryDiscoveredPpi);\r
PERF_END (NULL,"DisMem", NULL, 0);\r
\r
} else {\r
// If SEC provided any PPI services to PEI, install them.\r
//\r
if (PeiStartupDescriptor->DispatchTable != NULL) {\r
- Status = PeiCoreInstallPpi (PeiStartupDescriptor->DispatchTable);\r
+ Status = PeiServicesInstallPpi (PeiStartupDescriptor->DispatchTable);\r
ASSERT_EFI_ERROR (Status);\r
}\r
}\r
\r
PERF_END (NULL, "PostMem", NULL, 0);\r
\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiDxeIplPpiGuid,\r
0,\r
NULL,\r
EFI_STATUS Status;\r
EFI_PEI_RESET_PPI *ResetPpi;\r
\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiResetPpiGuid, \r
0, \r
NULL, \r
--*/\r
{\r
if (OldCoreData == NULL) {\r
- PeiCoreNotifyPpi (&mNotifyList);\r
+ PeiServicesNotifyPpi (&mNotifyList);\r
}\r
return;\r
}\r
//\r
//Locate StatusCode Ppi.\r
//\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gEfiPeiStatusCodePpiGuid, \r
0, \r
NULL, \r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<Library>BaseDebugLibReportStatusCode</Library>\r
<Library>PeiServicesTablePointerLib</Library>\r
<Library>PeiMemoryLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library>BaseLib</Library>\r
</Libraries>\r
</ModuleBuildDescription>\r
<LibraryClassDefinitions>\r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
<Filename>BaseMemoryTest.c</Filename>\r
\r
BuildPcdDatabase ();\r
\r
- Status = PeiCoreInstallPpi (&mPpiPCD);\r
+ Status = PeiServicesInstallPpi (&mPpiPCD);\r
\r
ASSERT_EFI_ERROR (Status);\r
\r
<Libraries>\r
<Library>PeimEntryPoint</Library>\r
<Library>BaseLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library OverrideID="4444">PeiServicesTablePointerLib</Library>\r
<Library>PeiHobLib</Library>\r
<Library>BaseDebugLibReportStatusCode</Library>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PcdLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">MemoryAllocationLib</LibraryClass>\r
VOID *Buffer;\r
EFI_PEI_READ_ONLY_VARIABLE_PPI *VariablePpi;\r
\r
- Status = PeiCoreLocatePpi (&gEfiPeiReadOnlyVariablePpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
+ Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariablePpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
ASSERT_EFI_ERROR (Status);\r
\r
Size = 0;\r
);\r
ASSERT (Status == EFI_BUFFER_TOO_SMALL);\r
\r
- Status = PeiCoreAllocatePool (Size, &Buffer);\r
+ Status = PeiServicesAllocatePool (Size, &Buffer);\r
ASSERT_EFI_ERROR (Status);\r
\r
Status = VariablePpi->PeiGetVariable (\r
<Libraries>\r
<Library>PeimEntryPoint</Library>\r
<Library>BaseLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library>PeiServicesTablePointerLib</Library>\r
<Library>BaseDebugLibReportStatusCode</Library>\r
<Library>PeiMemoryLib</Library>\r
<Library>BaseDebugLibReportStatusCode</Library>
<Library>BaseLib</Library>
<Library>PeiMemoryLib</Library>
- <Library>PeiCoreLib</Library>
+ <Library>PeiServicesLib</Library>
<Library OverrideID="4444">PeiServicesTablePointerLib</Library>
<Library>PeiHobLib</Library>
<Library>PeimEntryPoint</Library>
<LibraryClassDefinitions>\r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
</MsaLibHeader>\r
<LibraryClassDefinitions>\r
<LibraryClass Usage="ALWAYS_PRODUCED">PeCoffGetEntryPointLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
<Filename>PeCoffGetEntryPoint.c</Filename>\r
UINT64 ImageSize;\r
EFI_PHYSICAL_ADDRESS ImageEntryPoint;\r
\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gNtPeiLoadFilePpiGuid,\r
0,\r
&PpiDescriptor,\r
<Libraries>\r
<Library>PeimEntryPoint</Library>\r
<Library>PeiMemoryLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library>PeiServicesTablePointerLib</Library>\r
<Library>PeiHobLib</Library>\r
<Library>PeiReportStatusCodeLib</Library>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
<Libraries>\r
<Library>PeimEntryPoint</Library>\r
<Library>PeiMemoryLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library>PeiServicesTablePointerLib</Library>\r
<Library>PeiReportStatusCodeLib</Library>\r
<Library>BaseDebugLibReportStatusCode</Library>\r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
<Libraries>\r
<Library>PeimEntryPoint</Library>\r
<Library>PeiMemoryLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library>PeiServicesTablePointerLib</Library>\r
<Library>PeiHobLib</Library>\r
<Library>PeiReportStatusCodeLib</Library>\r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
//\r
// Install FlashMap PPI\r
//\r
- Status = PeiCoreInstallPpi (&mPpiListFlashMap);\r
+ Status = PeiServicesInstallPpi (&mPpiListFlashMap);\r
ASSERT_EFI_ERROR (Status);\r
\r
\r
//\r
// Get the Fwh Information PPI\r
//\r
- Status = PeiCoreLocatePpi (\r
+ Status = PeiServicesLocatePpi (\r
&gNtFwhPpiGuid, // GUID\r
0, // INSTANCE\r
&PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR\r
EFI_PEI_HOB_POINTERS Hob;\r
EFI_HOB_FLASH_MAP_ENTRY_TYPE *FlashMapEntry;\r
\r
- Status = PeiCoreGetHobList (&Hob.Raw);\r
+ Status = PeiServicesGetHobList (&Hob.Raw);\r
while (!END_OF_HOB_LIST (Hob)) {\r
if (Hob.Header->HobType == EFI_HOB_TYPE_GUID_EXTENSION && CompareGuid (&Hob.Guid->Name, &gEfiFlashMapHobGuid)) {\r
FlashMapEntry = (EFI_HOB_FLASH_MAP_ENTRY_TYPE *) Hob.Raw;\r
<Libraries>\r
<Library>PeimEntryPoint</Library>\r
<Library>PeiMemoryLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library>PeiServicesTablePointerLib</Library>\r
<Library>PeiHobLib</Library>\r
<Library>PeiReportStatusCodeLib</Library>\r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<Library>PeiHobLib</Library>\r
<Library>PeimEntryPoint</Library>\r
<Library>EdkMemoryStatusCodeLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
</Libraries>\r
<BuildOptions ToolChain="MSFT">\r
<ImageEntryPoint>_ModuleEntryPoint</ImageEntryPoint>\r
//\r
// Install PCD service PPI\r
//\r
- Status = PeiCoreInstallPpi (&mPpiPCD);\r
+ Status = PeiServicesInstallPpi (&mPpiPCD);\r
\r
ASSERT_EFI_ERROR (Status);\r
return Status;\r
<Libraries>\r
<Library>PeimEntryPoint</Library>\r
<Library>BaseLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library>PeiServicesTablePointerLib</Library>\r
<Library>PeiHobLib</Library>\r
<Library>BaseDebugLibReportStatusCode</Library>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PcdLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">MemoryAllocationLib</LibraryClass>\r
<Libraries>\r
<Library>PeimEntryPoint</Library>\r
<Library>PeiMemoryLib</Library>\r
- <Library>PeiCoreLib</Library>\r
+ <Library>PeiServicesLib</Library>\r
<Library>PeiServicesTablePointerLib</Library>\r
<Library>PeiHobLib</Library>\r
<Library>PeiReportStatusCodeLib</Library>\r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
+++ /dev/null
-/** @file\r
- PEI Core Library implementation\r
-\r
- Copyright (c) 2006, Intel Corporation \r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
- Module Name: PeiCoreLib.h\r
-\r
-**/\r
-\r
-#ifndef __PEI_CORE_LIB_H__\r
-#define __PEI_CORE_LIB_H__\r
-\r
-/**\r
- This service enables a given PEIM to register an interface into the PEI Foundation. \r
-\r
- @param PpiList A pointer to the list of interfaces that the caller shall install.\r
-\r
- @retval EFI_SUCCESS The interface was successfully installed.\r
- @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL.\r
- @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
- the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
- @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreInstallPpi (\r
- IN EFI_PEI_PPI_DESCRIPTOR *PpiList\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to replace an entry in the PPI database with an alternate entry.\r
-\r
- @param OldPpi Pointer to the old PEI PPI Descriptors.\r
- @param NewPpi Pointer to the new PEI PPI Descriptors.\r
-\r
- @retval EFI_SUCCESS The interface was successfully installed.\r
- @retval EFI_INVALID_PARAMETER The OldPpi or NewPpi is NULL.\r
- @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
- the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
- @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
- @retval EFI_NOT_FOUND The PPI for which the reinstallation was requested has not been installed.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreReinstallPpi (\r
- IN EFI_PEI_PPI_DESCRIPTOR *OldPpi,\r
- IN EFI_PEI_PPI_DESCRIPTOR *NewPpi\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to discover a given instance of an interface.\r
-\r
- @param Guid A pointer to the GUID whose corresponding interface needs to be found.\r
- @param Instance The N-th instance of the interface that is required.\r
- @param PpiDescriptor A pointer to instance of the EFI_PEI_PPI_DESCRIPTOR.\r
- @param Ppi A pointer to the instance of the interface.\r
-\r
- @retval EFI_SUCCESS The interface was successfully returned.\r
- @retval EFI_NOT_FOUND The PPI descriptor is not found in the database.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreLocatePpi (\r
- IN EFI_GUID *Guid,\r
- IN UINTN Instance,\r
- IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor,\r
- IN OUT VOID **Ppi\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to register a given service to be invoked\r
- when another service is installed or reinstalled.\r
-\r
- @param NotifyList A pointer to the list of notification interfaces that the caller shall install.\r
-\r
- @retval EFI_SUCCESS The interface was successfully installed.\r
- @retval EFI_INVALID_PARAMETER The NotifyList pointer is NULL.\r
- @retval EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have\r
- the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
- @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreNotifyPpi (\r
- IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyList\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to ascertain the present value of the boot mode. \r
-\r
- @param BootMode A pointer to contain the value of the boot mode.\r
-\r
- @retval EFI_SUCCESS The boot mode was returned successfully.\r
- @retval EFI_INVALID_PARAMETER BootMode is NULL.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreGetBootMode (\r
- IN OUT EFI_BOOT_MODE *BootMode\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to update the boot mode variable. \r
-\r
- @param BootMode The value of the boot mode to set.\r
-\r
- @retval EFI_SUCCESS The value was successfully updated\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreSetBootMode (\r
- IN EFI_BOOT_MODE BootMode\r
- )\r
-;\r
-\r
-/**\r
- This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
-\r
- @param HobList A pointer to the list of HOBs that the PEI Foundation will initialize.\r
-\r
- @retval EFI_SUCCESS The list was successfully returned.\r
- @retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreGetHobList (\r
- IN OUT VOID **HobList\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to create various types of HOBs.\r
-\r
- @param Type The type of HOB to be installed.\r
- @param Length The length of the HOB to be added.\r
- @param Hob The address of a pointer that will contain the HOB header.\r
-\r
- @retval EFI_SUCCESS The HOB was successfully created.\r
- @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreCreateHob (\r
- IN UINT16 Type,\r
- IN UINT16 Length,\r
- IN OUT VOID **Hob\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to discover additional firmware volumes.\r
-\r
- @param Instance This instance of the firmware volume to find.\r
- The value 0 is the Boot Firmware Volume (BFV).\r
- @param FwVolHeader Pointer to the firmware volume header of the volume to return.\r
-\r
- @retval EFI_SUCCESS The volume was found.\r
- @retval EFI_NOT_FOUND The volume was not found.\r
- @retval EFI_INVALID_PARAMETER FwVolHeader is NULL.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreFfsFindNextVolume (\r
- IN UINTN Instance,\r
- IN OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to discover additional firmware files.\r
-\r
- @param SearchType A filter to find files only of this type.\r
- @param FwVolHeader Pointer to the firmware volume header of the volume to search.\r
- This parameter must point to a valid FFS volume.\r
- @param FileHeader Pointer to the current file from which to begin searching.\r
-\r
- @retval EFI_SUCCESS The file was found.\r
- @retval EFI_NOT_FOUND The file was not found.\r
- @retval EFI_NOT_FOUND The header checksum was not zero.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreFfsFindNextFile (\r
- IN EFI_FV_FILETYPE SearchType,\r
- IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader,\r
- IN OUT EFI_FFS_FILE_HEADER **FileHeader\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
-\r
- @param SearchType The value of the section type to find.\r
- @param FfsFileHeader A pointer to the file header that contains the set of sections to be searched.\r
- @param SectionData A pointer to the discovered section, if successful.\r
-\r
- @retval EFI_SUCCESS The section was found.\r
- @retval EFI_NOT_FOUND The section was not found.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreFfsFindSectionData (\r
- IN EFI_SECTION_TYPE SectionType,\r
- IN EFI_FFS_FILE_HEADER *FfsFileHeader,\r
- IN OUT VOID **SectionData\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to register the permanent memory configuration\r
- that has been initialized with the PEI Foundation.\r
-\r
- @param MemoryBegin The value of a region of installed memory.\r
- @param MemoryLength The corresponding length of a region of installed memory.\r
-\r
- @retval EFI_SUCCESS The region was successfully installed in a HOB.\r
- @retval EFI_INVALID_PARAMETER MemoryBegin and MemoryLength are illegal for this system.\r
- @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreInstallPeiMemory (\r
- IN EFI_PHYSICAL_ADDRESS MemoryBegin,\r
- IN UINT64 MemoryLength\r
- )\r
-;\r
-\r
-/**\r
- This service enables PEIMs to allocate memory after the permanent memory has been installed by a PEIM.\r
-\r
- @param MemoryType Type of memory to allocate.\r
- @param Pages Number of pages to allocate.\r
- @param Memory Pointer of memory allocated.\r
-\r
- @retval EFI_SUCCESS The memory range was successfully allocated.\r
- @retval EFI_INVALID_PARAMETER Type is not equal to AllocateAnyPages.\r
- @retval EFI_NOT_AVAILABLE_YET Called with permanent memory not available.\r
- @retval EFI_OUT_OF_RESOURCES The pages could not be allocated.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreAllocatePages (\r
- IN EFI_MEMORY_TYPE MemoryType,\r
- IN UINTN Pages,\r
- IN OUT EFI_PHYSICAL_ADDRESS *Memory\r
- )\r
-;\r
-\r
-/**\r
- This service allocates memory from the Hand-Off Block (HOB) heap.\r
-\r
- @param Size The number of bytes to allocate from the pool.\r
- @param Buffer If the call succeeds, a pointer to a pointer to the allocated buffer;\r
- undefined otherwise.\r
-\r
- @retval EFI_SUCCESS The allocation was successful\r
- @retval EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreAllocatePool (\r
- IN UINTN Size,\r
- OUT VOID **Buffer\r
- )\r
-;\r
-\r
-/**\r
- This service resets the entire platform, including all processors and devices, and reboots the system. \r
-\r
- @retval EFI_NOT_AVAILABLE_YET The service has not been installed yet.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreResetSystem (\r
- VOID\r
- )\r
-;\r
-\r
-#endif\r
--- /dev/null
+/** @file\r
+ PEI Core Library implementation\r
+\r
+ Copyright (c) 2006, Intel Corporation \r
+ All rights reserved. This program and the accompanying materials \r
+ are licensed and made available under the terms and conditions of the BSD License \r
+ which accompanies this distribution. The full text of the license may be found at \r
+ http://opensource.org/licenses/bsd-license.php \r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+ Module Name: PeiServicesLib.h\r
+\r
+**/\r
+\r
+#ifndef __PEI_SERVICES_LIB_H__\r
+#define __PEI_SERVICES_LIB_H__\r
+\r
+/**\r
+ This service enables a given PEIM to register an interface into the PEI Foundation. \r
+\r
+ @param PpiList A pointer to the list of interfaces that the caller shall install.\r
+\r
+ @retval EFI_SUCCESS The interface was successfully installed.\r
+ @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL.\r
+ @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+ the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesInstallPpi (\r
+ IN EFI_PEI_PPI_DESCRIPTOR *PpiList\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to replace an entry in the PPI database with an alternate entry.\r
+\r
+ @param OldPpi Pointer to the old PEI PPI Descriptors.\r
+ @param NewPpi Pointer to the new PEI PPI Descriptors.\r
+\r
+ @retval EFI_SUCCESS The interface was successfully installed.\r
+ @retval EFI_INVALID_PARAMETER The OldPpi or NewPpi is NULL.\r
+ @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+ the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+ @retval EFI_NOT_FOUND The PPI for which the reinstallation was requested has not been installed.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesReinstallPpi (\r
+ IN EFI_PEI_PPI_DESCRIPTOR *OldPpi,\r
+ IN EFI_PEI_PPI_DESCRIPTOR *NewPpi\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to discover a given instance of an interface.\r
+\r
+ @param Guid A pointer to the GUID whose corresponding interface needs to be found.\r
+ @param Instance The N-th instance of the interface that is required.\r
+ @param PpiDescriptor A pointer to instance of the EFI_PEI_PPI_DESCRIPTOR.\r
+ @param Ppi A pointer to the instance of the interface.\r
+\r
+ @retval EFI_SUCCESS The interface was successfully returned.\r
+ @retval EFI_NOT_FOUND The PPI descriptor is not found in the database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesLocatePpi (\r
+ IN EFI_GUID *Guid,\r
+ IN UINTN Instance,\r
+ IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor,\r
+ IN OUT VOID **Ppi\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to register a given service to be invoked\r
+ when another service is installed or reinstalled.\r
+\r
+ @param NotifyList A pointer to the list of notification interfaces that the caller shall install.\r
+\r
+ @retval EFI_SUCCESS The interface was successfully installed.\r
+ @retval EFI_INVALID_PARAMETER The NotifyList pointer is NULL.\r
+ @retval EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have\r
+ the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesNotifyPpi (\r
+ IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyList\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to ascertain the present value of the boot mode. \r
+\r
+ @param BootMode A pointer to contain the value of the boot mode.\r
+\r
+ @retval EFI_SUCCESS The boot mode was returned successfully.\r
+ @retval EFI_INVALID_PARAMETER BootMode is NULL.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesGetBootMode (\r
+ IN OUT EFI_BOOT_MODE *BootMode\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to update the boot mode variable. \r
+\r
+ @param BootMode The value of the boot mode to set.\r
+\r
+ @retval EFI_SUCCESS The value was successfully updated\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesSetBootMode (\r
+ IN EFI_BOOT_MODE BootMode\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
+\r
+ @param HobList A pointer to the list of HOBs that the PEI Foundation will initialize.\r
+\r
+ @retval EFI_SUCCESS The list was successfully returned.\r
+ @retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesGetHobList (\r
+ IN OUT VOID **HobList\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to create various types of HOBs.\r
+\r
+ @param Type The type of HOB to be installed.\r
+ @param Length The length of the HOB to be added.\r
+ @param Hob The address of a pointer that will contain the HOB header.\r
+\r
+ @retval EFI_SUCCESS The HOB was successfully created.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesCreateHob (\r
+ IN UINT16 Type,\r
+ IN UINT16 Length,\r
+ IN OUT VOID **Hob\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to discover additional firmware volumes.\r
+\r
+ @param Instance This instance of the firmware volume to find.\r
+ The value 0 is the Boot Firmware Volume (BFV).\r
+ @param FwVolHeader Pointer to the firmware volume header of the volume to return.\r
+\r
+ @retval EFI_SUCCESS The volume was found.\r
+ @retval EFI_NOT_FOUND The volume was not found.\r
+ @retval EFI_INVALID_PARAMETER FwVolHeader is NULL.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindNextVolume (\r
+ IN UINTN Instance,\r
+ IN OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to discover additional firmware files.\r
+\r
+ @param SearchType A filter to find files only of this type.\r
+ @param FwVolHeader Pointer to the firmware volume header of the volume to search.\r
+ This parameter must point to a valid FFS volume.\r
+ @param FileHeader Pointer to the current file from which to begin searching.\r
+\r
+ @retval EFI_SUCCESS The file was found.\r
+ @retval EFI_NOT_FOUND The file was not found.\r
+ @retval EFI_NOT_FOUND The header checksum was not zero.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindNextFile (\r
+ IN EFI_FV_FILETYPE SearchType,\r
+ IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader,\r
+ IN OUT EFI_FFS_FILE_HEADER **FileHeader\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
+\r
+ @param SearchType The value of the section type to find.\r
+ @param FfsFileHeader A pointer to the file header that contains the set of sections to be searched.\r
+ @param SectionData A pointer to the discovered section, if successful.\r
+\r
+ @retval EFI_SUCCESS The section was found.\r
+ @retval EFI_NOT_FOUND The section was not found.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindSectionData (\r
+ IN EFI_SECTION_TYPE SectionType,\r
+ IN EFI_FFS_FILE_HEADER *FfsFileHeader,\r
+ IN OUT VOID **SectionData\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to register the permanent memory configuration\r
+ that has been initialized with the PEI Foundation.\r
+\r
+ @param MemoryBegin The value of a region of installed memory.\r
+ @param MemoryLength The corresponding length of a region of installed memory.\r
+\r
+ @retval EFI_SUCCESS The region was successfully installed in a HOB.\r
+ @retval EFI_INVALID_PARAMETER MemoryBegin and MemoryLength are illegal for this system.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesInstallPeiMemory (\r
+ IN EFI_PHYSICAL_ADDRESS MemoryBegin,\r
+ IN UINT64 MemoryLength\r
+ )\r
+;\r
+\r
+/**\r
+ This service enables PEIMs to allocate memory after the permanent memory has been installed by a PEIM.\r
+\r
+ @param MemoryType Type of memory to allocate.\r
+ @param Pages Number of pages to allocate.\r
+ @param Memory Pointer of memory allocated.\r
+\r
+ @retval EFI_SUCCESS The memory range was successfully allocated.\r
+ @retval EFI_INVALID_PARAMETER Type is not equal to AllocateAnyPages.\r
+ @retval EFI_NOT_AVAILABLE_YET Called with permanent memory not available.\r
+ @retval EFI_OUT_OF_RESOURCES The pages could not be allocated.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesAllocatePages (\r
+ IN EFI_MEMORY_TYPE MemoryType,\r
+ IN UINTN Pages,\r
+ IN OUT EFI_PHYSICAL_ADDRESS *Memory\r
+ )\r
+;\r
+\r
+/**\r
+ This service allocates memory from the Hand-Off Block (HOB) heap.\r
+\r
+ @param Size The number of bytes to allocate from the pool.\r
+ @param Buffer If the call succeeds, a pointer to a pointer to the allocated buffer;\r
+ undefined otherwise.\r
+\r
+ @retval EFI_SUCCESS The allocation was successful\r
+ @retval EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesAllocatePool (\r
+ IN UINTN Size,\r
+ OUT VOID **Buffer\r
+ )\r
+;\r
+\r
+/**\r
+ This service resets the entire platform, including all processors and devices, and reboots the system. \r
+\r
+ @retval EFI_NOT_AVAILABLE_YET The service has not been installed yet.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesResetSystem (\r
+ VOID\r
+ )\r
+;\r
+\r
+#endif\r
#define REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED 0x00000001\r
#define REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED 0x00000002\r
#define REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED 0x00000004\r
-#define REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED 0x00000008\r
-#define REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED 0x00000010\r
\r
//\r
// Extended Data structure definitions with EFI_STATUS_CODE_DATA headers removed\r
);\r
\r
\r
-/**\r
- Sends an 32-bit value to a POST card.\r
-\r
- Sends the 32-bit value specified by Value to a POST card, and returns Value. \r
- Some implementations of this library function may perform I/O operations \r
- directly to a POST card device. Other implementations may send Value to \r
- ReportStatusCode(), and the status code reporting mechanism will eventually \r
- display the 32-bit value on the status reporting device.\r
- \r
- PostCode() must actively prevent recursion. If PostCode() is called while \r
- processing another any other Report Status Code Library function, then \r
- PostCode() must return Value immediately.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
-\r
- @return Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCode (\r
- IN UINT32 Value\r
- );\r
-\r
-\r
-/**\r
- Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
- Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
- If Description is not NULL, then the ASCII string specified by Description is \r
- also passed to the handler that displays the POST card value. Some \r
- implementations of this library function may perform I/O operations directly \r
- to a POST card device. Other implementations may send Value to ReportStatusCode(), \r
- and the status code reporting mechanism will eventually display the 32-bit \r
- value on the status reporting device. \r
-\r
- PostCodeWithDescription()must actively prevent recursion. If \r
- PostCodeWithDescription() is called while processing another any other Report \r
- Status Code Library function, then PostCodeWithDescription() must return Value \r
- immediately.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
- @param Description Pointer to an ASCII string that is a description of the \r
- POST code value. This is an optional parameter that may \r
- be NULL.\r
-\r
- @return Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCodeWithDescription (\r
- IN UINT32 Value,\r
- IN CONST CHAR8 *Description OPTIONAL\r
- );\r
-\r
-\r
/**\r
Returns TRUE if status codes of type EFI_PROGRESS_CODE are enabled\r
\r
);\r
\r
\r
-/**\r
- Returns TRUE if POST Codes are enabled.\r
-\r
- This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
-\r
- @retval TRUE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is set.\r
- @retval FALSE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeEnabled (\r
- VOID\r
- );\r
-\r
-\r
-/**\r
- Returns TRUE if POST code descriptions are enabled.\r
-\r
- This function returns TRUE if the \r
- REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
-\r
- @retval TRUE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is set.\r
- @retval FALSE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeDescriptionEnabled (\r
- VOID\r
- );\r
-\r
-\r
/**\r
Reports a status code with minimal parameters if the status code type is enabled.\r
\r
ReportStatusCodeEx(Type,Value,Instance,CallerId,ExtendedDataGuid,ExtendedData,ExtendedDataSize) : \\r
EFI_UNSUPPORTED\r
\r
-/**\r
- Sends an 32-bit value to a POST card.\r
-\r
- If POST codes are enabled in PcdReportStatusCodeProperyMask, then call PostCode() \r
- passing in Value. Value is returned.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
-\r
- @return Value\r
-\r
-**/\r
-#define POST_CODE(Value) ReportPostCodeEnabled() ? PostCode(Value) : Value\r
-\r
-/**\r
- Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
- If POST codes and POST code descriptions are enabled in \r
- PcdReportStatusCodeProperyMask, then call PostCodeWithDescription() passing in \r
- Value and Description. If only POST codes are enabled, then call PostCode() \r
- passing in Value. Value is returned.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
- @param Description Pointer to an ASCII string that is a description of the \r
- POST code value.\r
-\r
-**/\r
-#define POST_CODE_WITH_DESCRIPTION(Value,Description) \\r
- ReportPostCodeEnabled() ? \\r
- (ReportPostCodeDescriptionEnabled() ? \\r
- PostCodeWithDescription(Value,Description) : \\r
- PostCode(Value)) : \\r
- Value\r
-\r
#endif\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
<Filename>ReportStatusCodeLib.c</Filename>\r
- <Filename>PostCode.c</Filename>\r
</SourceFiles>\r
<Includes>\r
<PackageName>MdePkg</PackageName>\r
+++ /dev/null
-/** @file\r
- Report Status Code Library Post Code functions for DXE Phase.\r
-\r
- Copyright (c) 2006, Intel Corporation<BR>\r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-\r
-/**\r
- Sends an 32-bit value to a POST card.\r
-\r
- Sends the 32-bit value specified by Value to a POST card, and returns Value. \r
- Some implementations of this library function may perform I/O operations \r
- directly to a POST card device. Other implementations may send Value to \r
- ReportStatusCode(), and the status code reporting mechanism will eventually \r
- display the 32-bit value on the status reporting device.\r
- \r
- PostCode() must actively prevent recursion. If PostCode() is called while \r
- processing another any other Report Status Code Library function, then \r
- PostCode() must return Value immediately.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
-\r
- @return Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCode (\r
- IN UINT32 Value\r
- )\r
-{\r
- DEBUG((EFI_D_INFO, "POST %08x\n", Value));\r
- IoWrite8 (0x80, (UINT8)(Value));\r
- return Value;\r
-}\r
-\r
-\r
-/**\r
- Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
- Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
- If Description is not NULL, then the ASCII string specified by Description is \r
- also passed to the handler that displays the POST card value. Some \r
- implementations of this library function may perform I/O operations directly \r
- to a POST card device. Other implementations may send Value to ReportStatusCode(), \r
- and the status code reporting mechanism will eventually display the 32-bit \r
- value on the status reporting device. \r
-\r
- PostCodeWithDescription()must actively prevent recursion. If \r
- PostCodeWithDescription() is called while processing another any other Report \r
- Status Code Library function, then PostCodeWithDescription() must return Value \r
- immediately.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
- @param Description Pointer to an ASCII string that is a description of the \r
- POST code value. This is an optional parameter that may \r
- be NULL.\r
-\r
- @return Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCodeWithDescription (\r
- IN UINT32 Value,\r
- IN CONST CHAR8 *Description OPTIONAL\r
- )\r
-{\r
- DEBUG((EFI_D_INFO, "POST %08x - %s\n", Value, Description));\r
- IoWrite8 (0x80, (UINT8)(Value));\r
- return Value;\r
-}\r
-\r
-\r
-/**\r
- Returns TRUE if POST Codes are enabled.\r
-\r
- This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
-\r
- @retval TRUE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is set.\r
- @retval FALSE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeEnabled (\r
- VOID\r
- )\r
-{\r
- return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
-}\r
-\r
-\r
-/**\r
- Returns TRUE if POST code descriptions are enabled.\r
-\r
- This function returns TRUE if the \r
- REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
-\r
- @retval TRUE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is set.\r
- @retval FALSE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeDescriptionEnabled (\r
- VOID\r
- )\r
-{\r
- return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);\r
-}\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
<Filename>ReportStatusCodeLib.c</Filename>\r
- <Filename>PostCode.c</Filename>\r
</SourceFiles>\r
<Includes>\r
<PackageName>MdePkg</PackageName>\r
+++ /dev/null
-/** @file\r
- Report Status Code Library Post Code functions for DXE Phase.\r
-\r
- Copyright (c) 2006, Intel Corporation<BR>\r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-\r
-/**\r
- Sends an 32-bit value to a POST card.\r
-\r
- Sends the 32-bit value specified by Value to a POST card, and returns Value. \r
- Some implementations of this library function may perform I/O operations \r
- directly to a POST card device. Other implementations may send Value to \r
- ReportStatusCode(), and the status code reporting mechanism will eventually \r
- display the 32-bit value on the status reporting device.\r
- \r
- PostCode() must actively prevent recursion. If PostCode() is called while \r
- processing another any other Report Status Code Library function, then \r
- PostCode() must return Value immediately.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
-\r
- @return Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCode (\r
- IN UINT32 Value\r
- )\r
-{\r
- DEBUG((EFI_D_INFO, "POST %08x\n", Value));\r
- IoWrite8 (0x80, (UINT8)(Value));\r
- return Value;\r
-}\r
-\r
-\r
-/**\r
- Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
- Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
- If Description is not NULL, then the ASCII string specified by Description is \r
- also passed to the handler that displays the POST card value. Some \r
- implementations of this library function may perform I/O operations directly \r
- to a POST card device. Other implementations may send Value to ReportStatusCode(), \r
- and the status code reporting mechanism will eventually display the 32-bit \r
- value on the status reporting device. \r
-\r
- PostCodeWithDescription()must actively prevent recursion. If \r
- PostCodeWithDescription() is called while processing another any other Report \r
- Status Code Library function, then PostCodeWithDescription() must return Value \r
- immediately.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
- @param Description Pointer to an ASCII string that is a description of the \r
- POST code value. This is an optional parameter that may \r
- be NULL.\r
-\r
- @return Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCodeWithDescription (\r
- IN UINT32 Value,\r
- IN CONST CHAR8 *Description OPTIONAL\r
- )\r
-{\r
- DEBUG((EFI_D_INFO, "POST %08x - %s\n", Value, Description));\r
- IoWrite8 (0x80, (UINT8)(Value));\r
- return Value;\r
-}\r
-\r
-\r
-/**\r
- Returns TRUE if POST Codes are enabled.\r
-\r
- This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
-\r
- @retval TRUE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is set.\r
- @retval FALSE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeEnabled (\r
- VOID\r
- )\r
-{\r
- return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
-}\r
-\r
-\r
-/**\r
- Returns TRUE if POST code descriptions are enabled.\r
-\r
- This function returns TRUE if the \r
- REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
-\r
- @retval TRUE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is set.\r
- @retval FALSE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeDescriptionEnabled (\r
- VOID\r
- )\r
-{\r
- return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);\r
-}\r
EFI_STATUS Status;\r
VOID *HobList;\r
\r
- Status = PeiCoreGetHobList (&HobList);\r
+ Status = PeiServicesGetHobList (&HobList);\r
ASSERT_EFI_ERROR (Status);\r
ASSERT (HobList != NULL);\r
\r
EFI_STATUS Status;\r
VOID *Hob;\r
\r
- Status = PeiCoreCreateHob (Type, Length, &Hob);\r
+ Status = PeiServicesCreateHob (Type, Length, &Hob);\r
//\r
// Assume the process of HOB building is always successful.\r
//\r
<LibraryClassDefinitions>\r
<LibraryClass Usage="ALWAYS_PRODUCED">HobLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
<Filename>ReportStatusCodeLib.c</Filename>\r
- <Filename>PostCode.c</Filename>\r
</SourceFiles>\r
<Includes>\r
<PackageName>MdePkg</PackageName>\r
+++ /dev/null
-/** @file\r
- Report Status Code Library Post Code functions for PEI Phase.\r
-\r
- Copyright (c) 2006, Intel Corporation<BR>\r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-\r
-/**\r
- Sends an 32-bit value to a POST card.\r
-\r
- Sends the 32-bit value specified by Value to a POST card, and returns Value. \r
- Some implementations of this library function may perform I/O operations \r
- directly to a POST card device. Other implementations may send Value to \r
- ReportStatusCode(), and the status code reporting mechanism will eventually \r
- display the 32-bit value on the status reporting device.\r
- \r
- PostCode() must actively prevent recursion. If PostCode() is called while \r
- processing another any other Report Status Code Library function, then \r
- PostCode() must return Value immediately.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
-\r
- @return Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCode (\r
- IN UINT32 Value\r
- )\r
-{\r
- DEBUG((EFI_D_INFO, "POST %08x\n", Value));\r
- IoWrite8 (0x80, (UINT8)(Value));\r
- return Value;\r
-}\r
-\r
-\r
-/**\r
- Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
- Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
- If Description is not NULL, then the ASCII string specified by Description is \r
- also passed to the handler that displays the POST card value. Some \r
- implementations of this library function may perform I/O operations directly \r
- to a POST card device. Other implementations may send Value to ReportStatusCode(), \r
- and the status code reporting mechanism will eventually display the 32-bit \r
- value on the status reporting device. \r
-\r
- PostCodeWithDescription()must actively prevent recursion. If \r
- PostCodeWithDescription() is called while processing another any other Report \r
- Status Code Library function, then PostCodeWithDescription() must return Value \r
- immediately.\r
-\r
- @param Value The 32-bit value to write to the POST card.\r
- @param Description Pointer to an ASCII string that is a description of the \r
- POST code value. This is an optional parameter that may \r
- be NULL.\r
-\r
- @return Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCodeWithDescription (\r
- IN UINT32 Value,\r
- IN CONST CHAR8 *Description OPTIONAL\r
- )\r
-{\r
- DEBUG((EFI_D_INFO, "POST %08x - %s\n", Value, Description));\r
- IoWrite8 (0x80, (UINT8)(Value));\r
- return Value;\r
-}\r
-\r
-\r
-/**\r
- Returns TRUE if POST Codes are enabled.\r
-\r
- This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
-\r
- @retval TRUE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is set.\r
- @retval FALSE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeEnabled (\r
- VOID\r
- )\r
-{\r
- return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
-}\r
-\r
-\r
-/**\r
- Returns TRUE if POST code descriptions are enabled.\r
-\r
- This function returns TRUE if the \r
- REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED bit of \r
- PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
-\r
- @retval TRUE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is set.\r
- @retval FALSE The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
- bit of PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeDescriptionEnabled (\r
- VOID\r
- )\r
-{\r
- return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);\r
-}\r
ASSERT (MemoryLength > 0);\r
ASSERT (MemoryLength <= (MAX_ADDRESS - MemoryBegin + 1));\r
\r
- Status = PeiCoreInstallPeiMemory (MemoryBegin, MemoryLength);\r
+ Status = PeiServicesInstallPeiMemory (MemoryBegin, MemoryLength);\r
\r
return (RETURN_STATUS) Status;\r
}\r
</MsaLibHeader>\r
<LibraryClassDefinitions>\r
<LibraryClass Usage="ALWAYS_PRODUCED">ResourcePublicationLib</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
</LibraryClassDefinitions>\r
<SourceFiles>\r
--- /dev/null
+/** @file\r
+ PEI Library.\r
+\r
+ Copyright (c) 2006, Intel Corporation<BR>\r
+ All rights reserved. This program and the accompanying materials \r
+ are licensed and made available under the terms and conditions of the BSD License \r
+ which accompanies this distribution. The full text of the license may be found at \r
+ http://opensource.org/licenses/bsd-license.php \r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+ Module Name: PeiServicesLib.c\r
+\r
+**/\r
+\r
+/**\r
+ This service enables a given PEIM to register an interface into the PEI Foundation. \r
+\r
+ @param PpiList A pointer to the list of interfaces that the caller shall install.\r
+\r
+ @retval EFI_SUCCESS The interface was successfully installed.\r
+ @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL.\r
+ @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+ the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesInstallPpi (\r
+ IN EFI_PEI_PPI_DESCRIPTOR *PpiList\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->InstallPpi (PeiServices, PpiList);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to replace an entry in the PPI database with an alternate entry.\r
+\r
+ @param OldPpi Pointer to the old PEI PPI Descriptors.\r
+ @param NewPpi Pointer to the new PEI PPI Descriptors.\r
+\r
+ @retval EFI_SUCCESS The interface was successfully installed.\r
+ @retval EFI_INVALID_PARAMETER The OldPpi or NewPpi is NULL.\r
+ @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+ the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+ @retval EFI_NOT_FOUND The PPI for which the reinstallation was requested has not been installed.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesReinstallPpi (\r
+ IN EFI_PEI_PPI_DESCRIPTOR *OldPpi,\r
+ IN EFI_PEI_PPI_DESCRIPTOR *NewPpi\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->ReInstallPpi (PeiServices, OldPpi, NewPpi);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to discover a given instance of an interface.\r
+\r
+ @param Guid A pointer to the GUID whose corresponding interface needs to be found.\r
+ @param Instance The N-th instance of the interface that is required.\r
+ @param PpiDescriptor A pointer to instance of the EFI_PEI_PPI_DESCRIPTOR.\r
+ @param Ppi A pointer to the instance of the interface.\r
+\r
+ @retval EFI_SUCCESS The interface was successfully returned.\r
+ @retval EFI_NOT_FOUND The PPI descriptor is not found in the database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesLocatePpi (\r
+ IN EFI_GUID *Guid,\r
+ IN UINTN Instance,\r
+ IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor,\r
+ IN OUT VOID **Ppi\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->LocatePpi (PeiServices, Guid, Instance, PpiDescriptor, Ppi);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to register a given service to be invoked\r
+ when another service is installed or reinstalled.\r
+\r
+ @param NotifyList A pointer to the list of notification interfaces that the caller shall install.\r
+\r
+ @retval EFI_SUCCESS The interface was successfully installed.\r
+ @retval EFI_INVALID_PARAMETER The NotifyList pointer is NULL.\r
+ @retval EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have\r
+ the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesNotifyPpi (\r
+ IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyList\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->NotifyPpi (PeiServices, NotifyList);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to ascertain the present value of the boot mode. \r
+\r
+ @param BootMode A pointer to contain the value of the boot mode.\r
+\r
+ @retval EFI_SUCCESS The boot mode was returned successfully.\r
+ @retval EFI_INVALID_PARAMETER BootMode is NULL.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesGetBootMode (\r
+ IN OUT EFI_BOOT_MODE *BootMode\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->GetBootMode (PeiServices, BootMode);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to update the boot mode variable. \r
+\r
+ @param BootMode The value of the boot mode to set.\r
+\r
+ @retval EFI_SUCCESS The value was successfully updated\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesSetBootMode (\r
+ IN EFI_BOOT_MODE BootMode\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->SetBootMode (PeiServices, BootMode);\r
+}\r
+\r
+/**\r
+ This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
+\r
+ @param HobList A pointer to the list of HOBs that the PEI Foundation will initialize.\r
+\r
+ @retval EFI_SUCCESS The list was successfully returned.\r
+ @retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesGetHobList (\r
+ IN OUT VOID **HobList\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->GetHobList (PeiServices, HobList);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to create various types of HOBs.\r
+\r
+ @param Type The type of HOB to be installed.\r
+ @param Length The length of the HOB to be added.\r
+ @param Hob The address of a pointer that will contain the HOB header.\r
+\r
+ @retval EFI_SUCCESS The HOB was successfully created.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesCreateHob (\r
+ IN UINT16 Type,\r
+ IN UINT16 Length,\r
+ IN OUT VOID **Hob\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->CreateHob (PeiServices, Type, Length, Hob);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to discover additional firmware volumes.\r
+\r
+ @param Instance This instance of the firmware volume to find.\r
+ The value 0 is the Boot Firmware Volume (BFV).\r
+ @param FwVolHeader Pointer to the firmware volume header of the volume to return.\r
+\r
+ @retval EFI_SUCCESS The volume was found.\r
+ @retval EFI_NOT_FOUND The volume was not found.\r
+ @retval EFI_INVALID_PARAMETER FwVolHeader is NULL.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindNextVolume (\r
+ IN UINTN Instance,\r
+ IN OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->FfsFindNextVolume (PeiServices, Instance, FwVolHeader);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to discover additional firmware files.\r
+\r
+ @param SearchType A filter to find files only of this type.\r
+ @param FwVolHeader Pointer to the firmware volume header of the volume to search.\r
+ This parameter must point to a valid FFS volume.\r
+ @param FileHeader Pointer to the current file from which to begin searching.\r
+\r
+ @retval EFI_SUCCESS The file was found.\r
+ @retval EFI_NOT_FOUND The file was not found.\r
+ @retval EFI_NOT_FOUND The header checksum was not zero.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindNextFile (\r
+ IN EFI_FV_FILETYPE SearchType,\r
+ IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader,\r
+ IN OUT EFI_FFS_FILE_HEADER **FileHeader\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->FfsFindNextFile (PeiServices, SearchType, FwVolHeader, FileHeader);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
+\r
+ @param SearchType The value of the section type to find.\r
+ @param FfsFileHeader A pointer to the file header that contains the set of sections to be searched.\r
+ @param SectionData A pointer to the discovered section, if successful.\r
+\r
+ @retval EFI_SUCCESS The section was found.\r
+ @retval EFI_NOT_FOUND The section was not found.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindSectionData (\r
+ IN EFI_SECTION_TYPE SectionType,\r
+ IN EFI_FFS_FILE_HEADER *FfsFileHeader,\r
+ IN OUT VOID **SectionData\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->FfsFindSectionData (PeiServices, SectionType, FfsFileHeader, SectionData);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to register the permanent memory configuration\r
+ that has been initialized with the PEI Foundation.\r
+\r
+ @param MemoryBegin The value of a region of installed memory.\r
+ @param MemoryLength The corresponding length of a region of installed memory.\r
+\r
+ @retval EFI_SUCCESS The region was successfully installed in a HOB.\r
+ @retval EFI_INVALID_PARAMETER MemoryBegin and MemoryLength are illegal for this system.\r
+ @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesInstallPeiMemory (\r
+ IN EFI_PHYSICAL_ADDRESS MemoryBegin,\r
+ IN UINT64 MemoryLength\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->InstallPeiMemory (PeiServices, MemoryBegin, MemoryLength);\r
+}\r
+\r
+/**\r
+ This service enables PEIMs to allocate memory after the permanent memory has been installed by a PEIM.\r
+\r
+ @param MemoryType Type of memory to allocate.\r
+ @param Pages Number of pages to allocate.\r
+ @param Memory Pointer of memory allocated.\r
+\r
+ @retval EFI_SUCCESS The memory range was successfully allocated.\r
+ @retval EFI_INVALID_PARAMETER Type is not equal to AllocateAnyPages.\r
+ @retval EFI_NOT_AVAILABLE_YET Called with permanent memory not available.\r
+ @retval EFI_OUT_OF_RESOURCES The pages could not be allocated.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesAllocatePages (\r
+ IN EFI_MEMORY_TYPE MemoryType,\r
+ IN UINTN Pages,\r
+ IN OUT EFI_PHYSICAL_ADDRESS *Memory\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->AllocatePages (PeiServices, MemoryType, Pages, Memory);\r
+}\r
+\r
+/**\r
+ This service allocates memory from the Hand-Off Block (HOB) heap.\r
+\r
+ @param Size The number of bytes to allocate from the pool.\r
+ @param Buffer If the call succeeds, a pointer to a pointer to the allocated buffer;\r
+ undefined otherwise.\r
+\r
+ @retval EFI_SUCCESS The allocation was successful\r
+ @retval EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesAllocatePool (\r
+ IN UINTN Size,\r
+ OUT VOID **Buffer\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->AllocatePool (PeiServices, Size, Buffer);\r
+}\r
+\r
+/**\r
+ This service resets the entire platform, including all processors and devices, and reboots the system. \r
+\r
+ @retval EFI_NOT_AVAILABLE_YET The service has not been installed yet.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesResetSystem (\r
+ VOID\r
+ )\r
+{\r
+ EFI_PEI_SERVICES **PeiServices;\r
+ \r
+ PeiServices = GetPeiServicesTablePointer ();\r
+ return (*PeiServices)->PeiResetSystem (PeiServices);\r
+}\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+-->\r
+<LibraryModuleBuildDescription xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0 http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">\r
+ <MbdLibHeader>\r
+ <BaseName>PeiServicesLib</BaseName>\r
+ <Guid>a804239b-4155-446f-acc8-f0825d74908c</Guid>\r
+ <Version>0</Version>\r
+ <Description>FIX ME!</Description>\r
+ <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>\r
+ <License>\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ </License>\r
+ <Created>2006-03-09 23:12</Created>\r
+ <Modified>2006-03-19 15:17</Modified>\r
+ </MbdLibHeader>\r
+</LibraryModuleBuildDescription>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+-->\r
+<LibraryModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0 http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">\r
+ <MsaLibHeader>\r
+ <BaseName>PeiServicesLib</BaseName>\r
+ <ModuleType>PEIM</ModuleType>\r
+ <ComponentType>LIBRARY</ComponentType>\r
+ <Guid>a804239b-4155-446f-acc8-f0825d74908c</Guid>\r
+ <Version>0</Version>\r
+ <Abstract>Component description file for the entry point to a EFIDXE Drivers</Abstract>\r
+ <Description>FIX ME!</Description>\r
+ <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>\r
+ <License>\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ </License>\r
+ <Created>2006-03-09 23:12</Created>\r
+ <Updated>2006-03-19 15:17</Updated>\r
+ <Specification>0</Specification>\r
+ </MsaLibHeader>\r
+ <LibraryClassDefinitions>\r
+ <LibraryClass Usage="ALWAYS_PRODUCED">PeiServicesLib</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
+ </LibraryClassDefinitions>\r
+ <SourceFiles>\r
+ <Filename>PeiServicesLib.c</Filename>\r
+ </SourceFiles>\r
+ <Includes>\r
+ <PackageName>MdePkg</PackageName>\r
+ </Includes>\r
+</LibraryModuleSurfaceArea>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?><!-- Copyright (c) 2006, Intel Corporation \r
+All rights reserved. This program and the accompanying materials \r
+are licensed and made available under the terms and conditions of the BSD License \r
+which accompanies this distribution. The full text of the license may be found at \r
+http://opensource.org/licenses/bsd-license.php \r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->\r
+<project basedir="." default="PeiServicesLib"><!--Apply external ANT tasks-->\r
+ <taskdef resource="GenBuild.tasks"/>\r
+ <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
+ <property environment="env"/>\r
+ <property name="WORKSPACE_DIR" value="${env.WORKSPACE}"/>\r
+ <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml"/><!--MODULE_RELATIVE PATH is relative to PACKAGE_DIR-->\r
+ <property name="MODULE_RELATIVE_PATH" value="Library/PeiServicesLib"/>\r
+ <property name="MODULE_DIR" value="${PACKAGE_DIR}/${MODULE_RELATIVE_PATH}"/>\r
+ <property name="COMMON_FILE" value="${WORKSPACE_DIR}/Tools/Conf/Common.xml"/>\r
+ <target name="PeiServicesLib">\r
+ <GenBuild baseName="PeiServicesLib" mbdFilename="${MODULE_DIR}/PeiServicesLib.mbd" msaFilename="${MODULE_DIR}/PeiServicesLib.msa"/>\r
+ </target>\r
+ <target depends="PeiServicesLib_clean" name="clean"/>\r
+ <target depends="PeiServicesLib_cleanall" name="cleanall"/>\r
+ <target name="PeiServicesLib_clean">\r
+ <OutputDirSetup baseName="PeiServicesLib" mbdFilename="${MODULE_DIR}/PeiServicesLib.mbd" msaFilename="${MODULE_DIR}/PeiServicesLib.msa"/>\r
+ <if>\r
+ <available file="${DEST_DIR_OUTPUT}/PeiServicesLib_build.xml"/>\r
+ <then>\r
+ <ant antfile="${DEST_DIR_OUTPUT}/PeiServicesLib_build.xml" target="clean"/>\r
+ </then>\r
+ </if>\r
+ <delete dir="${DEST_DIR_OUTPUT}" excludes="*.xml"/>\r
+ </target>\r
+ <target name="PeiServicesLib_cleanall">\r
+ <OutputDirSetup baseName="PeiServicesLib" mbdFilename="${MODULE_DIR}/PeiServicesLib.mbd" msaFilename="${MODULE_DIR}/PeiServicesLib.msa"/>\r
+ <if>\r
+ <available file="${DEST_DIR_OUTPUT}/PeiServicesLib_build.xml"/>\r
+ <then>\r
+ <ant antfile="${DEST_DIR_OUTPUT}/PeiServicesLib_build.xml" target="cleanall"/>\r
+ </then>\r
+ </if>\r
+ <delete dir="${DEST_DIR_OUTPUT}"/>\r
+ <delete dir="${DEST_DIR_DEBUG}"/>\r
+ <delete>\r
+ <fileset dir="${BIN_DIR}" includes="**PeiServicesLib*"/>\r
+ </delete>\r
+ </target>\r
+</project>
\ No newline at end of file
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
- <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+ <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
\r
<ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
<ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
<ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
- <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+ <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
<ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
<ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
\r
<ModuleSA Arch="X64" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
<ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
<ModuleSA Arch="X64" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
- <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+ <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
<ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
<ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
\r
<ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
<ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
<ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
- <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+ <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
<ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
<ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
\r
</ModuleSA> \r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
</ModuleSA> \r
- <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+ <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
</ModuleSA> \r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
</ModuleSA> \r
</ModuleSA> \r
<ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
</ModuleSA> \r
- <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+ <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
</ModuleSA> \r
<ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
</ModuleSA> \r
</ModuleSA> \r
<ModuleSA Arch="X64" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
</ModuleSA> \r
- <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+ <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
</ModuleSA> \r
<ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
</ModuleSA> \r
</ModuleSA> \r
<ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
</ModuleSA> \r
- <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+ <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
</ModuleSA> \r
<ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
</ModuleSA> \r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
- <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+ <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
\r
</ModuleSA> \r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
</ModuleSA> \r
- <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+ <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
</ModuleSA> \r
<ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
</ModuleSA> \r
<IncludeHeader>Include/Library/PeiCoreEntryPoint.h</IncludeHeader>\r
</LibraryClassDeclaration>\r
<LibraryClassDeclaration>\r
- <LibraryClass>PeiCoreLib</LibraryClass>\r
- <IncludeHeader>Include/Library/PeiCoreLib.h</IncludeHeader>\r
+ <LibraryClass>PeiServicesLib</LibraryClass>\r
+ <IncludeHeader>Include/Library/PeiServicesLib.h</IncludeHeader>\r
</LibraryClassDeclaration>\r
<LibraryClassDeclaration>\r
<LibraryClass>PeimEntryPoint</LibraryClass>\r
<Filename>Library/PeiCoreEntryPoint/PeiCoreEntryPoint.msa</Filename>\r
</MsaFile>\r
<MsaFile>\r
- <Filename>Library/PeiCoreLib/PeiCoreLib.msa</Filename>\r
+ <Filename>Library/PeiServicesLib/PeiServicesLib.msa</Filename>\r
</MsaFile>\r
<MsaFile>\r
<Filename>Library/PeiHobLib/PeiHobLib.msa</Filename>\r