coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
elog.c File Reference
#include <arch/io.h>
#include <acpi/acpi.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <stdint.h>
#include <elog.h>
#include "pch.h"
Include dependency graph for elog.c:

Go to the source code of this file.

Functions

static void pch_log_standard_gpe (u32 gpe0_sts_reg, u32 gpe0_en_reg)
 
static void pch_log_gpio_gpe (u32 gpe0_sts_reg, u32 gpe0_en_reg, int start)
 
static void pch_log_gpe (void)
 
static void pch_lp_log_gpe (void)
 
void pch_log_state (void)
 

Function Documentation

◆ pch_log_gpe()

static void pch_log_gpe ( void  )
static

Definition at line 43 of file elog.c.

References elog_add_event_wake(), ELOG_WAKE_SOURCE_GPE, get_pmbase(), GPE0_EN, GPE0_EN_2, GPE0_STS, GPE0_STS_2, inl(), inw(), pch_log_standard_gpe(), and pmbase.

Referenced by pch_log_state().

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

◆ pch_log_gpio_gpe()

static void pch_log_gpio_gpe ( u32  gpe0_sts_reg,
u32  gpe0_en_reg,
int  start 
)
static

Definition at line 30 of file elog.c.

References elog_add_event_wake(), ELOG_WAKE_SOURCE_GPE, get_pmbase(), and inl().

Referenced by pch_lp_log_gpe().

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

◆ pch_log_standard_gpe()

static void pch_log_standard_gpe ( u32  gpe0_sts_reg,
u32  gpe0_en_reg 
)
static

Definition at line 12 of file elog.c.

References elog_add_event_wake(), ELOG_WAKE_SOURCE_PME, ELOG_WAKE_SOURCE_PME_INTERNAL, ELOG_WAKE_SOURCE_SMBUS, get_pmbase(), inl(), PME_B0_STS, PME_STS, and SMB_WAK_STS.

Referenced by pch_log_gpe(), and pch_lp_log_gpe().

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

◆ pch_log_state()

◆ pch_lp_log_gpe()

static void pch_lp_log_gpe ( void  )
static

Definition at line 86 of file elog.c.

References LP_GPE0_EN_1, LP_GPE0_EN_2, LP_GPE0_EN_3, LP_GPE0_EN_4, LP_GPE0_STS_1, LP_GPE0_STS_2, LP_GPE0_STS_3, LP_GPE0_STS_4, pch_log_gpio_gpe(), and pch_log_standard_gpe().

Referenced by pch_log_state().

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