coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
agesa_helper.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _AGESA_HELPER_H_
4 #define _AGESA_HELPER_H_
5 
6 #include <stddef.h>
7 #include <arch/romstage.h>
8 
9 enum {
10  PICK_DMI, /* DMI Interface */
11  PICK_PSTATE, /* Acpi Pstate SSDT Table */
12  PICK_SRAT, /* SRAT Table */
13  PICK_SLIT, /* SLIT Table */
14  PICK_WHEA_MCE, /* WHEA MCE table */
15  PICK_WHEA_CMC, /* WHEA CMV table */
16  PICK_ALIB, /* SACPI SSDT table with ALIB implementation */
17  PICK_IVRS, /* IOMMU ACPI IVRS(I/O Virtualization Reporting Structure) table */
18  PICK_CRAT, /* Component Resource Affinity Table table */
19  PICK_CDIT, /* Component Locality Distance Information table */
20 };
21 
22 void agesawrapper_setlateinitptr (void *Late);
23 void *agesawrapper_getlateinitptr (int pick);
24 
25 void amd_initcpuio(void);
26 void amd_initenv(void);
27 
28 void *GetHeapBase(void);
29 void EmptyHeap(void);
30 
31 #define BSP_STACK_BASE_ADDR 0x30000
32 
33 /* This covers node 0 only. */
34 #define HIGH_ROMSTAGE_STACK_SIZE (0x48000 - BSP_STACK_BASE_ADDR)
35 
36 #define HIGH_MEMORY_SCRATCH 0x30000
37 
38 void fixup_cbmem_to_UC(int s3resume);
39 void recover_postcar_frame(struct postcar_frame *pcf, int s3resume);
40 
41 void restore_mtrr(void);
42 void backup_mtrr(void *mtrr_store, u32 *mtrr_store_size);
43 const void *OemS3Saved_MTRR_Storage(void);
44 
45 #endif /* _AGESA_HELPER_H_ */
void backup_mtrr(void *mtrr_store, u32 *mtrr_store_size)
Definition: s3_mtrr.c:20
void amd_initenv(void)
Definition: fixme.c:54
void agesawrapper_setlateinitptr(void *Late)
Definition: acpi_tables.c:24
void fixup_cbmem_to_UC(int s3resume)
Definition: mtrr_fixme.c:36
void recover_postcar_frame(struct postcar_frame *pcf, int s3resume)
Definition: mtrr_fixme.c:54
const void * OemS3Saved_MTRR_Storage(void)
Definition: oem_s3.c:142
void amd_initcpuio(void)
Definition: fixme.c:11
void EmptyHeap(void)
Definition: heapmanager.c:36
void * GetHeapBase(void)
Definition: heapmanager.c:22
void restore_mtrr(void)
Definition: s3_mtrr.c:58
void * agesawrapper_getlateinitptr(int pick)
Definition: acpi_tables.c:34
@ PICK_CDIT
Definition: agesa_helper.h:19
@ PICK_PSTATE
Definition: agesa_helper.h:11
@ PICK_IVRS
Definition: agesa_helper.h:17
@ PICK_WHEA_CMC
Definition: agesa_helper.h:15
@ PICK_SRAT
Definition: agesa_helper.h:12
@ PICK_SLIT
Definition: agesa_helper.h:13
@ PICK_WHEA_MCE
Definition: agesa_helper.h:14
@ PICK_ALIB
Definition: agesa_helper.h:16
@ PICK_CRAT
Definition: agesa_helper.h:18
@ PICK_DMI
Definition: agesa_helper.h:10
uint32_t u32
Definition: stdint.h:51