coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c File Reference
#include <cbfs.h>
#include <console/console.h>
#include <fsp/util.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/romstage.h>
#include <soc/reg_access.h>
Include dependency graph for romstage.c:

Go to the source code of this file.

Functions

void clear_smi_and_wake_events (void)
 
void disable_rom_shadow (void)
 
voidlocate_rmu_file (size_t *rmu_file_len)
 

Variables

static const struct reg_script clear_smi_and_wake_events_script []
 

Function Documentation

◆ clear_smi_and_wake_events()

void clear_smi_and_wake_events ( void  )

Definition at line 20 of file romstage.c.

References BIOS_SPEW, clear_smi_and_wake_events_script, get_power_state(), LPC_BDF, chipset_power_state::prev_sleep_state, printk, and reg_script_run_on_dev().

Referenced by platform_fsp_memory_init_params_cb().

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

◆ disable_rom_shadow()

void disable_rom_shadow ( void  )

Definition at line 33 of file romstage.c.

References ESEG_RD_DRAM, FSEG_RD_DRAM, port_reg_read(), port_reg_write(), QNC_MSG_FSBIC_REG_HMISC, and QUARK_NC_HOST_BRIDGE_SB_PORT_ID.

Referenced by mainboard_romstage_entry().

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

◆ locate_rmu_file()

void* locate_rmu_file ( size_t rmu_file_len)

Definition at line 50 of file romstage.c.

References cbfs_ro_map(), and NULL.

Referenced by platform_fsp_memory_init_params_cb().

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

Variable Documentation

◆ clear_smi_and_wake_events_script

const struct reg_script clear_smi_and_wake_events_script[]
static
Initial value:
= {
}
#define B_QNC_GPE0BLK_SMIS_ALL
Definition: QuarkNcSocId.h:554
#define R_QNC_GPE0BLK_SMIS
Definition: QuarkNcSocId.h:552
#define B_QNC_GPE0BLK_GPE0S_ALL
Definition: QuarkNcSocId.h:526
#define R_QNC_GPE0BLK_GPE0S
Definition: QuarkNcSocId.h:524
#define REG_SCRIPT_END
Definition: reg_script.h:427
#define REG_GPE0_OR(reg_, value_)
Definition: reg_access.h:71
#define REG_GPE0_READ(reg_)
Definition: reg_access.h:61

Definition at line 1 of file romstage.c.

Referenced by clear_smi_and_wake_events().