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: 569716 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id BD3491402C0; Tue, 19 Jan 2016 11:27:04 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=K0GwkzT3; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1aLK8V-00027R-E6; Tue, 19 Jan 2016 00:27:03 +0000 Received: from mail-ob0-f173.google.com ([209.85.214.173]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.76) (envelope-from ) id 1aLK8N-000252-Qc for fwts-devel@lists.ubuntu.com; Tue, 19 Jan 2016 00:26:55 +0000 Received: by mail-ob0-f173.google.com with SMTP id is5so174433703obc.0 for ; Mon, 18 Jan 2016 16:26:55 -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=aez/Ce0IvfsiTZ6uXW+IwIRuft23gqaibXPG0u5+cw0W5ruRFZo+rarJw2u+b7lmg2 /1MttkkHnTMTF0kbKQiWZ+2wGqmUeoAh08gkaBgenXL0YWETqDmhj0PqJXxg4TWusEfJ eLu5HACkTB3REjNtss/eziQhNYXR0NtnvQ72h74QRq4Eb59lJkJWi5YWuRbgwPck0ITY 8dLN/zxFahvySLCOtUYwqL7F/V31JZcAsBNwgdw0gSfBVi3bw50ZznwBkuoW6JANX7vs NtkgfWH87wq99DQn3u/c12Cpigv/8zMQgTSuOZo0oFJEIpPy0mZ8CoxfoDJqj3HCd7uY ibMA== X-Gm-Message-State: ALoCoQliB+GHjhBFX5QPNDqgrpa8jn/f1qJCYyKpw43WQHQ0knhtEFeu2w0oUGz/aRaTXq3BCig/ok2tlAiWr154dLzXgSVyzA== X-Received: by 10.60.131.147 with SMTP id om19mr20714919oeb.82.1453163214764; Mon, 18 Jan 2016 16:26:54 -0800 (PST) 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 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> Cc: patches@linaro.org, linaro-acpi@lists.linaro.org X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com 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 Acked-by: Alex Hung --- src/lib/include/fwts_acpi.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,