TianoCore EDK2 master
Loading...
Searching...
No Matches
PrintHob.c File Reference

Go to the source code of this file.

Data Structures

struct  GUID_HOB_PRINT_HANDLE
 

Typedefs

typedef EFI_STATUS(* GUID_HOB_PRINT) (IN UINT8 *HobRaw, IN UINT16 HobLength)
 

Functions

EFI_STATUS PrintAcpiGuidHob (IN UINT8 *HobRaw, IN UINT16 HobLength)
 
EFI_STATUS PrintSerialGuidHob (IN UINT8 *HobRaw, IN UINT16 HobLength)
 
EFI_STATUS PrintSmbios3GuidHob (IN UINT8 *HobRaw, IN UINT16 HobLength)
 
EFI_STATUS PrintSmbiosTablGuidHob (IN UINT8 *HobRaw, IN UINT16 HobLength)
 
EFI_STATUS PrintAcpiBoardInfoGuidHob (IN UINT8 *HobRaw, IN UINT16 HobLength)
 
EFI_STATUS PrintPciRootBridgeInfoGuidHob (IN UINT8 *HobRaw, IN UINT16 HobLength)
 
EFI_STATUS PrintExtraDataGuidHob (IN UINT8 *HobRaw, IN UINT16 HobLength)
 
EFI_STATUS PrintMemoryTypeInfoGuidHob (IN UINT8 *HobRaw, IN UINT16 HobLength)
 
EFI_STATUS InternalPrintGuidHob (IN VOID *HobStart, IN UINT16 HobLength)
 
EFI_STATUS InternalPrintMemoryPoolHob (IN VOID *HobStart, IN UINT16 HobLength)
 
EFI_STATUS InternalPrintHobs (IN VOID *HobStart, IN UINT16 HobLength)
 
VOID PrintHob (IN CONST VOID *HobStart)
 

Variables

GUID_HOB_PRINT_HANDLE GuidHobPrintHandleTable []
 

Detailed Description

Copyright (c) 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PrintHob.c.

Typedef Documentation

◆ GUID_HOB_PRINT

typedef EFI_STATUS(* GUID_HOB_PRINT) (IN UINT8 *HobRaw, IN UINT16 HobLength)

Definition at line 16 of file PrintHob.c.

Function Documentation

◆ InternalPrintGuidHob()

EFI_STATUS InternalPrintGuidHob ( IN VOID *  HobStart,
IN UINT16  HobLength 
)

Print the Guid Hob using related print handle function.

Parameters
[in]HobStartA pointer to the HOB of type EFI_HOB_TYPE_GUID_EXTENSION.
[in]HobLengthThe length in bytes of the HOB of type EFI_HOB_TYPE_GUID_EXTENSION.
Return values
EFI_SUCCESSIf it completed successfully.
EFI_UNSUPPORTEDIf the HOB GUID is not supported.

Definition at line 291 of file PrintHob.c.

◆ InternalPrintHobs()

EFI_STATUS InternalPrintHobs ( IN VOID *  HobStart,
IN UINT16  HobLength 
)

HOB Print Handler to print Guid Hob.

Parameters
[in]HobStartA pointer to the HOB of type EFI_HOB_TYPE_GUID_EXTENSION.
[in]HobLengthThe length in bytes of the HOB of type EFI_HOB_TYPE_GUID_EXTENSION.
Return values
EFI_SUCCESSIf it completed successfully.
EFI_UNSUPPORTEDIf the HOB type is not supported.

Definition at line 339 of file PrintHob.c.

◆ InternalPrintMemoryPoolHob()

EFI_STATUS InternalPrintMemoryPoolHob ( IN VOID *  HobStart,
IN UINT16  HobLength 
)

Print the information in MemoryPoolHob.

Parameters
[in]HobStartA pointer to the HOB of type EFI_HOB_TYPE_MEMORY_POOL.
[in]HobLengthThe length in bytes of the HOB of type EFI_HOB_TYPE_MEMORY_POOL.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 321 of file PrintHob.c.

◆ PrintAcpiBoardInfoGuidHob()

EFI_STATUS PrintAcpiBoardInfoGuidHob ( IN UINT8 *  HobRaw,
IN UINT16  HobLength 
)

Print the information in Acpi BoardInfo Guid Hob.

Parameters
[in]HobRawA pointer to the start of gUefiAcpiBoardInfoGuid HOB.
[in]HobLengthThe size of the HOB data buffer.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 131 of file PrintHob.c.

◆ PrintAcpiGuidHob()

EFI_STATUS PrintAcpiGuidHob ( IN UINT8 *  HobRaw,
IN UINT16  HobLength 
)

Print the information in Acpi Guid Hob.

Parameters
[in]HobRawA pointer to the start of gUniversalPayloadAcpiTableGuid HOB.
[in]HobLengthThe size of the HOB data buffer.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 37 of file PrintHob.c.

◆ PrintExtraDataGuidHob()

EFI_STATUS PrintExtraDataGuidHob ( IN UINT8 *  HobRaw,
IN UINT16  HobLength 
)

Print the information in Extra Data Guid Hob.

Parameters
[in]HobRawA pointer to the start of gUniversalPayloadExtraDataGuid HOB.
[in]HobLengthThe size of the HOB data buffer.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 219 of file PrintHob.c.

◆ PrintHob()

VOID PrintHob ( IN CONST VOID *  HobStart)

Print all HOBs info from the HOB list.

