coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
debug.h File Reference
#include <fsp/util.h>
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  fsp_log_level {
  FSP_LOG_LEVEL_DISABLE = 0 , FSP_LOG_LEVEL_ERR , FSP_LOG_LEVEL_ERR_WARN , FSP_LOG_LEVEL_ERR_WARN_INFO ,
  FSP_LOG_LEVEL_ERR_WARN_INFO_EVENT , FSP_LOG_LEVEL_VERBOSE
}
 

Functions

enum fsp_log_level fsp_map_console_log_level (void)
 
void fsp_debug_before_memory_init (fsp_memory_init_fn memory_init, const FSPM_UPD *fspm_old_upd, const FSPM_UPD *fspm_new_upd)
 
void fsp_debug_after_memory_init (uint32_t status)
 
void fsp_debug_before_silicon_init (fsp_silicon_init_fn silicon_init, const FSPS_UPD *fsps_old_upd, const FSPS_UPD *fsps_new_upd)
 
void fsp_debug_after_silicon_init (uint32_t status)
 
void fsp_before_debug_notify (fsp_notify_fn notify, const struct fsp_notify_params *notify_params)
 
void fsp_debug_after_notify (uint32_t status)
 
void fspm_display_upd_values (const FSPM_UPD *old, const FSPM_UPD *new)
 
void fsp_display_hobs (void)
 
void fsp_verify_memory_init_hobs (void)
 
void fsp_print_header_info (const struct fsp_header *hdr)
 
void soc_display_fspm_upd_params (const FSPM_UPD *fspm_old_upd, const FSPM_UPD *fspm_new_upd)
 
void soc_display_fsps_upd_params (const FSPS_UPD *fsps_old_upd, const FSPS_UPD *fsps_new_upd)
 
const char * soc_get_hob_type_name (const struct hob_header *hob)
 
const char * soc_get_guid_name (const uint8_t *guid)
 
void soc_display_hob (const struct hob_header *hob)
 
void fsp_display_upd_value (const char *name, size_t size, uint64_t old, uint64_t new)
 
void fsp_print_guid (const void *guid)
 
void fsp_print_memory_resource_hobs (void)
 
void fsp_print_resource_descriptor (const void *base)
 
const char * fsp_get_hob_type_name (const struct hob_header *hob)
 
const char * fsp_get_guid_name (const uint8_t *guid)
 
void fsp_print_guid_extension_hob (const struct hob_header *hob)
 
asmlinkage size_t fsp_write_line (uint8_t *buffer, size_t number_of_bytes)
 
void gpio_snapshot (void)
 
size_t gpio_verify_snapshot (void)
 

Enumeration Type Documentation

◆ fsp_log_level

Enumerator
FSP_LOG_LEVEL_DISABLE 
FSP_LOG_LEVEL_ERR 
FSP_LOG_LEVEL_ERR_WARN 
FSP_LOG_LEVEL_ERR_WARN_INFO 
FSP_LOG_LEVEL_ERR_WARN_INFO_EVENT 
FSP_LOG_LEVEL_VERBOSE 

Definition at line 8 of file debug.h.

Function Documentation

◆ fsp_before_debug_notify()

void fsp_before_debug_notify ( fsp_notify_fn  notify,
const struct fsp_notify_params notify_params 
)

Definition at line 158 of file debug.c.

References BEFORE_FSP_CALL, BIOS_SPEW, CONFIG, fsp_gpio_config_check(), fsp_notify_params::phase, and printk.

Referenced by fsp_notify().

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

◆ fsp_debug_after_memory_init()

void fsp_debug_after_memory_init ( uint32_t  status)

Definition at line 94 of file debug.c.

References BIOS_SPEW, CONFIG, die(), display_mtrrs(), fsp_display_hobs(), fsp_get_hob_list(), FSP_SUCCESS, fsp_verify_memory_init_hobs(), NULL, and printk.

Referenced by do_fsp_memory_init().

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

◆ fsp_debug_after_notify()

void fsp_debug_after_notify ( uint32_t  status)

Definition at line 173 of file debug.c.

References AFTER_FSP_CALL, BIOS_SPEW, CONFIG, display_mtrrs(), fsp_display_hobs(), fsp_gpio_config_check(), and printk.

Referenced by fsp_notify().

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

◆ fsp_debug_after_silicon_init()

void fsp_debug_after_silicon_init ( uint32_t  status)

Definition at line 139 of file debug.c.

References AFTER_FSP_CALL, BIOS_SPEW, CONFIG, display_mtrrs(), fsp_display_hobs(), fsp_gpio_config_check(), and printk.

Referenced by do_silicon_init().

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

◆ fsp_debug_before_memory_init()

void fsp_debug_before_memory_init ( fsp_memory_init_fn  memory_init,
const FSPM_UPD *  fspm_old_upd,
const FSPM_UPD *  fspm_new_upd 
)

Definition at line 76 of file debug.c.

