coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
eventlog.c File Reference
#include <cpu/x86/lapic.h>
#include <console/console.h>
#include <stdint.h>
#include <string.h>
#include <timestamp.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <amdlib.h>
#include <debug_util.h>
#include <AGESA.h>
#include <AMD.h>
Include dependency graph for eventlog.c:

Go to the source code of this file.

Data Structures

struct  agesa_mapping
 

Macros

#define MAX_LOG_ENTRIES   100
 

Functions

void agesa_state_on_entry (struct agesa_state *task, AGESA_STRUCT_NAME func)
 
void agesa_state_on_exit (struct agesa_state *task, AMD_CONFIG_PARAMS *StdHeader)
 
static const char * decodeAGESA_STATUS (AGESA_STATUS sret)
 
static void show_event (EVENT_PARAMS *Event)
 
static void amd_flush_eventlog (EVENT_PARAMS *Event)
 
void agesawrapper_trace (AGESA_STATUS ret, AMD_CONFIG_PARAMS *StdHeader, const char *func)
 
AGESA_STATUS agesawrapper_amdreadeventlog (UINT8 HeapStatus)
 

Variables

static const char undefined [] = "undefined"
 
static const struct agesa_mapping entrypoint []
 

Macro Definition Documentation

◆ MAX_LOG_ENTRIES

#define MAX_LOG_ENTRIES   100

Definition at line 165 of file eventlog.c.

Function Documentation

◆ agesa_state_on_entry()

void agesa_state_on_entry ( struct agesa_state task,
AGESA_STRUCT_NAME  func 
)

◆ agesa_state_on_exit()

void agesa_state_on_exit ( struct agesa_state task,
AMD_CONFIG_PARAMS StdHeader 
)

Definition at line 118 of file eventlog.c.

References agesa_state::apic_id, BIOS_DEBUG, agesa_state::func, agesa_state::function_name, and printk.

Referenced by agesa_execute_state().

Here is the caller graph for this function:

◆ agesawrapper_amdreadeventlog()

AGESA_STATUS agesawrapper_amdreadeventlog ( UINT8  HeapStatus)

Definition at line 197 of file eventlog.c.

References AGESA_SUCCESS, amd_flush_eventlog(), GetBiosCallout(), and memset().

Here is the call graph for this function:

◆ agesawrapper_trace()

void agesawrapper_trace ( AGESA_STATUS  ret,
AMD_CONFIG_PARAMS StdHeader,
const char *  func 
)

Definition at line 182 of file eventlog.c.

References AGESA_SUCCESS, amd_flush_eventlog(), BIOS_DEBUG, decodeAGESA_STATUS(), agesa_mapping::func, memcpy(), memset(), and printk.

Referenced by agesa_execute_state().

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

◆ amd_flush_eventlog()

static void amd_flush_eventlog ( EVENT_PARAMS *  Event)
static

Definition at line 167 of file eventlog.c.

References AGESA_SUCCESS, MAX_LOG_ENTRIES, module_dispatch(), and show_event().

Referenced by agesawrapper_amdreadeventlog(), and agesawrapper_trace().

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

◆ decodeAGESA_STATUS()

static const char* decodeAGESA_STATUS ( AGESA_STATUS  sret)
static

Definition at line 141 of file eventlog.c.

Referenced by agesawrapper_trace(), and callout_ap_entry().

Here is the caller graph for this function:

◆ show_event()

static void show_event ( EVENT_PARAMS *  Event)
static

Definition at line 152 of file eventlog.c.

References BIOS_DEBUG, and printk.

Referenced by amd_flush_eventlog().

Here is the caller graph for this function:

Variable Documentation

◆ entrypoint

const struct agesa_mapping entrypoint[]
static

Definition at line 16 of file eventlog.c.

Referenced by agesa_state_on_entry().

◆ undefined

const char undefined[] = "undefined"
static

Definition at line 16 of file eventlog.c.

Referenced by agesa_state_on_entry().