coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.c File Reference
#include <arch/io.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <ec/acpi/ec.h>
#include <ec/lenovo/h8/h8.h>
#include <southbridge/intel/common/pmutil.h>
#include <southbridge/intel/bd82x6x/pch.h>
Include dependency graph for smihandler.c:

Go to the source code of this file.

Macros

#define GPE_EC_SCI   6
 
#define GPE_EC_WAKE   13
 

Functions

static void mainboard_smi_handle_ec_sci (void)
 
void mainboard_smi_gpi (u32 gpi_sts)
 
int mainboard_smi_apmc (u8 data)
 
void mainboard_smi_sleep (u8 slp_typ)
 

Macro Definition Documentation

◆ GPE_EC_SCI

#define GPE_EC_SCI   6

Definition at line 11 of file smihandler.c.

◆ GPE_EC_WAKE

#define GPE_EC_WAKE   13

Definition at line 13 of file smihandler.c.

Function Documentation

◆ mainboard_smi_apmc()

int mainboard_smi_apmc ( u8  data)

Definition at line 33 of file smihandler.c.

References APM_CNT_ACPI_DISABLE, APM_CNT_ACPI_ENABLE, ec_set_ports(), ec_write(), GPE_EC_SCI, GPI_IS_SCI, GPI_IS_SMI, and gpi_route_interrupt().

Here is the call graph for this function:

◆ mainboard_smi_gpi()

void mainboard_smi_gpi ( u32  gpi_sts)

Definition at line 27 of file smihandler.c.

References GPE_EC_SCI, and mainboard_smi_handle_ec_sci().

Here is the call graph for this function:

◆ mainboard_smi_handle_ec_sci()

static void mainboard_smi_handle_ec_sci ( void  )
static

Definition at line 15 of file smihandler.c.

References BIOS_DEBUG, ec_query(), EC_SC, EC_SCI_EVT, inb(), and printk.

Referenced by mainboard_smi_gpi().

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

◆ mainboard_smi_sleep()

void mainboard_smi_sleep ( u8  slp_typ)

Definition at line 59 of file smihandler.c.

References ec_read(), GPE_EC_WAKE, GPI_IS_SCI, and gpi_route_interrupt().

Here is the call graph for this function: