coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
state_machine.c File Reference
#include <Porting.h>
#include <AGESA.h>
#include <amdblocks/biosram.h>
#include <arch/io.h>
#include <cf9_reset.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <smp/node.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <northbridge/amd/agesa/agesa_helper.h>
#include <sb_cimx.h>
Include dependency graph for state_machine.c:

Go to the source code of this file.

Functions

void platform_BeforeInitReset (struct sysinfo *cb, AMD_RESET_PARAMS *Reset)
 
void platform_BeforeInitEarly (struct sysinfo *cb, AMD_EARLY_PARAMS *Early)
 
void platform_BeforeInitPost (struct sysinfo *cb, AMD_POST_PARAMS *Post)
 
void platform_AfterInitPost (struct sysinfo *cb, AMD_POST_PARAMS *Post)
 
void platform_BeforeInitResume (struct sysinfo *cb, AMD_RESUME_PARAMS *Resume)
 
void platform_AfterInitResume (struct sysinfo *cb, AMD_RESUME_PARAMS *Resume)
 
void platform_BeforeInitEnv (struct sysinfo *cb, AMD_ENV_PARAMS *Env)
 
void platform_AfterInitEnv (struct sysinfo *cb, AMD_ENV_PARAMS *Env)
 
void platform_BeforeS3LateRestore (struct sysinfo *cb, AMD_S3LATE_PARAMS *S3Late)
 
void platform_AfterS3LateRestore (struct sysinfo *cb, AMD_S3LATE_PARAMS *S3Late)
 
void platform_BeforeInitMid (struct sysinfo *cb, AMD_MID_PARAMS *Mid)
 
void platform_BeforeInitLate (struct sysinfo *cb, AMD_LATE_PARAMS *Late)
 
void platform_AfterInitLate (struct sysinfo *cb, AMD_LATE_PARAMS *Late)
 
void platform_AfterS3Save (struct sysinfo *cb, AMD_S3SAVE_PARAMS *S3Save)
 

Function Documentation

◆ platform_AfterInitEnv()

void platform_AfterInitEnv ( struct sysinfo cb,
AMD_ENV_PARAMS *  Env 
)

Definition at line 73 of file state_machine.c.

References amd_initenv().

Referenced by ramstage_dispatch().

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

◆ platform_AfterInitLate()

void platform_AfterInitLate ( struct sysinfo cb,
AMD_LATE_PARAMS *  Late 
)

Definition at line 99 of file state_machine.c.

References sb_Late_Post().

Referenced by ramstage_dispatch().

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

◆ platform_AfterInitPost()

void platform_AfterInitPost ( struct sysinfo cb,
AMD_POST_PARAMS *  Post 
)

Definition at line 54 of file state_machine.c.

References backup_top_of_low_cacheable().

Referenced by romstage_dispatch().

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

◆ platform_AfterInitResume()

void platform_AfterInitResume ( struct sysinfo cb,
AMD_RESUME_PARAMS *  Resume 
)

Definition at line 64 of file state_machine.c.

Referenced by romstage_dispatch().

Here is the caller graph for this function:

◆ platform_AfterS3LateRestore()

void platform_AfterS3LateRestore ( struct sysinfo cb,
AMD_S3LATE_PARAMS *  S3Late 
)

Definition at line 83 of file state_machine.c.

Referenced by ramstage_dispatch().

Here is the caller graph for this function:

◆ platform_AfterS3Save()

void platform_AfterS3Save ( struct sysinfo cb,
AMD_S3SAVE_PARAMS *  S3Save 
)

Definition at line 104 of file state_machine.c.

References OemS3Save().

Referenced by ramstage_dispatch().

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

◆ platform_BeforeInitEarly()

void platform_BeforeInitEarly ( struct sysinfo cb,
AMD_EARLY_PARAMS *  Early 
)

Definition at line 44 of file state_machine.c.

Referenced by romstage_dispatch().

Here is the caller graph for this function:

◆ platform_BeforeInitEnv()

void platform_BeforeInitEnv ( struct sysinfo cb,
AMD_ENV_PARAMS *  Env 
)

Definition at line 68 of file state_machine.c.

References EmptyHeap().

Referenced by ramstage_dispatch().

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

◆ platform_BeforeInitLate()

void platform_BeforeInitLate ( struct sysinfo cb,
AMD_LATE_PARAMS *  Late 
)

Definition at line 95 of file state_machine.c.

Referenced by ramstage_dispatch().

Here is the caller graph for this function:

◆ platform_BeforeInitMid()

void platform_BeforeInitMid ( struct sysinfo cb,
AMD_MID_PARAMS *  Mid 
)

Definition at line 87 of file state_machine.c.

References amd_initcpuio(), sb_After_Pci_Init(), and sb_Mid_Post_Init().

Referenced by ramstage_dispatch().

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

◆ platform_BeforeInitPost()

void platform_BeforeInitPost ( struct sysinfo cb,
AMD_POST_PARAMS *  Post 
)

Definition at line 48 of file state_machine.c.

References MAX, and MIN.

Referenced by romstage_dispatch().

Here is the caller graph for this function:

◆ platform_BeforeInitReset()

void platform_BeforeInitReset ( struct sysinfo cb,
AMD_RESET_PARAMS *  Reset 
)

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().

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

◆ platform_BeforeInitResume()

void platform_BeforeInitResume ( struct sysinfo cb,
AMD_RESUME_PARAMS *  Resume 
)

Definition at line 59 of file state_machine.c.

References OemInitResume().

Referenced by romstage_dispatch().

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

◆ platform_BeforeS3LateRestore()

void platform_BeforeS3LateRestore ( struct sysinfo cb,
AMD_S3LATE_PARAMS *  S3Late 
)

Definition at line 78 of file state_machine.c.

References OemS3LateRestore().

Referenced by ramstage_dispatch().

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