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 <cpu/x86/cache.h>
#include <cpu/x86/smm.h>
#include <elog.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)
 

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 147 of file smihandler.c.

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

◆ southbridge_io_trap_handler()

int southbridge_io_trap_handler ( int  smif)

Definition at line 133 of file smihandler.c.

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:20
static void fch_slp_typ_handler(void)
Definition: smihandler.c:48

Definition at line 133 of file smihandler.c.

Referenced by get_smi_source_handler().