coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.c File Reference
#include <acpi/acpi.h>
#include <amdblocks/acpi.h>
#include <amdblocks/acpimmio.h>
#include <amdblocks/psp.h>
#include <amdblocks/smi.h>
#include <amdblocks/smm.h>
#include <arch/hlt.h>
#include <arch/io.h>
#include <console/console.h>
#include <console/cbmem_console.h>
#include <cpu/x86/cache.h>
#include <cpu/x86/smm.h>
#include <elog.h>
#include <soc/psp_transfer.h>
#include <soc/smi.h>
#include <soc/smu.h>
#include <soc/southbridge.h>
#include <types.h>
Include dependency graph for smihandler.c:

Go to the source code of this file.

Functions

static void fch_apmc_smi_handler (void)
 
static void fch_slp_typ_handler (void)
 
int southbridge_io_trap_handler (int smif)
 
voidget_smi_source_handler (int source)
 
void smm_soc_early_init (void)
 

Variables

static const struct smi_sources_t smi_sources []
 

Function Documentation

◆ fch_apmc_smi_handler()

◆ fch_slp_typ_handler()

◆ get_smi_source_handler()

void* get_smi_source_handler ( int  source)

Definition at line 145 of file smihandler.c.

References ARRAY_SIZE, smi_sources_t::handler, NULL, smi_sources, and type.

Referenced by process_smi_sources().

Here is the caller graph for this function:

◆ smm_soc_early_init()

void smm_soc_early_init ( void  )

Definition at line 156 of file smihandler.c.

References __CBMEM_CONSOLE_ENABLE__, CONFIG, and replay_transfer_buffer_cbmemc().

Here is the call graph for this function:

◆ southbridge_io_trap_handler()

int southbridge_io_trap_handler ( int  smif)

Definition at line 131 of file smihandler.c.

Referenced by io_trap_handler().

Here is the caller graph for this function:

Variable Documentation

◆ smi_sources

const struct smi_sources_t smi_sources[]
static
Initial value:
= {
{ .type = SMITYPE_SMI_CMD_PORT, .handler = fch_apmc_smi_handler },
{ .type = SMITYPE_SLP_TYP, .handler = fch_slp_typ_handler},
}
#define SMITYPE_SLP_TYP
Definition: smi.h:107
#define SMITYPE_SMI_CMD_PORT
Definition: smi.h:113
static void fch_apmc_smi_handler(void)
Definition: smihandler.c:22
static void fch_slp_typ_handler(void)
Definition: smihandler.c:50

Definition at line 131 of file smihandler.c.

Referenced by get_smi_source_handler().