References BIOS_SPEW, CONFIG, display_mtrrs(), fsp_get_hob_list_ptr(), fspm_display_upd_values(), memory_init(), and printk.

Referenced by do_fsp_memory_init().

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

◆ fsp_debug_before_silicon_init()

void fsp_debug_before_silicon_init ( fsp_silicon_init_fn  silicon_init,
const FSPS_UPD *  fsps_old_upd,
const FSPS_UPD *  fsps_new_upd 
)

Definition at line 119 of file debug.c.

References BEFORE_FSP_CALL, BIOS_SPEW, CONFIG, display_mtrrs(), fsp_gpio_config_check(), printk, and soc_display_fsps_upd_params().

Referenced by do_silicon_init().

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

◆ fsp_display_hobs()

◆ fsp_display_upd_value()

void fsp_display_upd_value ( const char *  name,
size_t  size,
uint64_t  old,
uint64_t  new 
)

Definition at line 7 of file upd_display.c.

References BIOS_SPEW, name, and printk.

Referenced by fspm_display_arch_params().

Here is the caller graph for this function:

◆ 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_map_console_log_level()

enum fsp_log_level fsp_map_console_log_level ( void  )

Definition at line 21 of file debug.c.

Referenced by platform_fsp_memory_init_params_cb().

Here is the caller graph for this function:

◆ fsp_print_guid()

void fsp_print_guid ( const void guid)

Definition at line 148 of file hand_off_block.c.

References base, BIOS_SPEW, printk, read16(), and read32().

Referenced by fsp_find_range_hob(), fsp_print_guid_extension_hob(), fsp_print_resource_descriptor(), print_guid_record(), print_string_record(), and soc_display_hob().

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_header_info()

◆ 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)

◆ fsp_verify_memory_init_hobs()

void fsp_verify_memory_init_hobs ( void  )

Definition at line 7 of file hob_verify.c.

References BIOS_CRIT, cbmem_overhead_size(), cbmem_top(), die(), fsp_find_bootloader_tolum(), fsp_find_reserved_memory(), printk, range_entry_base(), range_entry_end(), and range_entry_size().

Referenced by fsp_debug_after_memory_init().

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

◆ fsp_write_line()

asmlinkage size_t fsp_write_line ( uint8_t buffer,
size_t  number_of_bytes 
)

Definition at line 10 of file debug.c.

References buffer, and console_write_line().

Referenced by platform_fsp_memory_init_params_cb().

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

◆ fspm_display_upd_values()

void fspm_display_upd_values ( const FSPM_UPD *  old,
const FSPM_UPD *  new 
)

Definition at line 51 of file upd_display.c.

References fspm_display_arch_params(), and soc_display_fspm_upd_params().

Referenced by fsp_debug_before_memory_init().

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

◆ gpio_snapshot()

void gpio_snapshot ( void  )

Definition at line 888 of file gpio.c.

References allocate_snapshot_space(), pad_community::first_pad, GPIO_NUM_PAD_CFG_REGS, pad_community::last_pad, NULL, PAD_CFG_OFFSET, pad_config_offset(), pcr_read32(), pad_community::port, snapshot, and soc_gpio_get_community().

Referenced by fsp_gpio_config_check().

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

◆ gpio_verify_snapshot()

size_t gpio_verify_snapshot ( void  )

Definition at line 913 of file gpio.c.

References BIOS_SPEW, pad_community::first_pad, GPIO_NUM_PAD_CFG_REGS, pad_community::last_pad, NULL, PAD_CFG_OFFSET, pad_config_offset(), pcr_read32(), pad_community::port, printk, snapshot, and soc_gpio_get_community().

Referenced by fsp_gpio_config_check().

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

◆ soc_display_fspm_upd_params()

void soc_display_fspm_upd_params ( const FSPM_UPD *  fspm_old_upd,
const FSPM_UPD *  fspm_new_upd 
)

Definition at line 43 of file upd_display.c.

References BIOS_DEBUG, BIOS_SPEW, DISPLAY_UPD, DUMP_UPD, fsp_display_upd_value(), FSP_M_CONFIG, hexdump(), and printk.

Referenced by fspm_display_upd_values().

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

◆ soc_display_fsps_upd_params()

void soc_display_fsps_upd_params ( const FSPS_UPD *  fsps_old_upd,
const FSPS_UPD *  fsps_new_upd 
)

Definition at line 60 of file upd_display.c.

References BIOS_DEBUG, BIOS_SPEW, DISPLAY_UPD, DUMP_UPD, FSP_S_CONFIG, hexdump(), and printk.

Referenced by fsp_debug_before_silicon_init().

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

◆ soc_display_hob()

◆ soc_get_guid_name()

const char* soc_get_guid_name ( const uint8_t guid)

Definition at line 169 of file hob_display.c.

References ARRAY_SIZE, fsp_guid_compare(), guid_name_map::guid, guid_names, name, and NULL.

Referenced by fsp_get_guid_name().

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

◆ soc_get_hob_type_name()

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: