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/msr.h>
#include <cpu/x86/smm.h>
#include <ec/acpi/ec.h>
#include <soc/nvs.h>
Include dependency graph for smihandler.c:

Go to the source code of this file.

Macros

#define APM_CNT_BOARD_SMI   0xDD
 

Functions

static void toggle_turbo_disable (uint8_t function_parameter_0)
 
static void enable_rf_by_capability (void)
 
static void handle_acpi_osys (void)
 
static void handle_acpi_wake_event (uint8_t function_parameter_0, uint8_t function_parameter_1)
 
static void ec_smi_handler (uint8_t smif)
 
int mainboard_smi_apmc (u8 data)
 

Macro Definition Documentation

◆ APM_CNT_BOARD_SMI

#define APM_CNT_BOARD_SMI   0xDD

Definition at line 24 of file smihandler.c.

Function Documentation

◆ ec_smi_handler()

static void ec_smi_handler ( uint8_t  smif)
static

Definition at line 115 of file smihandler.c.

References APM_STS, BIOS_DEBUG, BIOS_WARNING, gnvs, handle_acpi_wake_event(), inb(), printk, global_nvs::smif, and toggle_turbo_disable().

Referenced by mainboard_smi_apmc().

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

◆ enable_rf_by_capability()

static void enable_rf_by_capability ( void  )
static

Definition at line 40 of file smihandler.c.

References ec_read(), and ec_write().

Referenced by handle_acpi_wake_event().

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

◆ handle_acpi_osys()

static void handle_acpi_osys ( void  )
static

Definition at line 50 of file smihandler.c.

References BIOS_DEBUG, ec_write(), gnvs, printk, and global_nvs::unused_was_osys.

Referenced by handle_acpi_wake_event().

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

◆ handle_acpi_wake_event()

static void handle_acpi_wake_event ( uint8_t  function_parameter_0,
uint8_t  function_parameter_1 
)
static

Definition at line 87 of file smihandler.c.

References BIOS_DEBUG, enable_rf_by_capability(), handle_acpi_osys(), and printk.

Referenced by ec_smi_handler().

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

◆ mainboard_smi_apmc()

int mainboard_smi_apmc ( u8  data)

◆ toggle_turbo_disable()

static void toggle_turbo_disable ( uint8_t  function_parameter_0)
static

Definition at line 28 of file smihandler.c.

References BIOS_DEBUG, IA32_MISC_ENABLE, msr_set(), msr_unset(), and printk.

Referenced by ec_smi_handler().

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