From patchwork Tue Jul 5 20:15:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Graeme Gregory X-Patchwork-Id: 71403 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp493262qgy; Tue, 5 Jul 2016 13:15:55 -0700 (PDT) X-Received: by 10.66.184.41 with SMTP id er9mr26333383pac.73.1467749755625; Tue, 05 Jul 2016 13:15:55 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id z7si5309666pal.170.2016.07.05.13.15.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jul 2016 13:15:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 0A1AE1A1E6D; Tue, 5 Jul 2016 13:16:35 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 816281A1E43 for ; Tue, 5 Jul 2016 13:16:33 -0700 (PDT) Received: by mail-wm0-x236.google.com with SMTP id r201so167205477wme.1 for ; Tue, 05 Jul 2016 13:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ij06QmzjS/C/BIGZb/OIz+zkx+VwjDzlXHbjn6gcTS8=; b=OMvT22r1PthKBG7nkGm1b2Mw5RUpdn18hX8/uN3tOSbndO7e5FoNX+WgVaPkoXLazd 8z5+duJMCORGtEU2sXUx02KZSRWUtpDeM+G/WjJg8pSlwRBsuT1hQFt+cOqWvNX/2FKt pt8Ddt5q5+/x4Sgl+B5yQn8MROPOZZbXhXOLY= 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; bh=ij06QmzjS/C/BIGZb/OIz+zkx+VwjDzlXHbjn6gcTS8=; b=YhuHHBNbGyyC5Fu463kiy674ULAYjAiAKe1Lbrr28r+tyHXCv+FCV+wNPZOMa4fj/C KG8UJ8owFTgNEcCLmyAkK1NyXAcyBQpd22/sK+TG33vEVz07lgR3Y5dawG9LdMUuSh5k nI5RO92QWFZgNVwJNwYdyFGsAAQfzTHBPNGT1a4Dmv+od5PKRTw5yr2LN2p+mNfWUB3G lafmWKMYCZ719Ya65vhZDS0FF6caB3ixUIAtLkJSh3/Ia/ya3enHE+UxclC5YtVtbG8z jONFQWRhcM9s6WXYWu0zA86M4bgWndXlMOoq/5PPTEDzhOgR/C39fGePhK3LYTtwr/5a mP4Q== X-Gm-Message-State: ALyK8tKt4pwrXIdQK6twTz78JjET1+7Z69Xp99t20cDUrQ/EYBuJT0Af2yt4+OOzcaf8tNaq X-Received: by 10.28.199.139 with SMTP id x133mr16450531wmf.45.1467749751865; Tue, 05 Jul 2016 13:15:51 -0700 (PDT) Received: from xora-haswell.xora.org.uk (host-89-243-177-104.as13285.net. [89.243.177.104]) by smtp.gmail.com with ESMTPSA id hf7sm26883wjc.48.2016.07.05.13.15.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jul 2016 13:15:51 -0700 (PDT) From: Graeme Gregory To: edk2-devel@lists.01.org Date: Tue, 5 Jul 2016 21:15:39 +0100 Message-Id: <1467749739-6015-1-git-send-email-graeme.gregory@linaro.org> X-Mailer: git-send-email 2.8.1 Subject: [edk2] [PATCH] EmbeddedPkg/AcpiLib: add GICC table init macro for ACPI 6.0 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" ACPI 6.0 added a processor efficiency field and 3 reserved bytes at the end of the GICC structure so add a new macro to initialise the new field. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Graeme Gregory --- EmbeddedPkg/Include/Library/AcpiLib.h | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.8.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ard Biesheuvel diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h b/EmbeddedPkg/Include/Library/AcpiLib.h index e5bcf56..704a2cd 100644 --- a/EmbeddedPkg/Include/Library/AcpiLib.h +++ b/EmbeddedPkg/Include/Library/AcpiLib.h @@ -61,6 +61,15 @@ GsivId, GicRBase, Mpidr \ } +#define EFI_ACPI_6_0_GICC_STRUCTURE_INIT(GicId, AcpiCpuUid, Mpidr, Flags, PmuIrq, \ + GicBase, GicVBase, GicHBase, GsivId, GicRBase, Efficiency) \ + { \ + EFI_ACPI_6_0_GIC, sizeof (EFI_ACPI_6_0_GIC_STRUCTURE), EFI_ACPI_RESERVED_WORD, \ + GicId, AcpiCpuUid, Flags, 0, PmuIrq, 0, GicBase, GicVBase, GicHBase, \ + GsivId, GicRBase, Mpidr, Efficiency, \ + {EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE} \ + } + #define EFI_ACPI_6_0_GIC_MSI_FRAME_INIT(GicMsiFrameId, PhysicalBaseAddress, Flags, SPICount, SPIBase) \ { \ EFI_ACPI_6_0_GIC_MSI_FRAME, sizeof (EFI_ACPI_6_0_GIC_MSI_FRAME_STRUCTURE), EFI_ACPI_RESERVED_WORD, \