![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <bootstate.h>
#include <cbmem.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <console/streams.h>
#include <fsp/util.h>
#include <timestamp.h>
Go to the source code of this file.
Data Structures | |
struct | fsp_runtime |
Functions | |
FSP_INFO_HEADER * | find_fsp (uintptr_t fsp_base_address) |
void | print_fsp_info (FSP_INFO_HEADER *fsp_header) |
void | fsp_notify (u32 phase) |
static void | fsp_notify_boot_state_callback (void *arg) |
BOOT_STATE_INIT_ENTRY (BS_DEV_RESOURCES, BS_ON_EXIT, fsp_notify_boot_state_callback,(void *) EnumInitPhaseAfterPciEnumeration) | |
BOOT_STATE_INIT_ENTRY (BS_PAYLOAD_LOAD, BS_ON_EXIT, fsp_notify_boot_state_callback,(void *) EnumInitPhaseReadyToBoot) | |
BOOT_STATE_INIT_ENTRY (BS_OS_RESUME, BS_ON_ENTRY, fsp_notify_boot_state_callback,(void *) EnumInitPhaseReadyToBoot) | |
void | fsp_set_runtime (FSP_INFO_HEADER *fih, void *hob_list) |
FSP_INFO_HEADER * | fsp_get_fih (void) |
void * | fsp_get_hob_list (void) |
void | fsp_update_fih (FSP_INFO_HEADER *fih) |
void | fsp_display_upd_value (const char *name, uint32_t size, uint64_t old, uint64_t new) |
Variables | |
struct fsp_runtime | __packed |
BOOT_STATE_INIT_ENTRY | ( | BS_DEV_RESOURCES | , |
BS_ON_EXIT | , | ||
fsp_notify_boot_state_callback | , | ||
(void *) | EnumInitPhaseAfterPciEnumeration | ||
) |
BOOT_STATE_INIT_ENTRY | ( | BS_OS_RESUME | , |
BS_ON_ENTRY | , | ||
fsp_notify_boot_state_callback | , | ||
(void *) | EnumInitPhaseReadyToBoot | ||
) |
BOOT_STATE_INIT_ENTRY | ( | BS_PAYLOAD_LOAD | , |
BS_ON_EXIT | , | ||
fsp_notify_boot_state_callback | , | ||
(void *) | EnumInitPhaseReadyToBoot | ||
) |
FSP_INFO_HEADER* find_fsp | ( | uintptr_t | fsp_base_address | ) |
Definition at line 12 of file fsp_util.c.
References ALIGN_UP, ERROR_FSP_REV_MISMATCH, ERROR_FSP_SIG_MISMATCH, ERROR_IMAGEBASE_MISMATCH, ERROR_INFO_HEAD_SIG_MISMATCH, ERROR_NO_FFS_GUID, ERROR_NO_FV_SIG, and ERROR_NO_INFO_HEADER.
Referenced by chipset_teardown_car_main(), fsp_notify(), and mainboard_romstage_entry().
Definition at line 226 of file fsp_util.c.
References BIOS_SPEW, name, and printk.
Referenced by soc_display_fspm_upd_params(), soc_display_memory_init_params(), and soc_display_silicon_init_params().
FSP_INFO_HEADER* fsp_get_fih | ( | void | ) |
Definition at line 190 of file fsp_util.c.
References cbmem_find(), CBMEM_ID_FSP_RUNTIME, fsp_runtime::fih, and NULL.
Referenced by fsp_notify(), and intel_silicon_init().
Definition at line 202 of file fsp_util.c.
References cbmem_find(), CBMEM_ID_FSP_RUNTIME, fsp_runtime::hob_list, and NULL.
Referenced by fsp_debug_after_memory_init(), fsp_display_hobs(), fsp_print_memory_resource_hobs(), get_hob_list(), mainboard_save_dimm_info(), read_resources(), and set_dimm_info().
Definition at line 114 of file fsp_util.c.
References BIOS_ERR, die(), find_fsp(), fsp_get_fih(), NULL, post_code, POST_FSP_NOTIFY_BEFORE_ENUMERATE, POST_FSP_NOTIFY_BEFORE_FINALIZE, printk, timestamp_add_now(), TS_FSP_ENUMERATE_END, TS_FSP_ENUMERATE_START, TS_FSP_FINALIZE_END, and TS_FSP_FINALIZE_START.
Referenced by fsp_notify_boot_state_callback().
Definition at line 154 of file fsp_util.c.
References arg, BIOS_SPEW, fsp_notify(), and printk.
Definition at line 177 of file fsp_util.c.
References cbmem_add(), CBMEM_ID_FSP_RUNTIME, die(), fsp_runtime::fih, fsp_runtime::hob_list, and NULL.
Referenced by raminit().
void fsp_update_fih | ( | FSP_INFO_HEADER * | fih | ) |
Definition at line 214 of file fsp_util.c.
References cbmem_find(), CBMEM_ID_FSP_RUNTIME, die(), fsp_runtime::fih, and NULL.
Referenced by fsp_load().
void print_fsp_info | ( | FSP_INFO_HEADER * | fsp_header | ) |
Definition at line 74 of file fsp_util.c.
References BIOS_INFO, BIOS_SPEW, and printk.
Referenced by cache_as_ram_stage_main(), and fsp_run_silicon_init().
struct fsp_runtime __packed |