![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Data Structures | |
struct | sysinfo |
struct | agesa_state |
Macros | |
#define | HAS_AGESA_FCH_OEM_CALLOUT |
Functions | |
void | agesawrapper_trace (AGESA_STATUS ret, AMD_CONFIG_PARAMS *StdHeader, const char *func) |
AGESA_STATUS | agesawrapper_amdreadeventlog (UINT8 HeapStatus) |
AGESA_STATUS | OemInitResume (AMD_S3_PARAMS *dataBlock) |
AGESA_STATUS | OemS3LateRestore (AMD_S3_PARAMS *dataBlock) |
AGESA_STATUS | OemS3Save (AMD_S3_PARAMS *dataBlock) |
AGESA_STATUS | fchs3earlyrestore (AMD_CONFIG_PARAMS *StdHeader) |
AGESA_STATUS | fchs3laterestore (AMD_CONFIG_PARAMS *StdHeader) |
void | board_BeforeAgesa (struct sysinfo *cb) |
void | agesa_set_interface (struct sysinfo *cb) |
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) |
int | agesa_execute_state (struct sysinfo *cb, AGESA_STRUCT_NAME func) |
AGESA_STATUS | module_dispatch (AGESA_STRUCT_NAME func, AMD_CONFIG_PARAMS *StdHeader) |
void | platform_BeforeInitReset (struct sysinfo *cb, AMD_RESET_PARAMS *Reset) |
void | board_BeforeInitReset (struct sysinfo *cb, AMD_RESET_PARAMS *Reset) |
void | platform_BeforeInitEarly (struct sysinfo *cb, AMD_EARLY_PARAMS *Early) |
void | board_BeforeInitEarly (struct sysinfo *cb, AMD_EARLY_PARAMS *Early) |
void | platform_BeforeInitPost (struct sysinfo *cb, AMD_POST_PARAMS *Post) |
void | board_BeforeInitPost (struct sysinfo *cb, AMD_POST_PARAMS *Post) |
void | platform_AfterInitPost (struct sysinfo *cb, AMD_POST_PARAMS *Post) |
void | platform_BeforeInitEnv (struct sysinfo *cb, AMD_ENV_PARAMS *Env) |
void | board_BeforeInitEnv (struct sysinfo *cb, AMD_ENV_PARAMS *Env) |
void | platform_AfterInitEnv (struct sysinfo *cb, AMD_ENV_PARAMS *Env) |
void | platform_BeforeInitMid (struct sysinfo *cb, AMD_MID_PARAMS *Mid) |
void | board_BeforeInitMid (struct sysinfo *cb, AMD_MID_PARAMS *Mid) |
void | platform_BeforeInitLate (struct sysinfo *cb, AMD_LATE_PARAMS *Late) |
void | board_BeforeInitLate (struct sysinfo *cb, AMD_LATE_PARAMS *Late) |
void | platform_AfterInitLate (struct sysinfo *cb, AMD_LATE_PARAMS *Late) |
void | completion_InitLate (struct sysinfo *cb, AMD_LATE_PARAMS *Late) |
void | platform_BeforeInitResume (struct sysinfo *cb, AMD_RESUME_PARAMS *Resume) |
void | platform_AfterInitResume (struct sysinfo *cb, AMD_RESUME_PARAMS *Resume) |
void | platform_BeforeS3LateRestore (struct sysinfo *cb, AMD_S3LATE_PARAMS *S3Late) |
void | platform_AfterS3LateRestore (struct sysinfo *cb, AMD_S3LATE_PARAMS *S3Late) |
void | platform_AfterS3Save (struct sysinfo *cb, AMD_S3SAVE_PARAMS *S3Save) |
#define HAS_AGESA_FCH_OEM_CALLOUT |
Definition at line 89 of file state_machine.h.
int agesa_execute_state | ( | struct sysinfo * | cb, |
AGESA_STRUCT_NAME | func | ||
) |
Definition at line 230 of file state_machine.c.
References AGESA_FATAL, agesa_state_on_entry(), agesa_state_on_exit(), AGESA_SUCCESS, agesawrapper_trace(), amd_create_struct(), amd_release_struct(), ASSERT, buf, CONFIG, ENV_RAMSTAGE, ENV_ROMSTAGE, agesa_state::func, _AMD_CONFIG_PARAMS::Func, agesa_state::function_name, memcpy(), memset(), NULL, ramstage_dispatch(), reset(), romstage_dispatch(), sysinfo::StdHeader, timestamp_add_now(), agesa_state::ts_entry_id, and agesa_state::ts_exit_id.
Referenced by ap_romstage_main(), do_agesawrapper(), and romstage_main().
Definition at line 43 of file state_machine.c.
References agesa_locate_image(), ASSERT, _AMD_CONFIG_PARAMS::CalloutPtr, CONFIG, GetBiosCallout(), _AMD_CONFIG_PARAMS::ImageBasePtr, memset(), _AMD_IMAGE_HEADER::ModuleInfoOffset, and sysinfo::StdHeader.
Referenced by fill_sysinfo().
void agesa_state_on_entry | ( | struct agesa_state * | task, |
AGESA_STRUCT_NAME | func | ||
) |
Definition at line 97 of file eventlog.c.
References agesa_state::apic_id, ARRAY_SIZE, BIOS_DEBUG, agesa_mapping::entry_id, entrypoint, agesa_mapping::exit_id, agesa_mapping::func, agesa_state::func, agesa_state::function_name, initial_lapicid(), agesa_mapping::name, printk, agesa_state::ts_entry_id, agesa_state::ts_exit_id, and undefined.
Referenced by agesa_execute_state().
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().
AGESA_STATUS agesawrapper_amdreadeventlog | ( | UINT8 | HeapStatus | ) |
Definition at line 197 of file eventlog.c.
References AGESA_SUCCESS, amd_flush_eventlog(), GetBiosCallout(), and memset().
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().
Definition at line 19 of file romstage.c.
References do_smbus_write_byte(), early_lpc_init(), PCI_DEV, pci_read_config32(), pci_write_config32(), pm_read8(), pm_write8(), post_code, smbus_setup(), and val.
Referenced by romstage_main().
Definition at line 349 of file state_machine.c.
References PcieComplex.
Referenced by romstage_dispatch().
Definition at line 353 of file state_machine.c.
Referenced by ramstage_dispatch().
Definition at line 357 of file state_machine.c.
Referenced by ramstage_dispatch().
Definition at line 355 of file state_machine.c.
Referenced by ramstage_dispatch().
Definition at line 351 of file state_machine.c.
References CONFIG, get_spd_offset(), MemoryTable_M, MemoryTable_M_LE, MemoryTable_XM_E, and PlatformMemoryTable.
Referenced by romstage_dispatch().
Definition at line 347 of file state_machine.c.
References CONFIG.
Referenced by romstage_dispatch().
Definition at line 29 of file acpi_tables.c.
References AmdLateParams.
Referenced by ramstage_dispatch().
AGESA_STATUS fchs3earlyrestore | ( | AMD_CONFIG_PARAMS * | StdHeader | ) |
Definition at line 360 of file state_machine.c.
References AGESA_SUCCESS, and s3_resume_init_data().
AGESA_STATUS fchs3laterestore | ( | AMD_CONFIG_PARAMS * | StdHeader | ) |
Definition at line 366 of file state_machine.c.
References AGESA_SUCCESS, and s3_resume_init_data().
AGESA_STATUS module_dispatch | ( | AGESA_STRUCT_NAME | func, |
AMD_CONFIG_PARAMS * | StdHeader | ||
) |
Definition at line 60 of file state_machine.c.
References _AMD_CONFIG_PARAMS::Func, _AMD_CONFIG_PARAMS::ImageBasePtr, and _AMD_IMAGE_HEADER::ModuleInfoOffset.
Referenced by agesa_RunFuncOnAp(), amd_create_struct(), amd_flush_eventlog(), amd_release_struct(), ramstage_dispatch(), and romstage_dispatch().
AGESA_STATUS OemInitResume | ( | AMD_S3_PARAMS * | dataBlock | ) |
Definition at line 47 of file oem_s3.c.
References AGESA_FATAL, AGESA_SUCCESS, get_s3nv_data(), and S3DataTypeNonVolatile.
Referenced by amd_init_resume(), platform_BeforeInitPost(), and platform_BeforeInitResume().
AGESA_STATUS OemS3LateRestore | ( | AMD_S3_PARAMS * | dataBlock | ) |
Definition at line 63 of file oem_s3.c.
References AGESA_FATAL, AGESA_SUCCESS, BIOS_DEBUG, cbmem_find(), CBMEM_ID_RESUME_SCRATCH, HIGH_MEMORY_SCRATCH, NULL, and printk.
Referenced by amd_s3final_restore(), amd_s3late_restore(), and platform_BeforeS3LateRestore().
AGESA_STATUS OemS3Save | ( | AMD_S3_PARAMS * | dataBlock | ) |
Referenced by amd_init_rtb(), and platform_AfterS3Save().
Definition at line 73 of file state_machine.c.
References amd_initenv().
Referenced by ramstage_dispatch().
Definition at line 99 of file state_machine.c.
References sb_Late_Post().
Referenced by ramstage_dispatch().
Definition at line 54 of file state_machine.c.
References backup_top_of_low_cacheable().
Referenced by romstage_dispatch().
Definition at line 64 of file state_machine.c.
Referenced by romstage_dispatch().
Definition at line 83 of file state_machine.c.
References amd_initcpuio().
Referenced by ramstage_dispatch().
Definition at line 104 of file state_machine.c.
References OemS3Save().
Referenced by ramstage_dispatch().
Definition at line 44 of file state_machine.c.
Referenced by romstage_dispatch().
Definition at line 68 of file state_machine.c.
References EmptyHeap().
Referenced by ramstage_dispatch().
Definition at line 95 of file state_machine.c.
References device::enabled, and pcidev_on_root().
Referenced by ramstage_dispatch().
Definition at line 87 of file state_machine.c.
References amd_initcpuio(), IO_APIC2_ADDR, sb_After_Pci_Init(), and sb_Mid_Post_Init().
Referenced by ramstage_dispatch().
Definition at line 48 of file state_machine.c.
References AGESA_SUCCESS, CONFIG, MAX, MIN, and OemInitResume().
Referenced by romstage_dispatch().
Definition at line 17 of file state_machine.c.
References BIOS_CRIT, boot_cpu(), PCI_DEV, pci_read_config32(), pcidev_on_root(), printk, sb_Poweron_Init(), and system_reset().
Referenced by romstage_dispatch().
Definition at line 59 of file state_machine.c.
References OemInitResume().
Referenced by romstage_dispatch().
Definition at line 78 of file state_machine.c.
References OemS3LateRestore().
Referenced by ramstage_dispatch().