OvmfPkg/PlatformInitLib: Add hob functions
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3863 In this patch of PlatformInitLib, below hob functions are introduced: - PlatformAddIoMemoryBaseSizeHob - PlatformAddIoMemoryRangeHob - PlatformAddMemoryBaseSizeHob - PlatformAddMemoryRangeHob - PlatformAddReservedMemoryBaseSizeHob They correspond the below functions in OvmfPkg/PlatformPei: - AddIoMemoryBaseSizeHob - AddIoMemoryRangeHob - AddMemoryBaseSizeHob - AddMemoryRangeHob - AddReservedMemoryBaseSizeHob After above hob functions are introduced in PlatformInitLib, OvmfPkg/PlatformPei is refactored with this library. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Erdem Aktas <erdemaktas@google.com> Cc: James Bottomley <jejb@linux.ibm.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Signed-off-by: Min Xu <min.m.xu@intel.com>
This commit is contained in:
@@ -96,4 +96,40 @@ PlatformDebugDumpCmos (
|
||||
VOID
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
PlatformAddIoMemoryBaseSizeHob (
|
||||
IN EFI_PHYSICAL_ADDRESS MemoryBase,
|
||||
IN UINT64 MemorySize
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
PlatformAddIoMemoryRangeHob (
|
||||
IN EFI_PHYSICAL_ADDRESS MemoryBase,
|
||||
IN EFI_PHYSICAL_ADDRESS MemoryLimit
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
PlatformAddMemoryBaseSizeHob (
|
||||
IN EFI_PHYSICAL_ADDRESS MemoryBase,
|
||||
IN UINT64 MemorySize
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
PlatformAddMemoryRangeHob (
|
||||
IN EFI_PHYSICAL_ADDRESS MemoryBase,
|
||||
IN EFI_PHYSICAL_ADDRESS MemoryLimit
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
PlatformAddReservedMemoryBaseSizeHob (
|
||||
IN EFI_PHYSICAL_ADDRESS MemoryBase,
|
||||
IN UINT64 MemorySize,
|
||||
IN BOOLEAN Cacheable
|
||||
);
|
||||
|
||||
#endif // PLATFORM_INIT_LIB_H_
|
||||
|
Reference in New Issue
Block a user