coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smi_trigger.c File Reference
#include <arch/io.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
Include dependency graph for smi_trigger.c:

Go to the source code of this file.

Functions

static void apmc_log (const char *fn, u8 cmd)
 
int apm_control (u8 cmd)
 
u8 apm_get_apmc (void)
 

Function Documentation

◆ apm_control()

int apm_control ( u8  cmd)

Definition at line 31 of file smi_trigger.c.

References APM_CNT, apmc_log(), BIOS_DEBUG, CONFIG, ENV_SMM, outb(), and printk.

Referenced by aseg_smm_relocate(), finalize_chipset(), i82801gx_set_acpi_mode(), i82801ix_set_acpi_mode(), i82801jx_set_acpi_mode(), lpc_final(), mainboard_suspend_resume(), pch_set_acpi_mode(), soc_finalize(), and usb_xhci_init().

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

◆ apm_get_apmc()

u8 apm_get_apmc ( void  )

Definition at line 46 of file smi_trigger.c.

References APM_CNT, apmc_log(), and inb().

Referenced by smihandler_southbridge_apmc(), and southbridge_smi_apmc().

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

◆ apmc_log()

static void apmc_log ( const char *  fn,
u8  cmd 
)
static

Definition at line 7 of file smi_trigger.c.

References APM_CNT_ACPI_DISABLE, APM_CNT_ACPI_ENABLE, APM_CNT_ELOG_GSMI, APM_CNT_FINALIZE, APM_CNT_SMMINFO, APM_CNT_SMMSTORE, BIOS_DEBUG, and printk.

Referenced by apm_control(), and apm_get_apmc().

Here is the caller graph for this function: