1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _AGESA_HELPER_H_
4 #define _AGESA_HELPER_H_
6 #include <arch/romstage.h>
9 PICK_DMI
, /* DMI Interface */
10 PICK_PSTATE
, /* Acpi Pstate SSDT Table */
11 PICK_SRAT
, /* SRAT Table */
12 PICK_SLIT
, /* SLIT Table */
13 PICK_WHEA_MCE
, /* WHEA MCE table */
14 PICK_WHEA_CMC
, /* WHEA CMV table */
15 PICK_ALIB
, /* SACPI SSDT table with ALIB implementation */
16 PICK_IVRS
, /* IOMMU ACPI IVRS(I/O Virtualization Reporting Structure) table */
17 PICK_CRAT
, /* Component Resource Affinity Table table */
18 PICK_CDIT
, /* Component Locality Distance Information table */
21 void agesawrapper_setlateinitptr(void *Late
);
22 void *agesawrapper_getlateinitptr(int pick
);
24 void amd_initcpuio(void);
25 void amd_initenv(void);
27 void *GetHeapBase(void);
30 #define BSP_STACK_BASE_ADDR 0x30000
32 /* This covers node 0 only. */
33 #define HIGH_ROMSTAGE_STACK_SIZE (0x48000 - BSP_STACK_BASE_ADDR)
35 #define HIGH_MEMORY_SCRATCH 0x30000
37 void fixup_cbmem_to_UC(int s3resume
);
39 void restore_mtrr(void);
40 void backup_mtrr(void);
41 const void *OemS3Saved_MTRR_Storage(void);
43 #endif /* _AGESA_HELPER_H_ */