coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.c File Reference
#include <types.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <device/pci_def.h>
#include <soc/nvs.h>
#include <southbridge/intel/common/pmutil.h>
#include "i82801gx.h"
Include dependency graph for smihandler.c:

Go to the source code of this file.

Macros

#define SMRAM   0x9d
 
#define D_OPEN   (1 << 6)
 
#define D_CLS   (1 << 5)
 
#define D_LCK   (1 << 4)
 
#define G_SMRANE   (1 << 3)
 
#define C_BASE_SEG   ((0 << 2) | (1 << 1) | (0 << 0))
 
#define IOTRAP(x)   (trap_sts & (1 << x))
 

Functions

int southbridge_io_trap_handler (int smif)
 
void southbridge_smi_monitor (void)
 
void southbridge_finalize_all (void)
 

Variables

u16 pmbase = DEFAULT_PMBASE
 

Macro Definition Documentation

◆ C_BASE_SEG

#define C_BASE_SEG   ((0 << 2) | (1 << 1) | (0 << 0))

Definition at line 17 of file smihandler.c.

◆ D_CLS

#define D_CLS   (1 << 5)

Definition at line 14 of file smihandler.c.

◆ D_LCK

#define D_LCK   (1 << 4)

Definition at line 15 of file smihandler.c.

◆ D_OPEN

#define D_OPEN   (1 << 6)

Definition at line 13 of file smihandler.c.

◆ G_SMRANE

#define G_SMRANE   (1 << 3)

Definition at line 16 of file smihandler.c.

◆ IOTRAP

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

◆ SMRAM

#define SMRAM   0x9d

Definition at line 12 of file smihandler.c.

Function Documentation

◆ southbridge_finalize_all()

void southbridge_finalize_all ( void  )

Definition at line 83 of file smihandler.c.

◆ southbridge_io_trap_handler()

int southbridge_io_trap_handler ( int  smif)

Definition at line 22 of file smihandler.c.

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

◆ southbridge_smi_monitor()

void southbridge_smi_monitor ( void  )

Definition at line 39 of file smihandler.c.

References BIOS_DEBUG, gnvs, io_trap_handler(), IOTRAP, mask, printk, RCBA32, and global_nvs::smif.

Here is the call graph for this function:

Variable Documentation

◆ pmbase

u16 pmbase = DEFAULT_PMBASE

Definition at line 20 of file smihandler.c.