coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hob_display.c File Reference
#include <console/console.h>
#include <fsp/util.h>
Include dependency graph for hob_display.c:

Go to the source code of this file.

Data Structures

struct  hob_type_name
 
struct  guid_name_map
 

Functions

static const char * resource_name (uint32_t type)
 
void fsp_print_resource_descriptor (const void *base)
 
void fsp_print_memory_resource_hobs (void)
 
const char * fsp_get_hob_type_name (const struct hob_header *hob)
 
const char * fsp_get_guid_name (const uint8_t *guid)
 
__weak const char * soc_get_hob_type_name (const struct hob_header *hob)
 
void fsp_print_guid_extension_hob (const struct hob_header *hob)
 
__weak const char * soc_get_guid_name (const uint8_t *guid)
 
void fsp_display_hobs (void)
 
__weak void soc_display_hob (const struct hob_header *hob)
 

Variables

struct hob_type_name __packed
 
static const struct hob_type_name hob_type_names []
 
static const char * resource_names []
 
static const uint8_t bootloader_temp_memory_guid [16]
 
static const uint8_t empty_guid [16]
 
static const uint8_t fsp_graphics_info_guid [16]
 
static const uint8_t fsp_info_header_guid [16]
 
static const uint8_t smbios_memory_info_guid [16]
 
static const uint8_t tseg_guid [16]
 
static const struct guid_name_map guid_names []
 

Function Documentation

◆ fsp_display_hobs()

◆ fsp_get_guid_name()

const char* fsp_get_guid_name ( const uint8_t guid)

Definition at line 133 of file hob_display.c.

References ARRAY_SIZE, fsp_guid_compare(), guid_names, name, NULL, and soc_get_guid_name().

Referenced by fsp_print_guid_extension_hob(), fsp_print_resource_descriptor(), and soc_display_hob().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsp_get_hob_type_name()

const char* fsp_get_hob_type_name ( const struct hob_header hob)

Definition at line 117 of file hob_display.c.

References ARRAY_SIZE, hob_type_names, name, hob_type_name::name, NULL, soc_get_hob_type_name(), hob_type_name::type, and hob_header::type.

Referenced by fsp_display_hobs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsp_print_guid_extension_hob()

void fsp_print_guid_extension_hob ( const struct hob_header hob)

Definition at line 156 of file hob_display.c.

References BIOS_SPEW, fsp_get_guid_name(), fsp_hob_header_to_resource(), fsp_print_guid(), hob_resource::owner_guid, printk, and soc_display_hob().

Referenced by fsp_display_hobs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsp_print_memory_resource_hobs()

void fsp_print_memory_resource_hobs ( void  )

Definition at line 106 of file hob_display.c.

References fsp_get_hob_list(), fsp_next_hob(), fsp_print_resource_descriptor(), HOB_TYPE_END_OF_HOB_LIST, HOB_TYPE_RESOURCE_DESCRIPTOR, and hob_header::type.

Here is the call graph for this function:

◆ fsp_print_resource_descriptor()

void fsp_print_resource_descriptor ( const void base)

◆ resource_name()

static const char* resource_name ( uint32_t  type)
static

Definition at line 82 of file hob_display.c.

References ARRAY_SIZE, resource_names, and type.

Referenced by fsp_print_resource_descriptor().

Here is the caller graph for this function:

◆ soc_display_hob()

__weak void soc_display_hob ( const struct hob_header hob)

Definition at line 208 of file hob_display.c.

Referenced by fsp_display_hobs(), and fsp_print_guid_extension_hob().

Here is the caller graph for this function:

◆ soc_get_guid_name()

__weak const char* soc_get_guid_name ( const uint8_t guid)

Definition at line 169 of file hob_display.c.

References NULL.

Referenced by fsp_get_guid_name().

Here is the caller graph for this function:

◆ soc_get_hob_type_name()

__weak const char* soc_get_hob_type_name ( const struct hob_header hob)

Definition at line 150 of file hob_display.c.

References NULL.

Referenced by fsp_get_hob_type_name().

Here is the caller graph for this function:

Variable Documentation

◆ __packed

◆ bootloader_temp_memory_guid

const uint8_t bootloader_temp_memory_guid[16]
static
Initial value:
= {
0x6c, 0xf4, 0xcf, 0xbb, 0xd3, 0xc8, 0x13, 0x41,
0x89, 0x85, 0xb9, 0xd4, 0xf3, 0xb3, 0xf6, 0x4e
}

Definition at line 36 of file hob_display.c.

◆ empty_guid

const uint8_t empty_guid[16]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 41 of file hob_display.c.

Referenced by fsp_print_resource_descriptor().

◆ fsp_graphics_info_guid

const uint8_t fsp_graphics_info_guid[16]
static
Initial value:
= {
0xce, 0x2c, 0xf6, 0x39, 0x25, 0x68, 0x69, 0x46,
0xbb, 0x56, 0x54, 0x1a, 0xba, 0x75, 0x3a, 0x07
}

Definition at line 45 of file hob_display.c.

◆ fsp_info_header_guid

const uint8_t fsp_info_header_guid[16]
static
Initial value:
= {
0xbe, 0x40, 0x27, 0x91, 0x84, 0x22, 0x34, 0x47,
0xb9, 0x71, 0x84, 0xb0, 0x27, 0x35, 0x3f, 0x0c
}

Definition at line 50 of file hob_display.c.

◆ guid_names

