From patchwork Wed Nov 11 00:16:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 56357 Delivered-To: patches@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1070159lbb; Tue, 10 Nov 2015 16:16:43 -0800 (PST) X-Received: by 10.107.15.17 with SMTP id x17mr6622527ioi.196.1447201003116; Tue, 10 Nov 2015 16:16:43 -0800 (PST) Return-Path: Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com. [2607:f8b0:4001:c05::229]) by mx.google.com with ESMTPS id e96si7737894ioi.206.2015.11.10.16.16.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2015 16:16:43 -0800 (PST) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4001:c05::229 as permitted sender) client-ip=2607:f8b0:4001:c05::229; Authentication-Results: mx.google.com; spf=pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4001:c05::229 as permitted sender) smtp.mailfrom=al.stone@linaro.org; dkim=pass header.i=@linaro_org.20150623.gappssmtp.com Received: by igvi2 with SMTP id i2so109664931igv.0 for ; Tue, 10 Nov 2015 16:16:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=xuotEESm+OukrF7hT6n7uYCpFQM1mMlOqCbAYWeAKRE=; b=tQ9BuX//4xoTgWjTAg/x2dzibmeRYPZ8MA2JqCGAVaOGn5PdQytnDuWpxLFzLzIwIO N2ZhcW8YQmSt69n7Z+XhuyrQXyJOqOJgOTvx0MZ/vn4huIcVDncjIQHRfxM6YjTe4ayn zEjx/34UFK6zIpuBqrt3PuLjJlWmSyr/OHu3Nn/KRw4fjCHKPR/CYUOk59kK2O/yd0AB hHAaNLyJmgCA/XQRAz+9++vI986E6IKN7sngeIMPtvwOAFnLpP7xQ1RFxu2woJvxOwQJ dO4IH8ARIVFnmV6lHPjb+E4oLaQCzDCDazHt/2cobbXnNHG8N04j2chNbRAzo0GNhHMb y7Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=xuotEESm+OukrF7hT6n7uYCpFQM1mMlOqCbAYWeAKRE=; b=XaIieZnLxxGGYqCwqheZfHNHIj7CmC3LeVjQrk9kas8PnPVSu4ceC9rAtZgaBdoNia 9mSEtDF/BKLhfCHJogN4DAuLPGu/pMcSAeeVdaYFd/Qm+2IBSSiVaLkQD5+TBl8UScu7 okKZ8XzQsjgubE6xHM9fIppwigQeMiJCrO8kFjIJnA5yExwyZamxQk7P45K4Dp41uAja Qd0G0cq11XchE3pHFJTbQla6MXvJtC8KmQgYDkCT+NcxYjJgW9fNYbi1oBhyV3zx+USP e8nigeTvIFwwGx7M59h7TQ4UAf57eTqYNAKhlMd4BMh37PhckXH8TQ5Qha+eHu3e1otm xqpw== X-Gm-Message-State: ALoCoQnhO3jgizcR9kM7k7UpFonpCecGZJi9pLlrGcnmhcLxhlGp4zxs7DGmh6fVB2Tbk8Cm/Te7 X-Received: by 10.50.13.6 with SMTP id d6mr6963397igc.18.1447201002771; Tue, 10 Nov 2015 16:16:42 -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 k199sm2299166ioe.9.2015.11.10.16.16.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2015 16:16:41 -0800 (PST) Subject: [PATCH 2/3] ACPI: Add in MADT subtable description for GIC ITS subtable To: fwts-devel@lists.ubuntu.com References: <1447200422-11500-1-git-send-email-al.stone@linaro.org> Cc: linaro-acpi@lists.linaro.org, patches@linaro.org From: Al Stone Message-ID: <564288E9.7000803@linaro.org> Date: Tue, 10 Nov 2015 17:16:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1447200422-11500-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 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,