Parameters
[in]HobStartA pointer to the HOB list

Definition at line 362 of file PrintHob.c.

◆ PrintMemoryTypeInfoGuidHob()

EFI_STATUS PrintMemoryTypeInfoGuidHob ( IN UINT8 *  HobRaw,
IN UINT16  HobLength 
)

Print the information in MemoryTypeInfoGuidHob.

Parameters
[in]HobRawA pointer to the start of gEfiMemoryTypeInformationGuid HOB.
[in]HobLengthThe size of the HOB data buffer.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 254 of file PrintHob.c.

◆ PrintPciRootBridgeInfoGuidHob()

EFI_STATUS PrintPciRootBridgeInfoGuidHob ( IN UINT8 *  HobRaw,
IN UINT16  HobLength 
)

Print the information in Pci RootBridge Info Guid Hob.

Parameters
[in]HobRawA pointer to the start of gUniversalPayloadPciRootBridgeInfoGuid HOB.
[in]HobLengthThe size of the HOB data buffer.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 161 of file PrintHob.c.

◆ PrintSerialGuidHob()

EFI_STATUS PrintSerialGuidHob ( IN UINT8 *  HobRaw,
IN UINT16  HobLength 
)

Print the information in Serial Guid Hob.

Parameters
[in]HobRawA pointer to the start of gUniversalPayloadSerialPortInfoGuid HOB.
[in]HobLengthThe size of the HOB data buffer.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 60 of file PrintHob.c.

◆ PrintSmbios3GuidHob()

EFI_STATUS PrintSmbios3GuidHob ( IN UINT8 *  HobRaw,
IN UINT16  HobLength 
)

Print the information in Smbios Guid Hob.

Parameters
[in]HobRawA pointer to the start of gUniversalPayloadSmbios3TableGuid HOB.
[in]HobLengthThe size of the HOB data buffer.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 85 of file PrintHob.c.

◆ PrintSmbiosTablGuidHob()

EFI_STATUS PrintSmbiosTablGuidHob ( IN UINT8 *  HobRaw,
IN UINT16  HobLength 
)

Print the information in Smbios Guid Hob.

Parameters
[in]HobRawA pointer to the start of gUniversalPayloadSmbiosTableGuid HOB.
[in]HobLengthThe size of the HOB data buffer.
Return values
EFI_SUCCESSIf it completed successfully.

Definition at line 108 of file PrintHob.c.

Variable Documentation

◆ GuidHobPrintHandleTable

GUID_HOB_PRINT_HANDLE GuidHobPrintHandleTable[]
Initial value:
= {
{ &gUniversalPayloadAcpiTableGuid, PrintAcpiGuidHob, "gUniversalPayloadAcpiTableGuid(ACPI table Guid)" },
{ &gUniversalPayloadSerialPortInfoGuid, PrintSerialGuidHob, "gUniversalPayloadSerialPortInfoGuid(Serial Port Info)" },
{ &gUniversalPayloadSmbios3TableGuid, PrintSmbios3GuidHob, "gUniversalPayloadSmbios3TableGuid(SmBios Guid)" },
{ &gUniversalPayloadSmbiosTableGuid, PrintSmbiosTablGuidHob, "gUniversalPayloadSmbiosTableGuid(SmBios Guid)" },
{ &gUefiAcpiBoardInfoGuid, PrintAcpiBoardInfoGuidHob, "gUefiAcpiBoardInfoGuid(Acpi Guid)" },
{ &gUniversalPayloadPciRootBridgeInfoGuid, PrintPciRootBridgeInfoGuidHob, "gUniversalPayloadPciRootBridgeInfoGuid(Pci Guid)" },
{ &gEfiMemoryTypeInformationGuid, PrintMemoryTypeInfoGuidHob, "gEfiMemoryTypeInformationGuid(Memory Type Information Guid)" },
{ &gUniversalPayloadExtraDataGuid, PrintExtraDataGuidHob, "gUniversalPayloadExtraDataGuid(PayLoad Extra Data Guid)" }
}
EFI_GUID gUefiAcpiBoardInfoGuid
EFI_STATUS PrintExtraDataGuidHob(IN UINT8 *HobRaw, IN UINT16 HobLength)
Definition: PrintHob.c:219
EFI_STATUS PrintAcpiBoardInfoGuidHob(IN UINT8 *HobRaw, IN UINT16 HobLength)
Definition: PrintHob.c:131
EFI_STATUS PrintSerialGuidHob(IN UINT8 *HobRaw, IN UINT16 HobLength)
Definition: PrintHob.c:60
EFI_STATUS PrintSmbios3GuidHob(IN UINT8 *HobRaw, IN UINT16 HobLength)
Definition: PrintHob.c:85
EFI_STATUS PrintSmbiosTablGuidHob(IN UINT8 *HobRaw, IN UINT16 HobLength)
Definition: PrintHob.c:108
EFI_STATUS PrintMemoryTypeInfoGuidHob(IN UINT8 *HobRaw, IN UINT16 HobLength)
Definition: PrintHob.c:254
EFI_STATUS PrintPciRootBridgeInfoGuidHob(IN UINT8 *HobRaw, IN UINT16 HobLength)
Definition: PrintHob.c:161
EFI_STATUS PrintAcpiGuidHob(IN UINT8 *HobRaw, IN UINT16 HobLength)
Definition: PrintHob.c:37

Definition at line 272 of file PrintHob.c.