coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
debug_feature.c File Reference
Include dependency graph for debug_feature.c:

Go to the source code of this file.

Data Structures

struct  pre_mem_ft
 

Macros

#define SI_DESC_OEM_SECTION_OFFSET   0xF00
 
#define PRE_MEM_FEATURE_CTRL_OFFSET   SI_DESC_OEM_SECTION_OFFSET
 
#define PRE_MEM_FEATURE_CTRL_SZ   64
 
#define SI_DESC_REGION_SZ   4096
 

Functions

 _Static_assert (sizeof(struct pre_mem_ft) % 64==0 &&sizeof(struct pre_mem_ft)<=256, "sizeof(struct pre_mem_ft) must be a multiple of 64 bytes and up to 256 bytes")
 
bool is_debug_cse_fw_update_disable (void)
 
uint8_t pre_mem_debug_init (void)
 

Variables

static struct pre_mem_ft pre_mem_debug
 

Macro Definition Documentation

◆ PRE_MEM_FEATURE_CTRL_OFFSET

#define PRE_MEM_FEATURE_CTRL_OFFSET   SI_DESC_OEM_SECTION_OFFSET

Definition at line 8 of file debug_feature.c.

◆ PRE_MEM_FEATURE_CTRL_SZ

#define PRE_MEM_FEATURE_CTRL_SZ   64

Definition at line 9 of file debug_feature.c.

◆ SI_DESC_OEM_SECTION_OFFSET

#define SI_DESC_OEM_SECTION_OFFSET   0xF00

Definition at line 7 of file debug_feature.c.

◆ SI_DESC_REGION_SZ

#define SI_DESC_REGION_SZ   4096

Definition at line 10 of file debug_feature.c.

Function Documentation

◆ _Static_assert()

_Static_assert ( sizeof(struct pre_mem_ft) %  64 = =0 &&sizeof(struct pre_mem_ft)<=256,
"sizeof(struct pre_mem_ft) must be a multiple of 64 bytes and up to 256 bytes"   
)

◆ is_debug_cse_fw_update_disable()

bool is_debug_cse_fw_update_disable ( void  )

Definition at line 22 of file debug_feature.c.

References BIOS_DEBUG, pre_mem_ft::cse_fw_update_disable, pre_mem_debug, and printk.

Referenced by cse_update_rw().

Here is the caller graph for this function:

◆ pre_mem_debug_init()

uint8_t pre_mem_debug_init ( void  )

Definition at line 30 of file debug_feature.c.

References BIOS_ERR, boot_device_spi_flash(), pre_mem_debug, PRE_MEM_FEATURE_CTRL_OFFSET, PRE_MEM_FEATURE_CTRL_SZ, printk, and spi_flash_read().

Referenced by mainboard_romstage_entry().

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

Variable Documentation

◆ pre_mem_debug

struct pre_mem_ft pre_mem_debug
static

Definition at line 1 of file debug_feature.c.

Referenced by is_debug_cse_fw_update_disable(), and pre_mem_debug_init().