Home
last modified time | relevance | path

Searched refs:ResourceDescriptor (Results 1 – 25 of 26) sorted by relevance

12

/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/FspSupport/Library/PeiFspHobProcessLibVlv2/
DFspHobProcessLibVlv2.c191 DEBUG((DEBUG_INFO, "\nResourceType: 0x%x\n", Hob.ResourceDescriptor->ResourceType)); in FspHobProcessForMemoryResource()
192 if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) || in FspHobProcessForMemoryResource()
193 (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_RESERVED)) { in FspHobProcessForMemoryResource()
194 DEBUG((DEBUG_INFO, "ResourceAttribute: 0x%x\n", Hob.ResourceDescriptor->ResourceAttribute)); in FspHobProcessForMemoryResource()
195 DEBUG((DEBUG_INFO, "PhysicalStart: 0x%x\n", Hob.ResourceDescriptor->PhysicalStart)); in FspHobProcessForMemoryResource()
196 DEBUG((DEBUG_INFO, "ResourceLength: 0x%x\n", Hob.ResourceDescriptor->ResourceLength)); in FspHobProcessForMemoryResource()
197 DEBUG((DEBUG_INFO, "Owner: %g\n\n", &Hob.ResourceDescriptor->Owner)); in FspHobProcessForMemoryResource()
200 …if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) // Found the low memory … in FspHobProcessForMemoryResource()
201 && (Hob.ResourceDescriptor->PhysicalStart >= BASE_1MB) in FspHobProcessForMemoryResource()
202 … && (Hob.ResourceDescriptor->PhysicalStart + Hob.ResourceDescriptor->ResourceLength <= BASE_4GB)) { in FspHobProcessForMemoryResource()
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/
DMemoryInitPeiLib.c104 if ((NextHob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) && in MemoryPeim()
105 (PcdGet64 (PcdSystemMemoryBase) >= NextHob.ResourceDescriptor->PhysicalStart) && in MemoryPeim()
106 …(NextHob.ResourceDescriptor->PhysicalStart + NextHob.ResourceDescriptor->ResourceLength <= PcdGet6… in MemoryPeim()
139 if ((NextHob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) && in MemoryPeim()
140 (PcdGet64 (PcdFdBaseAddress) >= NextHob.ResourceDescriptor->PhysicalStart) && in MemoryPeim()
141 … (FdTop <= NextHob.ResourceDescriptor->PhysicalStart + NextHob.ResourceDescriptor->ResourceLength)) in MemoryPeim()
143 ResourceAttributes = NextHob.ResourceDescriptor->ResourceAttribute; in MemoryPeim()
144 ResourceLength = NextHob.ResourceDescriptor->ResourceLength; in MemoryPeim()
145 ResourceTop = NextHob.ResourceDescriptor->PhysicalStart + ResourceLength; in MemoryPeim()
147 if (PcdGet64 (PcdFdBaseAddress) == NextHob.ResourceDescriptor->PhysicalStart) { in MemoryPeim()
[all …]
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Library/BaseFspPlatformLib/
DFspPlatformMemory.c49 if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_RESERVED) && \ in FspGetResourceDescriptorByOwner()
50 (CompareGuid (&Hob.ResourceDescriptor->Owner, OwnerGuid))) { in FspGetResourceDescriptorByOwner()
51 return Hob.ResourceDescriptor; in FspGetResourceDescriptorByOwner()
106 if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) || in FspGetSystemMemorySize()
107 ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_RESERVED) && in FspGetSystemMemorySize()
108 (Hob.ResourceDescriptor->ResourceAttribute == ResourceAttribute))) { in FspGetSystemMemorySize()
112 if (Hob.ResourceDescriptor->PhysicalStart >= BASE_1MB && in FspGetSystemMemorySize()
113 Hob.ResourceDescriptor->PhysicalStart < (EFI_PHYSICAL_ADDRESS) BASE_4GB) { in FspGetSystemMemorySize()
114 *LowMemoryLength += (UINT64) (Hob.ResourceDescriptor->ResourceLength); in FspGetSystemMemorySize()
115 } else if (Hob.ResourceDescriptor->PhysicalStart >= (EFI_PHYSICAL_ADDRESS) BASE_4GB) { in FspGetSystemMemorySize()
[all …]
/device/linaro/bootloader/edk2/IntelFsp2WrapperPkg/Library/PeiFspWrapperHobProcessLibSample/
DFspWrapperHobProcessLibSample.c184 DEBUG((DEBUG_INFO, "\nResourceType: 0x%x\n", Hob.ResourceDescriptor->ResourceType)); in PostFspmHobProcess()
185 if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) || in PostFspmHobProcess()
186 (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_RESERVED)) { in PostFspmHobProcess()
187 DEBUG((DEBUG_INFO, "ResourceAttribute: 0x%x\n", Hob.ResourceDescriptor->ResourceAttribute)); in PostFspmHobProcess()
188 DEBUG((DEBUG_INFO, "PhysicalStart: 0x%x\n", Hob.ResourceDescriptor->PhysicalStart)); in PostFspmHobProcess()
189 DEBUG((DEBUG_INFO, "ResourceLength: 0x%x\n", Hob.ResourceDescriptor->ResourceLength)); in PostFspmHobProcess()
190 DEBUG((DEBUG_INFO, "Owner: %g\n\n", &Hob.ResourceDescriptor->Owner)); in PostFspmHobProcess()
193 …if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) // Found the low memory … in PostFspmHobProcess()
194 && (Hob.ResourceDescriptor->PhysicalStart >= BASE_1MB) in PostFspmHobProcess()
195 … && (Hob.ResourceDescriptor->PhysicalStart + Hob.ResourceDescriptor->ResourceLength <= BASE_4GB)) { in PostFspmHobProcess()
[all …]
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/Library/PeiFspHobProcessLibSample/
DFspHobProcessLibSample.c182 DEBUG((DEBUG_INFO, "\nResourceType: 0x%x\n", Hob.ResourceDescriptor->ResourceType)); in FspHobProcessForMemoryResource()
183 if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) || in FspHobProcessForMemoryResource()
184 (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_RESERVED)) { in FspHobProcessForMemoryResource()
185 DEBUG((DEBUG_INFO, "ResourceAttribute: 0x%x\n", Hob.ResourceDescriptor->ResourceAttribute)); in FspHobProcessForMemoryResource()
186 DEBUG((DEBUG_INFO, "PhysicalStart: 0x%x\n", Hob.ResourceDescriptor->PhysicalStart)); in FspHobProcessForMemoryResource()
187 DEBUG((DEBUG_INFO, "ResourceLength: 0x%x\n", Hob.ResourceDescriptor->ResourceLength)); in FspHobProcessForMemoryResource()
188 DEBUG((DEBUG_INFO, "Owner: %g\n\n", &Hob.ResourceDescriptor->Owner)); in FspHobProcessForMemoryResource()
191 …if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) // Found the low memory … in FspHobProcessForMemoryResource()
192 && (Hob.ResourceDescriptor->PhysicalStart >= BASE_1MB) in FspHobProcessForMemoryResource()
193 … && (Hob.ResourceDescriptor->PhysicalStart + Hob.ResourceDescriptor->ResourceLength <= BASE_4GB)) { in FspHobProcessForMemoryResource()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/Binary/D02/MemoryInitPei/
DMemoryInitPeiLib.c142 if ((NextHob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) && in MemoryPeim()
143 (PcdGet64(PcdFdBaseAddress) >= NextHob.ResourceDescriptor->PhysicalStart) && in MemoryPeim()
144 … (FdTop <= NextHob.ResourceDescriptor->PhysicalStart + NextHob.ResourceDescriptor->ResourceLength)) in MemoryPeim()
146 ResourceAttributes = NextHob.ResourceDescriptor->ResourceAttribute; in MemoryPeim()
147 ResourceLength = NextHob.ResourceDescriptor->ResourceLength; in MemoryPeim()
148 ResourceTop = NextHob.ResourceDescriptor->PhysicalStart + ResourceLength; in MemoryPeim()
150 if (PcdGet64(PcdFdBaseAddress) == NextHob.ResourceDescriptor->PhysicalStart) { in MemoryPeim()
152 …NextHob.ResourceDescriptor->ResourceAttribute = ResourceAttributes & ~EFI_RESOURCE_ATTRIBUTE_PRESE… in MemoryPeim()
161 NextHob.ResourceDescriptor->PhysicalStart += PcdGet32(PcdFdSize); in MemoryPeim()
162 NextHob.ResourceDescriptor->ResourceLength -= PcdGet32(PcdFdSize); in MemoryPeim()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/HiKey/Library/HiKeyLib/
DHiKeyMem.c113 if ((NextHob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) && in ArmPlatformGetVirtualMemoryMap()
114 (HiKeyReservedMemoryBuffer[Index].Offset >= NextHob.ResourceDescriptor->PhysicalStart) && in ArmPlatformGetVirtualMemoryMap()
116 NextHob.ResourceDescriptor->PhysicalStart + NextHob.ResourceDescriptor->ResourceLength)) { in ArmPlatformGetVirtualMemoryMap()
117 ResourceAttributes = NextHob.ResourceDescriptor->ResourceAttribute; in ArmPlatformGetVirtualMemoryMap()
118 ResourceLength = NextHob.ResourceDescriptor->ResourceLength; in ArmPlatformGetVirtualMemoryMap()
119 ResourceTop = NextHob.ResourceDescriptor->PhysicalStart + ResourceLength; in ArmPlatformGetVirtualMemoryMap()
128 …NextHob.ResourceDescriptor->ResourceLength = HiKeyReservedMemoryBuffer[Index].Offset - NextHob.Res… in ArmPlatformGetVirtualMemoryMap()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformPei/
DMemoryCallback.c78 if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) {
82 if (Hob.ResourceDescriptor->PhysicalStart >= 0x100000 &&
83 Hob.ResourceDescriptor->PhysicalStart < (EFI_PHYSICAL_ADDRESS) 0x100000000) {
84 *LowMemoryLength += (UINT64) (Hob.ResourceDescriptor->ResourceLength);
85 } else if (Hob.ResourceDescriptor->PhysicalStart >= (EFI_PHYSICAL_ADDRESS) 0x100000000) {
86 *HighMemoryLength += (UINT64) (Hob.ResourceDescriptor->ResourceLength);
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Library/ArmPlatformLibHisilicon/
DArmPlatformLibMem.c73 if (NextHob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) in ArmPlatformGetVirtualMemoryMap()
75 if (NextHob.ResourceDescriptor->PhysicalStart > BASE_4GB) in ArmPlatformGetVirtualMemoryMap()
77 VirtualMemoryTable[++Index].PhysicalBase = NextHob.ResourceDescriptor->PhysicalStart; in ArmPlatformGetVirtualMemoryMap()
78 VirtualMemoryTable[Index].VirtualBase = NextHob.ResourceDescriptor->PhysicalStart; in ArmPlatformGetVirtualMemoryMap()
79 VirtualMemoryTable[Index].Length =NextHob.ResourceDescriptor->ResourceLength; in ArmPlatformGetVirtualMemoryMap()
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/Library/HiKey960Lib/
DHiKey960Mem.c125 if ((NextHob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) && in ArmPlatformGetVirtualMemoryMap()
126 (HiKey960ReservedMemoryBuffer[Index].Offset >= NextHob.ResourceDescriptor->PhysicalStart) && in ArmPlatformGetVirtualMemoryMap()
128 NextHob.ResourceDescriptor->PhysicalStart + NextHob.ResourceDescriptor->ResourceLength)) in ArmPlatformGetVirtualMemoryMap()
130 ResourceAttributes = NextHob.ResourceDescriptor->ResourceAttribute; in ArmPlatformGetVirtualMemoryMap()
131 ResourceLength = NextHob.ResourceDescriptor->ResourceLength; in ArmPlatformGetVirtualMemoryMap()
132 ResourceTop = NextHob.ResourceDescriptor->PhysicalStart + ResourceLength; in ArmPlatformGetVirtualMemoryMap()
143 NextHob.ResourceDescriptor->ResourceLength = HiKey960ReservedMemoryBuffer[Index].Offset - in ArmPlatformGetVirtualMemoryMap()
144 NextHob.ResourceDescriptor->PhysicalStart; in ArmPlatformGetVirtualMemoryMap()
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/
DHob.c167 …(Hob.ResourceDescriptor->ResourceType < EFI_RESOURCE_MAX_MEMORY_TYPE) ? mHobResourceType[Hob.Resou… in EblHobCmd()
168 &Hob.ResourceDescriptor->Owner, in EblHobCmd()
169 Hob.ResourceDescriptor->PhysicalStart, in EblHobCmd()
170 Hob.ResourceDescriptor->ResourceLength, in EblHobCmd()
171 Hob.ResourceDescriptor->ResourceAttribute in EblHobCmd()
/device/linaro/bootloader/edk2/IntelFspPkg/Library/BaseFspPlatformLib/
DFspPlatformMemory.c54 if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { in FspGetSystemMemorySize()
58 if (Hob.ResourceDescriptor->PhysicalStart >= BASE_1MB && in FspGetSystemMemorySize()
59 Hob.ResourceDescriptor->PhysicalStart < (EFI_PHYSICAL_ADDRESS) BASE_4GB) { in FspGetSystemMemorySize()
60 *LowMemoryLength += (UINT64) (Hob.ResourceDescriptor->ResourceLength); in FspGetSystemMemorySize()
61 } else if (Hob.ResourceDescriptor->PhysicalStart >= (EFI_PHYSICAL_ADDRESS) BASE_4GB) { in FspGetSystemMemorySize()
62 *HighMemoryLength += (UINT64) (Hob.ResourceDescriptor->ResourceLength); in FspGetSystemMemorySize()
/device/linaro/bootloader/edk2/IntelFsp2WrapperPkg/Library/PeiFspWrapperApiTestLib/
DFspWrapperApiTest.c45 if ((CompareGuid (&Hob.ResourceDescriptor->Owner, &gFspBootLoaderTolumHobGuid))) { in TestFspMemoryInitApiOutput()
48 …SetMem ((VOID *)(UINTN)Hob.ResourceDescriptor->PhysicalStart, (UINTN)Hob.ResourceDescriptor->Resou… in TestFspMemoryInitApiOutput()
/device/linaro/bootloader/edk2/EmulatorPkg/PlatformSmbiosDxe/
DPlatformSmbiosDxe.c67 if (HobPtr.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { in CreatePlatformSmbiosMemoryRecords()
68 gSmbiosType19Template.ExtendedStartingAddress = HobPtr.ResourceDescriptor->PhysicalStart; in CreatePlatformSmbiosMemoryRecords()
70 HobPtr.ResourceDescriptor->PhysicalStart + in CreatePlatformSmbiosMemoryRecords()
71 HobPtr.ResourceDescriptor->ResourceLength - 1; in CreatePlatformSmbiosMemoryRecords()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/
DMemoryPeim.c281 if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) {
285 if (Hob.ResourceDescriptor->PhysicalStart >= 0x100000 &&
286 Hob.ResourceDescriptor->PhysicalStart < (EFI_PHYSICAL_ADDRESS) 0x100000000) {
287 *LowMemoryLength += (UINT64) (Hob.ResourceDescriptor->ResourceLength);
288 } else if (Hob.ResourceDescriptor->PhysicalStart >= (EFI_PHYSICAL_ADDRESS) 0x100000000) {
289 *HighMemoryLength += (UINT64) (Hob.ResourceDescriptor->ResourceLength);
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/MpInitLib/
DPeiMpLib.c213 if ((Hob.ResourceDescriptor->PhysicalStart < BASE_1MB) && in GetWakeupBuffer()
214 (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) && in GetWakeupBuffer()
215 ((Hob.ResourceDescriptor->ResourceAttribute & in GetWakeupBuffer()
224 …WakeupBufferEnd = (UINTN) (Hob.ResourceDescriptor->PhysicalStart + Hob.ResourceDescriptor->Resourc… in GetWakeupBuffer()
236 if (WakeupBufferStart < Hob.ResourceDescriptor->PhysicalStart) { in GetWakeupBuffer()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/
DAcpiVariableThunkPlatform.c101 if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { in S3ReadyThunkPlatform()
105 if (Hob.ResourceDescriptor->PhysicalStart >= 0x100000) { in S3ReadyThunkPlatform()
106 MemoryLength += Hob.ResourceDescriptor->ResourceLength; in S3ReadyThunkPlatform()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/
DUefiCapsule.c633 EFI_HOB_RESOURCE_DESCRIPTOR *ResourceDescriptor; in BuildMemoryResourceDescriptor() local
643 ResourceDescriptor = (EFI_HOB_RESOURCE_DESCRIPTOR *) Hob.Raw; in BuildMemoryResourceDescriptor()
644 if (ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { in BuildMemoryResourceDescriptor()
686 ResourceDescriptor = (EFI_HOB_RESOURCE_DESCRIPTOR *) Hob.Raw; in BuildMemoryResourceDescriptor()
687 if (ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { in BuildMemoryResourceDescriptor()
689 … Index, ResourceDescriptor->PhysicalStart, ResourceDescriptor->ResourceLength)); in BuildMemoryResourceDescriptor()
690 MemoryResource[Index].PhysicalStart = ResourceDescriptor->PhysicalStart; in BuildMemoryResourceDescriptor()
691 MemoryResource[Index].ResourceLength = ResourceDescriptor->ResourceLength; in BuildMemoryResourceDescriptor()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/Hob/
DPeiHobLib.c223 Hob.ResourceDescriptor->ResourceType = ResourceType; in BuildHobResourceDescriptor()
224 Hob.ResourceDescriptor->ResourceAttribute = ResourceAttribute; in BuildHobResourceDescriptor()
225 Hob.ResourceDescriptor->PhysicalStart = PhysicalStart; in BuildHobResourceDescriptor()
226 Hob.ResourceDescriptor->ResourceLength = NumberOfBytes; in BuildHobResourceDescriptor()
228 Hob.ResourceDescriptor++; in BuildHobResourceDescriptor()
/device/linaro/bootloader/edk2/MdePkg/Include/Pi/
DPiHob.h468 EFI_HOB_RESOURCE_DESCRIPTOR *ResourceDescriptor; member
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Dispatcher/
DDispatcher.c302 ResourceHob = Hob.ResourceDescriptor; in PeiLoadFixAddressHook()
320 NextResourceHob = NextHob.ResourceDescriptor; in PeiLoadFixAddressHook()
372 NextResourceHob = NextHob.ResourceDescriptor; in PeiLoadFixAddressHook()
437 ResourceHob = Hob.ResourceDescriptor; in PeiLoadFixAddressHook()
471 ResourceHob = Hob.ResourceDescriptor; in PeiLoadFixAddressHook()
509 …ResourceHob = Hob.ResourceDescriptor; … in PeiLoadFixAddressHook()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Include/
DPeiHob.h240 EFI_HOB_RESOURCE_DESCRIPTOR *ResourceDescriptor; member
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/DxeSmm/AcpiSmm/
DAcpiSmmPlatform.c323 if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { in InitAcpiSmmPlatform()
327 if (Hob.ResourceDescriptor->PhysicalStart >= 0x100000) { in InitAcpiSmmPlatform()
328 MemoryLength += (UINTN)Hob.ResourceDescriptor->ResourceLength; in InitAcpiSmmPlatform()
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Pei/PlatformInit/
DMrcWrapper.c1546 if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { in InfoPostInstallMemory()
1550 if (Hob.ResourceDescriptor->PhysicalStart >= 0x100000) { in InfoPostInstallMemory()
1551 CalcLength += (UINT64) (Hob.ResourceDescriptor->ResourceLength); in InfoPostInstallMemory()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Gcd/
DGcd.c2139 ResourceHob = Hob.ResourceDescriptor; in CoreInitializeMemoryServices()
2210 if (Hob.ResourceDescriptor == PhitResourceHob) { in CoreInitializeMemoryServices()
2223 ResourceHob = Hob.ResourceDescriptor; in CoreInitializeMemoryServices()
2384 ResourceHob = Hob.ResourceDescriptor; in CoreInitializeGcdServices()

12