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

Go to the source code of this file.

Functions

static bool compare_guid (const EFI_GUID *guid1, const EFI_GUID *guid2)
 
voidget_hob_list (void)
 
static voidget_next_hob (uint16_t type, const void *hob_start)
 
voidget_guid_hob (const EFI_GUID *guid, const void *hob_start)
 
voidget_resource_hob (const EFI_GUID *guid, const void *hob_start)
 
static void print_hob_mem_attributes (void *hob_ptr)
 
static void print_hob_resource_attributes (void *hob_ptr)
 
static const char * get_hob_type_string (void *hob_ptr)
 
void print_hob_type_structure (u16 hob_type, void *hob_list_ptr)
 

Function Documentation

◆ compare_guid()

static bool compare_guid ( const EFI_GUID *  guid1,
const EFI_GUID *  guid2 
)
static

Definition at line 10 of file hob.c.

References memcmp().

Referenced by get_guid_hob(), get_hob_type_string(), and get_resource_hob().

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

◆ get_guid_hob()

void* get_guid_hob ( const EFI_GUID *  guid,
const void hob_start 
)

Definition at line 48 of file hob.c.

References compare_guid(), get_next_hob(), and NULL.

Referenced by display_hob_info(), fsp_run_silicon_init(), mainboard_save_dimm_info(), raminit(), and set_dimm_info().

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

◆ get_hob_list()

void* get_hob_list ( void  )

Definition at line 16 of file hob.c.

References die(), fsp_get_hob_list(), and NULL.

Referenced by display_hob_info(), and fsp_run_silicon_init().

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

◆ get_hob_type_string()

static const char* get_hob_type_string ( void hob_ptr)
static

Definition at line 165 of file hob.c.

References compare_guid(), EFI_HOB_TYPE_HANDOFF, EFI_HOB_TYPE_MEMORY_POOL, and FSP_SMBIOS_MEMORY_INFO_GUID.

Referenced by print_hob_type_structure().

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

◆ get_next_hob()

static void* get_next_hob ( uint16_t  type,
const void hob_start 
)
static

Definition at line 27 of file hob.c.

References NULL, and type.

Referenced by get_guid_hob(), and get_resource_hob().

Here is the caller graph for this function:

◆ get_resource_hob()

void* get_resource_hob ( const EFI_GUID *  guid,
const void hob_start 
)

Definition at line 65 of file hob.c.

References compare_guid(), get_next_hob(), and NULL.

Referenced by raminit().

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

◆ print_hob_mem_attributes()

static void print_hob_mem_attributes ( void hob_ptr)
static

Definition at line 79 of file hob.c.

References ARRAY_SIZE, BIOS_SPEW, and printk.

Referenced by print_hob_type_structure().

Here is the caller graph for this function:

◆ print_hob_resource_attributes()

static void print_hob_resource_attributes ( void hob_ptr)
static

Definition at line 117 of file hob.c.

References BIOS_SPEW, NULL, and printk.

Referenced by print_hob_type_structure().

Here is the caller graph for this function:

◆ print_hob_type_structure()

void print_hob_type_structure ( u16  hob_type,
void hob_list_ptr 
)

Definition at line 235 of file hob.c.

References BIOS_DEBUG, get_hob_type_string(), print_hob_mem_attributes(), print_hob_resource_attributes(), and printk.

Referenced by display_hob_info(), and raminit().

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