coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <fsp/util.h>
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 } |
enum fsp_log_level |
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().
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().
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().
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().
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().
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().
Definition at line 174 of file hob_display.c.
References BIOS_SPEW, fsp_get_hob_list(), fsp_get_hob_type_name(), fsp_next_hob(), fsp_print_guid_extension_hob(), fsp_print_resource_descriptor(), HOB_TYPE_END_OF_HOB_LIST, HOB_TYPE_GUID_EXTENSION, HOB_TYPE_RESOURCE_DESCRIPTOR, hob_header::length, printk, soc_display_hob(), and hob_header::type.
Referenced by fsp_debug_after_memory_init(), fsp_debug_after_notify(), and fsp_debug_after_silicon_init().
Definition at line 7 of file upd_display.c.
References BIOS_SPEW, name, and printk.
Referenced by fspm_display_arch_params().
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().
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().
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().
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().
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().
void fsp_print_header_info | ( | const struct fsp_header * | hdr | ) |
Definition at line 6 of file header_display.c.
References BIOS_SPEW, extended_fsp_revision::bld_num, CONFIG, FSP_HDR_ATTRIB_FSPM, FSP_HDR_ATTRIB_FSPS, FSP_IMAGE_ID_LENGTH, printk, extended_fsp_revision::rev, fsp_revision::revision, extended_fsp_revision::revision, and extended_fsp_revision::val.
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.
Definition at line 89 of file hob_display.c.
References hob_resource::addr, hob_resource::attribute_type, base, BIOS_SPEW, empty_guid, fsp_get_guid_name(), fsp_guid_compare(), fsp_hob_header_to_resource(), fsp_print_guid(), hob_resource::length, hob_resource::owner_guid, printk, resource_name(), and hob_resource::type.
Referenced by fsp_display_hobs(), and fsp_print_memory_resource_hobs().
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().
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().
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().
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().
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().
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().
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().
void soc_display_hob | ( | const struct hob_header * | hob | ) |
Definition at line 208 of file hob_display.c.
References hob_resource::addr, assert, hob_resource::attribute_type, BIOS_DEBUG, fsp_get_guid_name(), fsp_guid_compare(), fsp_hob_header_to_resource(), fsp_hob_iio_uds_guid, fsp_hob_memmap_guid, fsp_hob_prevbooterr_guid, fsp_print_guid(), hexdump(), HOB_TYPE_GUID_EXTENSION, hob_header::length, hob_resource::length, NULL, hob_resource::owner_guid, printk, soc_display_iio_universal_data_hob(), soc_display_memmap_hob(), soc_display_prevbooterr_hob(), hob_header::type, and hob_resource::type.
Referenced by fsp_display_hobs(), and fsp_print_guid_extension_hob().
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().
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().