HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43013 )
Change subject: acpi/acpi.h: Add processor x2APIC and GICC affinity struct ......................................................................
acpi/acpi.h: Add processor x2APIC and GICC affinity struct
Change-Id: I0ba611b77cd24eca73b499e8173890283d54002a Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/include/acpi/acpi.h 1 file changed, 27 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/43013/1
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h index 9b6cf4c..464f018 100644 --- a/src/include/acpi/acpi.h +++ b/src/include/acpi/acpi.h @@ -235,6 +235,33 @@ u32 resv2[2]; } __packed acpi_srat_mem_t;
+/* TODO: add SRAT Processor x2APIC and GICC Affinity Structure */ +/* SRAT: Processor Local x2APIC Affinity Structure */ +typedef struct acpi_srat_x2apic_cpu { + u8 type; /* Type (2) */ + u8 length; /* Length in bytes (24) */ + u16 resv; /* Reserved, must be zero */ + u32 proximity_domain; + u32 x2apic_id; + u32 flags; /* bit 0: if clear, the OSPM ignores the contents of acpi_srat_x2apic_cpu + * bit[31:1] must be 0 + */ + u32 clock_domain; + u32 resv1; +} __packed acpi_srat_x2apic_cpu_t; + +/* SRAT: GICC Affinity Structure */ +typedef struct acpi_srat_gicc { + u8 type; /* Type (3) */ + u8 length; /* Length in bytes (18) */ + u32 proximity_domain; + u32 processor_uid + u32 flags; /* bit 0: if clear, the OSPM ignores the contents of acpi_srat_gicc. + * bit[31:1] must be 0 + */ + u32 clock_domain; +} __packed acpi_srat_gicc; + /* SLIT (System Locality Distance Information Table) */ typedef struct acpi_slit { acpi_header_t header;