mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
MdeModulePkg: Add BuildResourceDescriptor2Hob to HobLibs
Add BuildResourceDescriptor2Hob to HobLib implementations as described in PI 1.10 specification. Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
This commit is contained in:
parent
430ee00cab
commit
a9687f1660
1 changed files with 28 additions and 0 deletions
|
|
@ -231,6 +231,34 @@ BuildResourceDescriptorWithOwnerHob (
|
|||
ASSERT (FALSE);
|
||||
}
|
||||
|
||||
/**
|
||||
Builds a HOB that describes a chunk of system memory with memory attributes.
|
||||
|
||||
This function builds a HOB that describes a chunk of system memory.
|
||||
If there is no additional space for HOB creation, then ASSERT().
|
||||
|
||||
@param ResourceType The type of resource described by this HOB.
|
||||
@param ResourceCapabilities The resource capabilities of the memory described by this HOB.
|
||||
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
||||
@param ResourceLength The length of the memory described by this HOB in bytes.
|
||||
@param ResourceMemoryAttributes The memory attribute for the memory described by this HOB.
|
||||
@param OwnerGUID GUID for the owner of this resource.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BuildResourceDescriptor2Hob (
|
||||
IN EFI_RESOURCE_TYPE ResourceType,
|
||||
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceCapabilities,
|
||||
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
||||
IN UINT64 ResourceLength,
|
||||
IN UINT64 ResourceMemoryAttributes,
|
||||
IN EFI_GUID *OwnerGUID OPTIONAL
|
||||
)
|
||||
{
|
||||
ASSERT (FALSE);
|
||||
}
|
||||
|
||||
/**
|
||||
Builds a HOB that describes a chunk of system memory.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue