58 if (Hob.Header->
HobType == EFI_HOB_TYPE_HANDOFF) {
62 if (Hob.Header->
HobType == EFI_HOB_TYPE_MEMORY_ALLOCATION) {
83 if (Hob.Header->
HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) {
84 if (Hob.ResourceDescriptor->
ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) {
89 if (Hob.Header->
HobType == EFI_HOB_TYPE_GUID_EXTENSION) {
90 if (
CompareGuid (&Hob.Guid->
Name, &gUniversalPayloadSmbios3TableGuid)) {
94 if (
CompareGuid (&Hob.Guid->
Name, &gUniversalPayloadSerialPortInfoGuid)) {
102 if (
CompareGuid (&Hob.Guid->
Name, &gUniversalPayloadPciRootBridgeInfoGuid)) {
125 INT32 Node, CustomNode;
132 CHobList = (
UINTN)HobList;
134 DEBUG ((DEBUG_INFO,
"%a() #1 \n", __func__));
141 DEBUG ((DEBUG_INFO,
" Found options node (%08X)", Node));
143 if (CustomNode > 0) {
144 DEBUG ((DEBUG_INFO,
" Found upl-custom node (%08X)", CustomNode));
145 PropertyPtr =
FdtGetProperty (FdtBase, CustomNode,
"hoblistptr", &TempLen);
146 Data64 = (UINT64 *)(PropertyPtr->Data);
148 DEBUG ((DEBUG_INFO,
" Found hob list node (%08X)", CustomNode));
149 DEBUG ((DEBUG_INFO,
" -pointer %016lX\n", CHobList));
153 Hob.Raw = (UINT8 *)CHobList;
158 while (!END_OF_HOB_LIST (Hob)) {
164 Hob.Raw = GET_NEXT_HOB (Hob);
UINTN EFIAPI AsciiStrLen(IN CONST CHAR8 *String)
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
UINTN EFIAPI CustomFdtNodeParser(IN VOID *FdtBase, IN VOID *HobList)
VOID *EFIAPI CreateHob(IN UINT16 HobType, IN UINT16 HobLength)
VOID AddNewHob(IN EFI_PEI_HOB_POINTERS *Hob)
BOOLEAN EFIAPI FitIsHobNeed(EFI_PEI_HOB_POINTERS Hob)
CONST FDT_PROPERTY *EFIAPI FdtGetProperty(IN CONST VOID *Fdt, IN INT32 NodeOffset, IN CONST CHAR8 *Name, IN INT32 *Length)
UINT64 EFIAPI Fdt64ToCpu(IN UINT64 Value)
INT32 EFIAPI FdtSubnodeOffsetNameLen(IN CONST VOID *Fdt, IN INT32 ParentOffset, IN CONST CHAR8 *Name, IN INT32 NameLength)
#define DEBUG(Expression)
#define FixedPcdGetBool(TokenName)
EFI_MEMORY_TYPE MemoryType
EFI_HOB_MEMORY_ALLOCATION_HEADER MemoryAllocationHeader
EFI_HOB_MEMORY_ALLOCATION_HEADER AllocDescriptor
EFI_RESOURCE_TYPE ResourceType