summaryrefslogtreecommitdiff
path: root/src/include/acpi
diff options
context:
space:
mode:
authorShuo Liu <shuo.liu@intel.com>2022-07-05 22:56:28 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-02-20 12:40:48 +0000
commit3108ba5a070559cd1a682edb448bd2ccf474833a (patch)
treefb6cfce2f6e9be3565fcb72d6b3c79161653e55d /src/include/acpi
parent08f1f05bf6592359e3a4b1d1eaff8223e012684e (diff)
soc/intel/xeon_sp: Use ACPI common flags in SRAT generation
Move the definition of SRAT memory flags (SRAT_ACPI_MEMORY_ENABLED and SRAT_ACPI_MEMORY_NONVOLATILE) from FSP header to ACPI common codes. TEST=intel/archercity CRB Signed-off-by: Shuo Liu <shuo.liu@intel.com> Change-Id: I6aa5c20c9556fd5d680406518d19a83801b0852c Reviewed-on: https://review.coreboot.org/c/coreboot/+/80630 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Diffstat (limited to 'src/include/acpi')
-rw-r--r--src/include/acpi/acpi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h
index c39683ed4e..d6c30c1b5f 100644
--- a/src/include/acpi/acpi.h
+++ b/src/include/acpi/acpi.h
@@ -409,6 +409,10 @@ typedef struct acpi_srat_lapic {
u32 clock_domain; /* _CDM Clock Domain */
} __packed acpi_srat_lapic_t;
+#define ACPI_SRAT_MEMORY_ENABLED (1 << 0)
+#define ACPI_SRAT_MEMORY_HOT_PLUGGABLE (1 << 1)
+#define ACPI_SRAT_MEMORY_NONVOLATILE (1 << 2)
+
/* SRAT: Memory Affinity Structure */
typedef struct acpi_srat_mem {
u8 type; /* Type (1) */