const struct guid_name_map guid_names[]
static
Initial value:
= {
{ bootloader_temp_memory_guid, "FSP_BOOTLOADER_TEMP_MEMORY_HOB_GUID" },
{ fsp_bootloader_tolum_guid, "BOOTLOADER_TOLUM" },
{ empty_guid, "No GUID specified" },
{ fsp_info_header_guid, "FSP_INFO_HEADER_GUID" },
{ fsp_reserved_memory_guid, "FSP_RESERVED_MEMORY" },
{ fsp_nv_storage_guid, "FSP_NV_STORAGE" },
{ fsp_graphics_info_guid, "GRAPHICS INFO" },
{ smbios_memory_info_guid, "FSP_SMBIOS_MEMORY_INFO_GUID" },
{ tseg_guid, "TSEG" },
}
static const uint8_t empty_guid[16]
Definition: hob_display.c:41
static const uint8_t fsp_graphics_info_guid[16]
Definition: hob_display.c:45
static const uint8_t fsp_info_header_guid[16]
Definition: hob_display.c:50
static const uint8_t bootloader_temp_memory_guid[16]
Definition: hob_display.c:36
static const uint8_t smbios_memory_info_guid[16]
Definition: hob_display.c:55
static const uint8_t tseg_guid[16]
Definition: hob_display.c:60
const uint8_t fsp_reserved_memory_guid[16]
const uint8_t fsp_nv_storage_guid[16]
const uint8_t fsp_bootloader_tolum_guid[16]

Definition at line 60 of file hob_display.c.

Referenced by fsp_get_guid_name().

◆ hob_type_names

const struct hob_type_name hob_type_names[]
static
Initial value:
= {
{ HOB_TYPE_HANDOFF, "HOB_TYPE_HANDOFF" },
{ HOB_TYPE_MEMORY_ALLOCATION, "HOB_TYPE_MEMORY_ALLOCATION" },
{ HOB_TYPE_RESOURCE_DESCRIPTOR, "HOB_TYPE_RESOURCE_DESCRIPTOR" },
{ HOB_TYPE_GUID_EXTENSION, "HOB_TYPE_GUID_EXTENSION" },
{ HOB_TYPE_FV, "HOB_TYPE_FV" },
{ HOB_TYPE_CPU, "HOB_TYPE_CPU" },
{ HOB_TYPE_MEMORY_POOL, "HOB_TYPE_MEMORY_POOL" },
{ HOB_TYPE_FV2, "HOB_TYPE_FV2" },
{ HOB_TYPE_LOAD_PEIM_UNUSED, "HOB_TYPE_LOAD_PEIM_UNUSED" },
{ HOB_TYPE_UCAPSULE, "HOB_TYPE_UCAPSULE" },
{ HOB_TYPE_UNUSED, "HOB_TYPE_UNUSED" },
{ HOB_TYPE_END_OF_HOB_LIST, "HOB_TYPE_END_OF_HOB_LIST" }
}
@ HOB_TYPE_FV2
Definition: util.h:98
@ HOB_TYPE_CPU
Definition: util.h:96
@ HOB_TYPE_LOAD_PEIM_UNUSED
Definition: util.h:99
@ HOB_TYPE_UCAPSULE
Definition: util.h:100
@ HOB_TYPE_RESOURCE_DESCRIPTOR
Definition: util.h:93
@ HOB_TYPE_FV
Definition: util.h:95
@ HOB_TYPE_UNUSED
Definition: util.h:101
@ HOB_TYPE_GUID_EXTENSION
Definition: util.h:94
@ HOB_TYPE_END_OF_HOB_LIST
Definition: util.h:102
@ HOB_TYPE_MEMORY_POOL
Definition: util.h:97
@ HOB_TYPE_MEMORY_ALLOCATION
Definition: util.h:92
@ HOB_TYPE_HANDOFF
Definition: util.h:91

Definition at line 1 of file hob_display.c.

Referenced by fsp_get_hob_type_name().

◆ resource_names

const char* resource_names[]
static
Initial value:
= {
[EFI_RESOURCE_SYSTEM_MEMORY] = "SYSTEM_MEMORY",
[EFI_RESOURCE_MEMORY_MAPPED_IO] = "MMIO",
[EFI_RESOURCE_IO] = "IO",
[EFI_RESOURCE_FIRMWARE_DEVICE] = "FIRMWARE_DEVICE",
[EFI_RESOURCE_MEMORY_MAPPED_IO_PORT] = "MMIO_PORT",
[EFI_RESOURCE_MEMORY_RESERVED] = "MEMORY_RESERVED",
[EFI_RESOURCE_IO_RESERVED] = "IO_RESERVED",
}

Definition at line 26 of file hob_display.c.

Referenced by resource_name().

◆ smbios_memory_info_guid

const uint8_t smbios_memory_info_guid[16]
static
Initial value:
= {
0x8c, 0x10, 0xa1, 0x01, 0xee, 0x9d, 0x84, 0x49,
0x88, 0xc3, 0xee, 0xe8, 0xc4, 0x9e, 0xfb, 0x89
}

Definition at line 55 of file hob_display.c.

Referenced by save_dimm_info(), save_lpddr4_dimm_info_part_num(), and soc_get_fsp_smbios_memory_info_hob().

◆ tseg_guid

const uint8_t tseg_guid[16]
static
Initial value:
= {
0x7c, 0x74, 0x38, 0xd0, 0x0c, 0xd0, 0x80, 0x49,
0xb3, 0x19, 0x49, 0x01, 0x99, 0xa4, 0x7d, 0x55
}

Definition at line 60 of file hob_display.c.