coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
fsp_util.c File Reference
#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>
Include dependency graph for fsp_util.c:

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

Function Documentation

◆ BOOT_STATE_INIT_ENTRY() [1/3]

BOOT_STATE_INIT_ENTRY ( BS_DEV_RESOURCES  ,
BS_ON_EXIT  ,
fsp_notify_boot_state_callback  ,
(void *)  EnumInitPhaseAfterPciEnumeration 
)

◆ BOOT_STATE_INIT_ENTRY() [2/3]

BOOT_STATE_INIT_ENTRY ( BS_OS_RESUME  ,
BS_ON_ENTRY  ,
fsp_notify_boot_state_callback  ,
(void *)  EnumInitPhaseReadyToBoot 
)

◆ BOOT_STATE_INIT_ENTRY() [3/3]

BOOT_STATE_INIT_ENTRY ( BS_PAYLOAD_LOAD  ,
BS_ON_EXIT  ,
fsp_notify_boot_state_callback  ,
(void *)  EnumInitPhaseReadyToBoot 
)

◆ find_fsp()

FSP_INFO_HEADER* find_fsp ( uintptr_t  fsp_base_address)

◆ fsp_display_upd_value()

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

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

Here is the caller graph for this function:

◆ fsp_get_fih()

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

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

◆ fsp_get_hob_list()

void* fsp_get_hob_list ( void  )

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

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

◆ fsp_notify()

void fsp_notify ( u32  phase)

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

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

◆ fsp_notify_boot_state_callback()

static void fsp_notify_boot_state_callback ( void arg)
static

Definition at line 154 of file fsp_util.c.

References arg, BIOS_SPEW, fsp_notify(), and printk.

Here is the call graph for this function:

◆ fsp_set_runtime()

void fsp_set_runtime ( FSP_INFO_HEADER *  fih,
void hob_list 
)

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

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

◆ fsp_update_fih()

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

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

◆ print_fsp_info()

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

Here is the caller graph for this function:

Variable Documentation

◆ __packed