coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
debug.c File Reference
#include <commonlib/helpers.h>
#include <console/console.h>
#include <console/streams.h>
#include <cpu/x86/mtrr.h>
#include <fsp/debug.h>
#include <fsp/util.h>
Include dependency graph for debug.c:

Go to the source code of this file.

Enumerations

enum  fsp_call_phase { BEFORE_FSP_CALL , AFTER_FSP_CALL }
 

Functions

asmlinkage size_t fsp_write_line (uint8_t *buffer, size_t number_of_bytes)
 
static void fsp_gpio_config_check (enum fsp_call_phase phase, const char *call_str)
 
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)
 

Enumeration Type Documentation

◆ fsp_call_phase

Enumerator
BEFORE_FSP_CALL 
AFTER_FSP_CALL 

Definition at line 16 of file debug.c.

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

static void fsp_gpio_config_check ( enum fsp_call_phase  phase,
const char *  call_str 
)
static

Definition at line 21 of file debug.c.

References AFTER_FSP_CALL, BEFORE_FSP_CALL, BIOS_SPEW, gpio_snapshot(), gpio_verify_snapshot(), and printk.

Referenced by fsp_before_debug_notify(), fsp_debug_after_notify(), fsp_debug_after_silicon_init(), and fsp_debug_before_silicon_init().

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_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: