coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.c File Reference
#include <baseboard/gpio.h>
#include <baseboard/variants.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <ec/google/chromeec/ec.h>
#include <ec/google/chromeec/smm.h>
#include <elog.h>
#include <gpio.h>
#include <intelblocks/gpio.h>
#include <intelblocks/smihandler.h>
#include <spi_flash.h>
#include <variant/ec.h>
Include dependency graph for smihandler.c:

Go to the source code of this file.

Functions

void mainboard_smi_gpi_handler (const struct gpi_status *sts)
 
void mainboard_smi_sleep (u8 slp_typ)
 
int mainboard_smi_apmc (u8 apmc)
 
void elog_gsmi_cb_mainboard_log_wake_source (void)
 
void mainboard_smi_espi_handler (void)
 
void __weak variant_smi_sleep (u8 slp_typ)
 
static void mainboard_config_cbi_wp (void)
 
void mainboard_smi_finalize (void)
 

Function Documentation

◆ elog_gsmi_cb_mainboard_log_wake_source()

void elog_gsmi_cb_mainboard_log_wake_source ( void  )

Definition at line 42 of file smihandler.c.

References google_chromeec_log_events(), MAINBOARD_EC_LOG_EVENTS, and MAINBOARD_EC_S0IX_WAKE_EVENTS.

Here is the call graph for this function:

◆ mainboard_config_cbi_wp()

static void mainboard_config_cbi_wp ( void  )
static

Definition at line 56 of file smihandler.c.

References BIOS_ERR, BIOS_INFO, boot_device_spi_flash(), gpio_get(), GPIO_LOCK_FULL, gpio_lock_pad(), GPIO_PCH_WP, gpio_set(), GPP_B16, printk, and spi_flash_status().

Referenced by mainboard_smi_finalize().

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

◆ mainboard_smi_apmc()

int mainboard_smi_apmc ( u8  apmc)

Definition at line 35 of file smihandler.c.

References chromeec_smi_apmc(), MAINBOARD_EC_SCI_EVENTS, and MAINBOARD_EC_SMI_EVENTS.

Here is the call graph for this function:

◆ mainboard_smi_espi_handler()

void mainboard_smi_espi_handler ( void  )

Definition at line 47 of file smihandler.c.

References chromeec_smi_process_events().

Here is the call graph for this function:

◆ mainboard_smi_finalize()

void mainboard_smi_finalize ( void  )

Definition at line 101 of file smihandler.c.

References CONFIG, and mainboard_config_cbi_wp().

Here is the call graph for this function:

◆ mainboard_smi_gpi_handler()

void mainboard_smi_gpi_handler ( const struct gpi_status sts)

Definition at line 16 of file smihandler.c.

Referenced by smihandler_southbridge_gpi().

Here is the caller graph for this function:

◆ mainboard_smi_sleep()

void mainboard_smi_sleep ( u8  slp_typ)

◆ variant_smi_sleep()

void __weak variant_smi_sleep ( u8  slp_typ)

Definition at line 52 of file smihandler.c.

Referenced by mainboard_smi_sleep().

Here is the caller graph for this function: