From patchwork Mon Jan 11 23:23:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 59578 Delivered-To: patches@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2408206lbb; Mon, 11 Jan 2016 15:23:37 -0800 (PST) X-Received: by 10.202.86.136 with SMTP id k130mr92233965oib.69.1452554616002; Mon, 11 Jan 2016 15:23:36 -0800 (PST) Return-Path: Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com. [2607:f8b0:4003:c01::231]) by mx.google.com with ESMTPS id o9si1592081oek.34.2016.01.11.15.23.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jan 2016 15:23:35 -0800 (PST) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c01::231 as permitted sender) client-ip=2607:f8b0:4003:c01::231; Authentication-Results: mx.google.com; spf=pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c01::231 as permitted sender) smtp.mailfrom=al.stone@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-ob0-x231.google.com with SMTP id py5so44750644obc.2 for ; Mon, 11 Jan 2016 15:23:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=91QJR+RGVOYhWT0Js5bw82uHDC2a9JNxLOWLr5LBHk8=; b=LhafkpmLb2vdOrI8VMkCpRuGHwjz7FrMtxWt/KKTzC85LCFf/uRXOGxOPb7PjePZcC Cw2as3P7wSRqxv3UC/E1dMBnhyOR2kaKRE/NVCmH1Fz5kxyXo1bhu+CL2AJzrLyVTbTW SOyx93IoYzPUCR2zK9XmNWSgHH37uRRYSVJtE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=91QJR+RGVOYhWT0Js5bw82uHDC2a9JNxLOWLr5LBHk8=; b=P/JX6qhDyOIo67duPsh1QApZSFN8flTz0PWelVETL67/FkJLtOdFhvlKFzW6Et7TDF LavOlSqCihwCTAYr4jQ2pmZqBLUDwli3Qg5BbLilcmUXhwvrn4BAMOnUnWA1wq1PS+r4 taIEQkadNVPTJsd+rqLSYGw5B0O8YRv2L7yHu875qyYjuZA+xNlyVCViqEW6apecd1o9 FfX3VSBEhP6wjCZUUPov27Mn4+oiA1CILj+KYSVW1PwaKrGjcop8VfpaZxHMTs/JMbuM rczS3mD13GmdNo/5Owqdt+AlEVEnn8AaDcvZGnrFNT4XkcIqF/fiAMgNtIAvMuL+qWns /r4A== X-Gm-Message-State: ALoCoQlqoWU0aaKNMTPRa5RNsn1+BdUdN+OwHWbWC4OxNImLJRCG98HTxgxep2dXVBmnfZPFkuXJIBomdOROgCL60xEtTSJ4jw== X-Received: by 10.60.33.10 with SMTP id n10mr94059727oei.66.1452554615703; Mon, 11 Jan 2016 15:23:35 -0800 (PST) Return-Path: Received: from fidelio.ahs3 (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id d9sm52206445obt.23.2016.01.11.15.23.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jan 2016 15:23:34 -0800 (PST) From: Al Stone To: fwts-devel@lists.ubuntu.com Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, Al Stone Subject: [PATCH v2 2/3] ACPI: Add in MADT subtable description for GIC ITS subtable Date: Mon, 11 Jan 2016 16:23:08 -0700 Message-Id: <1452554589-3841-3-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452554589-3841-1-git-send-email-al.stone@linaro.org> References: <1452554589-3841-1-git-send-email-al.stone@linaro.org> 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 --- src/lib/include/fwts_acpi.h | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.5.0 diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h index 0b4bad9..a8a8276 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,