coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smitraphandler.c File Reference
#include <arch/io.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <intelblocks/fast_spi.h>
#include <intelblocks/pcr.h>
#include <intelblocks/smihandler.h>
#include <soc/gpio.h>
#include <soc/iomap.h>
#include <soc/nvs.h>
#include <soc/pcr_ids.h>
#include <soc/pm.h>
#include <soc/pmc.h>
Include dependency graph for smitraphandler.c:

Go to the source code of this file.

Macros

#define PCR_PSTH_TRPST   0x1E00
 
#define PCR_PSTH_TRPC   0x1E10
 
#define PCR_PSTH_TRPD   0x1E18
 
#define IOTRAP(x)   (trap_sts & (1 << x))
 

Functions

int southbridge_io_trap_handler (int smif)
 
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)
 

Macro Definition Documentation

◆ IOTRAP

#define IOTRAP (   x)    (trap_sts & (1 << x))

◆ PCR_PSTH_TRPC

#define PCR_PSTH_TRPC   0x1E10

Definition at line 20 of file smitraphandler.c.

◆ PCR_PSTH_TRPD

#define PCR_PSTH_TRPD   0x1E18

Definition at line 22 of file smitraphandler.c.

◆ PCR_PSTH_TRPST

#define PCR_PSTH_TRPST   0x1E00

Definition at line 18 of file smitraphandler.c.

Function Documentation

◆ 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:

◆ southbridge_io_trap_handler()

int southbridge_io_trap_handler ( int  smif)

Definition at line 25 of file smitraphandler.c.

References BIOS_DEBUG, gnvs, printk, and global_nvs::smif.