coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
elog.h File Reference
#include <commonlib/bsd/elog.h>
#include <stdint.h>
Include dependency graph for elog.h:

Go to the source code of this file.

Functions

static int elog_init (void)
 
static int elog_clear (void)
 
static int elog_add_event_raw (u8 event_type, void *data, u8 data_size)
 
static int elog_add_event (u8 event_type)
 
static int elog_add_event_byte (u8 event_type, u8 data)
 
static int elog_add_event_word (u8 event_type, u16 data)
 
static int elog_add_event_dword (u8 event_type, u32 data)
 
static int elog_add_event_wake (u8 source, u32 instance)
 
static int elog_smbios_write_type15 (unsigned long *current, int handle)
 
static int elog_add_extended_event (u8 type, u32 complement)
 
static int elog_gsmi_add_event (u8 event_type)
 
static int elog_gsmi_add_event_byte (u8 event_type, u8 data)
 
static int elog_gsmi_add_event_word (u8 event_type, u16 data)
 
u32 gsmi_exec (u8 command, u32 *param)
 
static u32 boot_count_read (void)
 
u32 boot_count_increment (void)
 
static void elog_boot_notify (int s3_resume)
 
void elog_gsmi_cb_platform_log_wake_source (void)
 
void elog_gsmi_cb_mainboard_log_wake_source (void)
 

Function Documentation

◆ boot_count_increment()

u32 boot_count_increment ( void  )

Definition at line 74 of file boot_count.c.

References BIOS_DEBUG, boot_count_cmos_read(), boot_count_cmos_write(), BOOT_COUNT_SIGNATURE, boot_count::count, printk, and boot_count::signature.

Referenced by elog_boot_notify().

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

◆ boot_count_read()

static u32 boot_count_read ( void  )
inlinestatic

Definition at line 55 of file elog.h.

◆ elog_add_event()

static int elog_add_event ( u8  event_type)
inlinestatic

Definition at line 28 of file elog.h.

◆ elog_add_event_byte()

static int elog_add_event_byte ( u8  event_type,
u8  data 
)
inlinestatic

Definition at line 29 of file elog.h.

◆ elog_add_event_dword()

static int elog_add_event_dword ( u8  event_type,
u32  data 
)
inlinestatic

Definition at line 31 of file elog.h.

◆ elog_add_event_raw()

static int elog_add_event_raw ( u8  event_type,
void data,
u8  data_size 
)
inlinestatic

Definition at line 26 of file elog.h.

◆ elog_add_event_wake()

static int elog_add_event_wake ( u8  source,
u32  instance 
)
inlinestatic

Definition at line 32 of file elog.h.

◆ elog_add_event_word()

static int elog_add_event_word ( u8  event_type,
u16  data 
)
inlinestatic

Definition at line 30 of file elog.h.

◆ elog_add_extended_event()

static int elog_add_extended_event ( u8  type,
u32  complement 
)
inlinestatic

Definition at line 37 of file elog.h.

◆ elog_boot_notify()

static void elog_boot_notify ( int  s3_resume)
inlinestatic

Definition at line 62 of file elog.h.

References boot_count_increment(), and CONFIG.

Referenced by car_stage_entry(), ironlake_early_initialization(), mainboard_romstage_entry(), and raminit_common().

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

◆ elog_clear()

static int elog_clear ( void  )
inlinestatic

Definition at line 25 of file elog.h.

◆ elog_gsmi_add_event()

static int elog_gsmi_add_event ( u8  event_type)
inlinestatic

Definition at line 45 of file elog.h.

Referenced by smihandler_southbridge_pm1(), and southbridge_smi_pm1().

Here is the caller graph for this function:

◆ elog_gsmi_add_event_byte()

static int elog_gsmi_add_event_byte ( u8  event_type,
u8  data 
)
inlinestatic

Definition at line 46 of file elog.h.

Referenced by chromeec_process_one_event(), fch_slp_typ_handler(), mainboard_smi_ec(), smihandler_southbridge_sleep(), and southbridge_smi_sleep().

Here is the caller graph for this function:

◆ elog_gsmi_add_event_word()

static int elog_gsmi_add_event_word ( u8  event_type,
u16  data 
)
inlinestatic

Definition at line 47 of file elog.h.

◆ elog_gsmi_cb_mainboard_log_wake_source()

void elog_gsmi_cb_mainboard_log_wake_source ( void  )

Definition at line 40 of file gsmi.c.

References CONFIG, google_chromeec_log_events(), info, MAINBOARD_EC_LOG_EVENTS, MAINBOARD_EC_S0IX_WAKE_EVENTS, MAINBOARD_EC_S3_WAKE_EVENTS, and variant_get_event_info().

Referenced by gsmi_exec().

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

◆ elog_gsmi_cb_platform_log_wake_source()

void elog_gsmi_cb_platform_log_wake_source ( void  )

Definition at line 35 of file gsmi.c.

References acpi_log_events(), chipset_state, fill_chipset_state(), pch_log_wake_source(), and pmc_fill_pm_reg_info().

Referenced by gsmi_exec().

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

◆ elog_init()

static int elog_init ( void  )
inlinestatic

Definition at line 24 of file elog.h.

◆ elog_smbios_write_type15()

static int elog_smbios_write_type15 ( unsigned long *  current,
int  handle 
)
inlinestatic

Definition at line 33 of file elog.h.

◆ gsmi_exec()