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 <southbridge/intel/common/pmutil.h>
#include <northbridge/intel/ironlake/ironlake.h>
#include <ec/acpi/ec.h>
#include <ec/lenovo/h8/h8.h>
#include <delay.h>
#include "dock.h"
Include dependency graph for smihandler.c:

Go to the source code of this file.

Macros

#define GPE_EC_SCI   1
 
#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   1

Definition at line 13 of file smihandler.c.

◆ GPE_EC_WAKE

#define GPE_EC_WAKE   13

Definition at line 14 of file smihandler.c.

Function Documentation

◆ mainboard_smi_apmc()

int mainboard_smi_apmc ( u8  data)

Definition at line 59 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 53 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 16 of file smihandler.c.

References BIOS_DEBUG, dock_connect(), dock_disconnect(), ec_clr_bit(), ec_query(), EC_SC, EC_SCI_EVT, ec_set_bit(), ec_write(), inb(), mdelay(), 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 85 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: