coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
def_callouts.c File Reference
#include <cbfs.h>
#include <console/console.h>
#include <cpu/x86/lapic.h>
#include <cpu/x86/mp.h>
#include <timer.h>
#include <amdblocks/BiosCallOuts.h>
#include <amdblocks/agesawrapper.h>
#include <amdblocks/agesawrapper_call.h>
#include <amdblocks/reset.h>
#include <soc/southbridge.h>
#include <types.h>
Include dependency graph for def_callouts.c:

Go to the source code of this file.

Data Structures

struct  agesa_data
 

Functions

AGESA_STATUS GetBiosCallout (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_NoopUnsupported (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_NoopSuccess (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_EmptyIdsInitData (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_Reset (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_GfxGetVbiosImage (uint32_t Func, uintptr_t FchData, void *ConfigPrt)
 
AGESA_STATUS __weak platform_PcieSlotResetControl (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_PcieSlotResetControl (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
static void callout_ap_entry (void *unused)
 
AGESA_STATUS agesa_RunFuncOnAp (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_RunFcnOnAllAps (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_WaitForAllApsFinished (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 
AGESA_STATUS agesa_IdleAnAp (uint32_t Func, uintptr_t Data, void *ConfigPtr)
 

Variables

const BIOS_CALLOUT_STRUCT BiosCallouts []
 
const int BiosCalloutsLen = ARRAY_SIZE(BiosCallouts)
 
static struct agesa_data agesadata
 

Function Documentation

◆ agesa_EmptyIdsInitData()

AGESA_STATUS agesa_EmptyIdsInitData ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

Definition at line 94 of file def_callouts.c.

References AGESA_SUCCESS.

◆ agesa_GfxGetVbiosImage()

AGESA_STATUS agesa_GfxGetVbiosImage ( uint32_t  Func,
uintptr_t  FchData,
void ConfigPrt 
)

Definition at line 134 of file def_callouts.c.

References AGESA_SUCCESS, AGESA_WARNING, BIOS_DEBUG, cbfs_map(), NULL, and printk.

Here is the call graph for this function:

◆ agesa_IdleAnAp()

AGESA_STATUS agesa_IdleAnAp ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

Definition at line 241 of file def_callouts.c.

References AGESA_UNSUPPORTED, BIOS_WARNING, and printk.

◆ agesa_NoopSuccess()

AGESA_STATUS agesa_NoopSuccess ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

Definition at line 89 of file def_callouts.c.

References AGESA_SUCCESS.

◆ agesa_NoopUnsupported()

AGESA_STATUS agesa_NoopUnsupported ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

Definition at line 83 of file def_callouts.c.

References AGESA_UNSUPPORTED.

◆ agesa_PcieSlotResetControl()

AGESA_STATUS agesa_PcieSlotResetControl ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

Definition at line 155 of file def_callouts.c.

References platform_PcieSlotResetControl().

Here is the call graph for this function:

◆ agesa_Reset()

AGESA_STATUS agesa_Reset ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

Definition at line 103 of file def_callouts.c.

References cold_reset(), and warm_reset().

Here is the call graph for this function:

◆ agesa_RunFcnOnAllAps()

AGESA_STATUS agesa_RunFcnOnAllAps ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

◆ agesa_RunFuncOnAp()

AGESA_STATUS agesa_RunFuncOnAp ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

◆ agesa_WaitForAllApsFinished()

AGESA_STATUS agesa_WaitForAllApsFinished ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

Definition at line 231 of file def_callouts.c.

References AGESA_UNSUPPORTED, BIOS_WARNING, and printk.

◆ callout_ap_entry()

static void callout_ap_entry ( void unused)
static

Definition at line 183 of file def_callouts.c.

References AGESA_UNSUPPORTED, agesadata, amd_late_run_ap_task(), BIOS_DEBUG, agesa_data::ConfigPtr, agesa_data::Data, decodeAGESA_STATUS(), agesa_data::Func, lapicid(), and printk.

Referenced by agesa_RunFcnOnAllAps(), and agesa_RunFuncOnAp().

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

◆ GetBiosCallout()

AGESA_STATUS GetBiosCallout ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

◆ platform_PcieSlotResetControl()

AGESA_STATUS __weak platform_PcieSlotResetControl ( uint32_t  Func,
uintptr_t  Data,
void ConfigPtr 
)

Definition at line 147 of file def_callouts.c.

References AGESA_UNSUPPORTED, BIOS_WARNING, and printk.

Referenced by agesa_PcieSlotResetControl().

Here is the caller graph for this function:

Variable Documentation

◆ agesadata

struct agesa_data agesadata
static

◆ BiosCallouts

const BIOS_CALLOUT_STRUCT BiosCallouts[]

Definition at line 24 of file def_callouts.c.

Referenced by GetBiosCallout().

◆ BiosCalloutsLen

const int BiosCalloutsLen = ARRAY_SIZE(BiosCallouts)

Definition at line 63 of file def_callouts.c.

Referenced by GetBiosCallout().