diff mbox

[2/3] ACPI: Add in MADT subtable description for GIC ITS subtable

Message ID 564288E9.7000803@linaro.org
State New
Headers show

Commit Message

Al Stone Nov. 11, 2015, 12:16 a.m. UTC
The GIC ITS subtable was added to the spec in ACPI 6.0.  However, there
was no struct definition for the subtable so that it could be parsed if
it existed.  This patch just adds in the struct for later use.

Signed-off-by: Al Stone <al.stone@linaro.org>

---
 src/lib/include/fwts_acpi.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

-- 
2.5.0
diff mbox

Patch

diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
index cf8f4b8..680f98b 100644
--- a/src/lib/include/fwts_acpi.h
+++ b/src/lib/include/fwts_acpi.h
@@ -415,6 +415,7 @@  typedef enum {
 	FWTS_ACPI_MADT_GIC_D_GOC_DISTRIBUTOR,
 	FWTS_ACPI_MADT_GIC_V2M_MSI_FRAME,
 	FWTS_ACPI_MADT_GIC_R_REDISTRIBUTOR,
+	FWTS_ACPI_MADT_GIC_ITS,
         FWTS_ACPI_MADT_RESERVED
 } fwts_acpi_madt_type;

@@ -557,6 +558,15 @@  typedef struct {
 	uint32_t	discovery_range_length;
 } __attribute__ ((packed)) fwts_acpi_madt_gicr;

+/* New in ACPI 6.0, GIC ITS structure, 5.2.12.18 */
+/* Type 15, FWTS_ACPI_MADT_GIC_ITS */
+typedef struct {
+	uint16_t	reserved;
+	uint32_t	its_id;
+	uint64_t	physical_base_address;
+	uint32_t	reserved2;
+} __attribute__ ((packed)) fwts_acpi_madt_gic_its;
+
 /*
  * ACPI TCPA (Trusted Computing Platform Alliance Capabilities Table)
  *   http://www.kuro5hin.org/story/2002/10/27/16622/530,