coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
agesa_helper.h File Reference
#include <stddef.h>
#include <arch/romstage.h>
Include dependency graph for agesa_helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BSP_STACK_BASE_ADDR   0x30000
 
#define HIGH_ROMSTAGE_STACK_SIZE   (0x48000 - BSP_STACK_BASE_ADDR)
 
#define HIGH_MEMORY_SCRATCH   0x30000
 

Enumerations

enum  {
  PICK_DMI , PICK_PSTATE , PICK_SRAT , PICK_SLIT ,
  PICK_WHEA_MCE , PICK_WHEA_CMC , PICK_ALIB , PICK_IVRS ,
  PICK_CRAT , PICK_CDIT
}
 

Functions

void agesawrapper_setlateinitptr (void *Late)
 
voidagesawrapper_getlateinitptr (int pick)
 
void amd_initcpuio (void)
 
void amd_initenv (void)
 
voidGetHeapBase (void)
 
void EmptyHeap (void)
 
void fixup_cbmem_to_UC (int s3resume)
 
void recover_postcar_frame (struct postcar_frame *pcf, int s3resume)
 
void restore_mtrr (void)
 
void backup_mtrr (void *mtrr_store, u32 *mtrr_store_size)
 
const voidOemS3Saved_MTRR_Storage (void)
 

Macro Definition Documentation

◆ BSP_STACK_BASE_ADDR

#define BSP_STACK_BASE_ADDR   0x30000

Definition at line 31 of file agesa_helper.h.

◆ HIGH_MEMORY_SCRATCH

#define HIGH_MEMORY_SCRATCH   0x30000

Definition at line 36 of file agesa_helper.h.

◆ HIGH_ROMSTAGE_STACK_SIZE

#define HIGH_ROMSTAGE_STACK_SIZE   (0x48000 - BSP_STACK_BASE_ADDR)

Definition at line 34 of file agesa_helper.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PICK_DMI 
PICK_PSTATE 
PICK_SRAT 
PICK_SLIT 
PICK_WHEA_MCE 
PICK_WHEA_CMC 
PICK_ALIB 
PICK_IVRS 
PICK_CRAT 
PICK_CDIT 

Definition at line 9 of file agesa_helper.h.

Function Documentation

◆ agesawrapper_getlateinitptr()

void* agesawrapper_getlateinitptr ( int  pick)

Definition at line 34 of file acpi_tables.c.

◆ agesawrapper_setlateinitptr()

void agesawrapper_setlateinitptr ( void Late)

Definition at line 24 of file acpi_tables.c.

References AmdLateParams.

◆ amd_initcpuio()

void amd_initcpuio ( void  )

Definition at line 11 of file fixme.c.

◆ amd_initenv()

void amd_initenv ( void  )

Definition at line 54 of file fixme.c.

References AccessWidth32.

Referenced by platform_AfterInitEnv().

Here is the caller graph for this function:

◆ backup_mtrr()

void backup_mtrr ( void mtrr_store,
u32 mtrr_store_size 
)

◆ EmptyHeap()

void EmptyHeap ( void  )

Definition at line 36 of file heapmanager.c.

References base, BIOS_DEBUG, BIOS_HEAP_SIZE, GetHeapBase(), memset(), and printk.

Referenced by platform_BeforeInitEnv().

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

◆ fixup_cbmem_to_UC()

void fixup_cbmem_to_UC ( int  s3resume)

Definition at line 36 of file mtrr_fixme.c.

References ALIGN_UP, cbmem_top(), MiB, and set_range_uc().

Referenced by romstage_main().

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

◆ GetHeapBase()

void* GetHeapBase ( void  )

Definition at line 22 of file heapmanager.c.

References acpi_is_wakeup_s3(), BIOS_HEAP_START_ADDRESS, cbmem_find(), and CBMEM_ID_RESUME_SCRATCH.

Referenced by EmptyHeap(), and HeapManagerCallout().

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

◆ OemS3Saved_MTRR_Storage()

const void* OemS3Saved_MTRR_Storage ( void  )

Definition at line 142 of file oem_s3.c.

References get_s3nv_data(), NULL, S3DataTypeMTRR, and spi_flash::size.

Referenced by restore_mtrr().

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

◆ recover_postcar_frame()

void recover_postcar_frame ( struct postcar_frame pcf,
int  s3resume 
)

Definition at line 54 of file mtrr_fixme.c.

References ALIGN_DOWN, base, cbmem_top(), postcar_frame::ctx, mask, var_mtrr_context::max_var_mtrrs, MiB, MTRR_PHYS_BASE, MTRR_PHYS_MASK, MTRR_PHYS_MASK_VALID, MTRR_TYPE_UNCACHEABLE, MTRR_TYPE_WRBACK, postcar_frame_add_mtrr(), rdmsr(), and type.

Referenced by romstage_main().

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

◆ restore_mtrr()