From patchwork Tue Jan 19 00:26:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 59950 Delivered-To: patches@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2280762lbb; Mon, 18 Jan 2016 16:26:55 -0800 (PST) X-Received: by 10.182.44.134 with SMTP id e6mr3940802obm.6.1453163215077; Mon, 18 Jan 2016 16:26:55 -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 p6si28959219obl.12.2016.01.18.16.26.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jan 2016 16:26:55 -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 vt7so174534031obb.1 for ; Mon, 18 Jan 2016 16:26:54 -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=K0GwkzT3ekIrVkdYZlsMPlibAjufRyGqxhIsndLBRsT+bgZmTxmcCGQMZjygzOxw7F Djjvssp3i5c8rJfv1+3mXHEqfIRKwPlInwVVFp0SG5jrlKwxlxXdU61twy8qwjLZBVtI pspmnCKxFMSfSKx/Y6sJIkjjPJc+G6AyGTXNI= 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=S+9V49KVvWa3zZHijPqbHGoGaIEjqCZemCMjXvzHqyk1uDb3RC94L9NTyvejf17dNE HfT6JKekxcfAWtYW0AlSp75vFN6I9EFg59PTuUlZ7uLhb1i4ELRXEK93ZUca1c5RNz0w KvIfZ1Qj8CBY2agU8qN+vn9v5ChxQLTykTxXEYpPjstrRxTMGUod38yKHl62GCs48Cjf IQmpJINoy1ArmBH5jKTRLnwlElytN2Xu3iwzJInAdqZoJeH7wIhvcviDTL6oU0eoOyvg tUioaiFviwqvt51fHNDsIUVh+Gc3VoJD7pfh6BaU/64EiMmFSGYrbWDDqb95y/NPwqN0 oD1Q== X-Gm-Message-State: ALoCoQlVYWsSAgs2JCZMGBWIdcD0Ab+qg9ZLOBgBuBavDwMFcYp2FGgFyl1S7mbH+ZbnFdt1+sNQZ0ylraOL/ye772ZxD0PPTg== X-Received: by 10.60.131.147 with SMTP id om19mr20714919oeb.82.1453163214764; Mon, 18 Jan 2016 16:26:54 -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 y9sm14289969obg.4.2016.01.18.16.26.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jan 2016 16:26:53 -0800 (PST) From: Al Stone To: fwts-devel@lists.ubuntu.com Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, Al Stone Subject: [PATCH v3 5/6] ACPI: Add in MADT subtable description for GIC ITS subtable Date: Mon, 18 Jan 2016 17:26:14 -0700 Message-Id: <1453163175-5801-6-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453163175-5801-1-git-send-email-al.stone@linaro.org> References: <1453163175-5801-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,