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 <console/console.h>
#include <cpu/x86/smm.h>
#include "commands.h"
#include "ec.h"
#include "smm.h"
Include dependency graph for smihandler.c:

Go to the source code of this file.

Functions

void wilco_ec_smi_sleep (int slp_type)
 wilco_ec_smi_sleep More...
 
void wilco_ec_smi_apmc (int apmc)
 wilco_ec_smi_apmc More...
 
void wilco_ec_smi_espi (void)
 wilco_ec_smi_espi More...
 

Function Documentation

◆ wilco_ec_smi_apmc()

void wilco_ec_smi_apmc ( int  apmc)

wilco_ec_smi_apmc

Perform EC actions on ACPI OS commands. This is used when the OS enables or disables ACPI.

@apmc: OS command

Definition at line 26 of file smihandler.c.

References ACPI_OFF, ACPI_ON, APM_CNT_ACPI_DISABLE, APM_CNT_ACPI_ENABLE, KB_ACPI, and wilco_ec_send().

Referenced by mainboard_smi_apmc().

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

◆ wilco_ec_smi_espi()

void wilco_ec_smi_espi ( void  )

wilco_ec_smi_espi

Perform EC actions on EC eSPI SMI interrupt.

Definition at line 38 of file smihandler.c.

References BIOS_INFO, ec_pm_event_state::event, ec_pm_event_state::hotkey, printk, ec_pm_event_state::state, and wilco_ec_get_pm().

Referenced by mainboard_smi_espi_handler().

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

◆ wilco_ec_smi_sleep()

void wilco_ec_smi_sleep ( int  slp_type)

wilco_ec_smi_sleep

Perform EC actions before suspend or power-off.

@slp_type: Requested sleep type

Definition at line 11 of file smihandler.c.

References ACPI_S3, ACPI_S5, EC_ACPI_WAKE_LID, EC_ACPI_WAKE_PWRB, EC_SWOFF_ACPI, KB_SAVE, WAKE_ON, wilco_ec_change_wake(), wilco_ec_power_off(), wilco_ec_send_noargs(), and wilco_ec_slp_en().

Referenced by mainboard_smi_sleep().

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