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 <arch/io.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <soc/nvs.h>
#include <southbridge/intel/lynxpoint/pch.h>
#include <southbridge/intel/common/gpio.h>
#include <southbridge/intel/lynxpoint/me.h>
#include <northbridge/intel/haswell/haswell.h>
#include <cpu/intel/haswell/haswell.h>
#include <elog.h>
#include <ec/google/chromeec/ec.h>
#include "ec.h"
Include dependency graph for smihandler.c:

Go to the source code of this file.

Macros

#define GPIO_PP3300_CODEC_EN   45
 
#define GPIO_WLAN_DISABLE_L   46
 
#define GPIO_LTE_DISABLE_L   59
 

Functions

static u8 mainboard_smi_ec (void)
 
void mainboard_smi_gpi (u32 gpi_sts)
 
void mainboard_smi_sleep (u8 slp_typ)
 
int mainboard_smi_apmc (u8 apmc)
 

Macro Definition Documentation

◆ GPIO_LTE_DISABLE_L

#define GPIO_LTE_DISABLE_L   59

Definition at line 23 of file smihandler.c.

◆ GPIO_PP3300_CODEC_EN

#define GPIO_PP3300_CODEC_EN   45

Definition at line 20 of file smihandler.c.

◆ GPIO_WLAN_DISABLE_L

#define GPIO_WLAN_DISABLE_L   46

Definition at line 22 of file smihandler.c.

Function Documentation

◆ mainboard_smi_apmc()

int mainboard_smi_apmc ( u8  apmc)

◆ mainboard_smi_ec()

static u8 mainboard_smi_ec ( void  )
static

Definition at line 25 of file smihandler.c.

References BIOS_DEBUG, EC_HOST_EVENT_LID_CLOSED, elog_gsmi_add_event_byte(), ELOG_TYPE_EC_EVENT, get_pmbase(), google_chromeec_get_event(), inl(), outl(), PM1_CNT, 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_gpi()

void mainboard_smi_gpi ( u32  gpi_sts)

Definition at line 49 of file smihandler.c.

References EC_SMI_GPI, and mainboard_smi_ec().

Here is the call graph for this function:

◆ mainboard_smi_sleep()