coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.h File Reference
#include <device/device.h>
#include <stdint.h>
Include dependency graph for smihandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  smm_save_state_ops
 

Typedefs

typedef void(* smi_handler_t) (const struct smm_save_state_ops *save_state_ops)
 

Enumerations

enum  smm_reg { RAX , RBX , RCX , RDX }
 

Functions

const struct smm_save_state_opsget_smm_save_state_ops (void)
 
void smihandler_southbridge_sleep (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_apmc (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_pm1 (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_gpe0 (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_mc (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_monitor (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_tco (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_periodic (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_gpi (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_southbridge_espi (const struct smm_save_state_ops *save_state_ops)
 
void smihandler_soc_at_finalize (void)
 
int smihandler_soc_disable_busmaster (pci_devfn_t dev)
 
void mainboard_smi_gpi_handler (const struct gpi_status *sts)
 
void mainboard_smi_espi_handler (void)
 

Variables

const smi_handler_t southbridge_smi [32]
 
const struct smm_save_state_ops em64t100_smm_ops
 
const struct smm_save_state_ops em64t101_smm_ops
 

Typedef Documentation

◆ smi_handler_t

typedef void(* smi_handler_t) (const struct smm_save_state_ops *save_state_ops)

Definition at line 34 of file smihandler.h.

Enumeration Type Documentation

◆ smm_reg

enum smm_reg
Enumerator
RAX 
RBX 
RCX 
RDX 

Definition at line 15 of file smihandler.h.

Function Documentation

◆ get_smm_save_state_ops()

const struct smm_save_state_ops* get_smm_save_state_ops ( void  )

Definition at line 18 of file smihandler.c.

References em64t100_smm_ops, and em64t101_smm_ops.

Referenced by southbridge_smi_handler().

Here is the caller graph for this function:

◆ mainboard_smi_espi_handler()

void mainboard_smi_espi_handler ( void  )

Definition at line 26 of file smihandler.c.

References chromeec_smi_process_events(), CONFIG, and wilco_ec_smi_espi().

Referenced by smihandler_southbridge_espi().

Here is the call graph for this function:
Here is the caller 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.

References chromeec_smi_process_events(), CONFIG, EC_SMI_GPI, and gpi_status_get().

Referenced by smihandler_southbridge_gpi().

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

◆ smihandler_soc_at_finalize()

void smihandler_soc_at_finalize ( void  )

Definition at line 17 of file smihandler.c.

References BIOS_DEBUG, CONFIG, heci1_disable(), pci_or_config32(), printk, SMM_CODE_CHK_EN, SMM_FEATURE_CONTROL, SMM_FEATURE_CONTROL_LOCK, and UBOX_DEV_PMON.

Referenced by finalize().

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

◆ smihandler_soc_disable_busmaster()

int smihandler_soc_disable_busmaster ( pci_devfn_t  dev)

Definition at line 9 of file smihandler.c.

References PCH_DEV_PMC.

Referenced by busmaster_disable_on_bus().

Here is the caller graph for this function:

◆ smihandler_southbridge_apmc()

◆ smihandler_southbridge_espi()

void smihandler_southbridge_espi ( const struct smm_save_state_ops save_state_ops)

Definition at line 497 of file smihandler.c.

References mainboard_smi_espi_handler().

Here is the call graph for this function:

◆ smihandler_southbridge_gpe0()

void smihandler_southbridge_gpe0 ( const struct smm_save_state_ops save_state_ops)

Definition at line 414 of file smihandler.c.

References pmc_clear_all_gpe_status().

Here is the call graph for this function:

◆ smihandler_southbridge_gpi()

void smihandler_southbridge_gpi ( const struct smm_save_state_ops save_state_ops)

Definition at line 485 of file smihandler.c.

References gpi_clear_get_smi_status(), and mainboard_smi_gpi_handler().

Here is the call graph for this function:

◆ smihandler_southbridge_mc()

void smihandler_southbridge_mc ( const struct smm_save_state_ops save_state_ops)

Definition at line 43 of file smitraphandler.c.

References ACPI_BASE_ADDRESS, BIOS_DEBUG, inl(), MCSMI_EN, printk, and SMI_EN.

Here is the call graph for this function:

◆ smihandler_southbridge_monitor()

void smihandler_southbridge_monitor ( const struct smm_save_state_ops save_state_ops)

Definition at line 55 of file smitraphandler.c.

References BIOS_DEBUG, gnvs, io_trap_handler(), IOTRAP, mask, PCR_PSTH_TRPC, PCR_PSTH_TRPD, PCR_PSTH_TRPST, pcr_read32(), pcr_read8(), pcr_write8(), PID_PSTH, printk, and global_nvs::smif.

Here is the call graph for this function:

◆ smihandler_southbridge_periodic()

void smihandler_southbridge_periodic ( const struct smm_save_state_ops save_state_ops)

Definition at line 472 of file smihandler.c.

References BIOS_DEBUG, PERIODIC_EN, pmc_get_smi_en(), and printk.

Here is the call graph for this function:

◆ smihandler_southbridge_pm1()

void smihandler_southbridge_pm1 ( const struct smm_save_state_ops save_state_ops)

◆ smihandler_southbridge_sleep()

◆ smihandler_southbridge_tco()

void smihandler_southbridge_tco ( const struct smm_save_state_ops save_state_ops)

Variable Documentation

◆ em64t100_smm_ops

const struct smm_save_state_ops em64t100_smm_ops
extern

Definition at line 627 of file smihandler.c.

Referenced by get_smm_save_state_ops().

◆ em64t101_smm_ops

const struct smm_save_state_ops em64t101_smm_ops
extern

Definition at line 627 of file smihandler.c.

Referenced by get_smm_save_state_ops().

◆ southbridge_smi

const smi_handler_t southbridge_smi[32]
extern

Definition at line 17 of file smihandler.c.

Referenced by southbridge_smi_handler().