coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
BiosCallOuts.c File Reference
#include <AGESA.h>
#include <console/console.h>
#include <spd_bin.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <FchPlatform.h>
#include "gpio_ftns.h"
#include "imc.h"
#include "hudson.h"
Include dependency graph for BiosCallOuts.c:

Go to the source code of this file.

Functions

static AGESA_STATUS board_ReadSpd_from_cbfs (UINT32 Func, UINTN Data, VOID *ConfigPtr)
 
static void oem_fan_control (FCH_DATA_BLOCK *FchParams)
 
void board_FCH_InitReset (struct sysinfo *cb_NA, FCH_RESET_DATA_BLOCK *FchParams)
 
void board_FCH_InitEnv (struct sysinfo *cb_NA, FCH_DATA_BLOCK *FchParams)
 

Variables

const BIOS_CALLOUT_STRUCT BiosCallouts []
 
const int BiosCalloutsLen = ARRAY_SIZE(BiosCallouts)
 

Function Documentation

◆ board_FCH_InitEnv()

void board_FCH_InitEnv ( struct sysinfo cb_NA,
FCH_DATA_BLOCK *  FchParams 
)

Definition at line 56 of file BiosCallOuts.c.

References BIOS_DEBUG, CONFIG, oem_fan_control(), and printk.

Here is the call graph for this function:

◆ board_FCH_InitReset()

void board_FCH_InitReset ( struct sysinfo cb_NA,
FCH_RESET_DATA_BLOCK *  FchParams 
)

Definition at line 44 of file BiosCallOuts.c.

References BIOS_DEBUG, CONFIG, hudson_ide_enable(), hudson_sata_enable(), and printk.

Here is the call graph for this function:

◆ board_ReadSpd_from_cbfs()

static AGESA_STATUS board_ReadSpd_from_cbfs ( UINT32  Func,
UINTN  Data,
VOID *  ConfigPtr 
)
static

Definition at line 106 of file BiosCallOuts.c.

References AGESA_SUCCESS, AGESA_UNSUPPORTED, die(), ENV_ROMSTAGE, get_spd_offset(), info, and read_ddr3_spd_from_cbfs().

Here is the call graph for this function:

◆ oem_fan_control()

static void oem_fan_control ( FCH_DATA_BLOCK *  FchParams)
static

Definition at line 37 of file BiosCallOuts.c.

Referenced by board_FCH_InitEnv().

Here is the caller graph for this function:

Variable Documentation

◆ BiosCallouts

const BIOS_CALLOUT_STRUCT BiosCallouts[]
Initial value:
=
{
{AGESA_READ_SPD, board_ReadSpd_from_cbfs },
{AGESA_DO_RESET, agesa_Reset },
{AGESA_READ_SPD_RECOVERY, agesa_NoopUnsupported },
{AGESA_RUNFUNC_ONAP, agesa_RunFuncOnAp },
{AGESA_GET_IDS_INIT_DATA, agesa_EmptyIdsInitData },
{AGESA_HOOKBEFORE_DQS_TRAINING, agesa_NoopSuccess },
{AGESA_HOOKBEFORE_EXIT_SELF_REF, agesa_NoopSuccess }
}
AGESA_STATUS agesa_RunFuncOnAp(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:102
AGESA_STATUS agesa_EmptyIdsInitData(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:58
AGESA_STATUS agesa_NoopUnsupported(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:48
AGESA_STATUS agesa_NoopSuccess(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:53
AGESA_STATUS agesa_Reset(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:66
static AGESA_STATUS board_ReadSpd_from_cbfs(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: BiosCallOuts.c:106

Definition at line 16 of file BiosCallOuts.c.

◆ BiosCalloutsLen

const int BiosCalloutsLen = ARRAY_SIZE(BiosCallouts)

Definition at line 26 of file BiosCallOuts.c.