From patchwork Thu Apr 7 01:32:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 65223 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp192315lbc; Wed, 6 Apr 2016 18:32:32 -0700 (PDT) X-Received: by 10.98.70.27 with SMTP id t27mr615904pfa.107.1459992752493; Wed, 06 Apr 2016 18:32:32 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id e65si7939713pfd.212.2016.04.06.18.32.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Apr 2016 18:32:32 -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 ACB911A1FA7; Wed, 6 Apr 2016 18:32:31 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (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 8B9B61A1EE8 for ; Wed, 6 Apr 2016 18:32:30 -0700 (PDT) Received: by mail-pf0-x22d.google.com with SMTP id c20so44766900pfc.1 for ; Wed, 06 Apr 2016 18:32:30 -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=TXUj4wuvrzyo0Gl6ZK6zu0dkndP6z/+0apXZtQQ5sjo=; b=a2utWNICyBhG94hxB6B6JJsx/rkrpBrly1RleTqlSq0Uvv6AamJXoYmv18tA7Xw2lr tib7+VVUOx9t8Jl4iKAbGj7Lyfish94MOgCld55req5JaeTvT9qymKm84bx9UUkxniM9 0fWwA/W+sDKL1QmsDCyUduPlE+YO1tIwoLJxg= 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=TXUj4wuvrzyo0Gl6ZK6zu0dkndP6z/+0apXZtQQ5sjo=; b=a3yKvh6uldaKvs8F92Ml/B9Ct98o0cKA6312KYL+1s3zb1gFWtVAO+GNvVDilUepPd SvSkfWxwJu2O9h6pN580jq8AMZd+zIzVFfiV7eUhjetlrb0BQ/QuGMGAhXbcXB94M5Vm R0UYik7pL56bRMw1vprhdJPn3gd0B/kYPRekjSK0it/ehGjcCBmUNAzCd4FiatiKBonG 5NflLJZRLcdwYioDeFFEeGGZJhMGojJ5JtxajH/6hOsPetoxeLm8mLhgZdVZbI2lc5jS qoifgE+KoonqV+jDxTeWhs9MVcKYmzyKIy/Gc6R88DyY4Db8npe+LP5+RvvyVTzW77MH 6iNQ== X-Gm-Message-State: AD7BkJK7DfRTxYtZFoZk1EkpEgrBbNYzwsDnotuVjUaH/NXDlo4+IDdG1A63F/+tpa+2Wphj X-Received: by 10.98.19.2 with SMTP id b2mr633844pfj.93.1459992750098; Wed, 06 Apr 2016 18:32:30 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.233]) by smtp.gmail.com with ESMTPSA id ba9sm7600684pab.24.2016.04.06.18.32.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Apr 2016 18:32:29 -0700 (PDT) From: Heyi Guo To: edk2-devel@lists.01.org Date: Thu, 7 Apr 2016 09:32:15 +0800 Message-Id: <1459992735-12248-1-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 2.7.0 Subject: [edk2] [PATCH] EmbeddedPkg: Add GICD table init macro for ACPI 6.0 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Heyi Guo , Leif Lindholm , Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add macro to help initialize GICD structure in MADT table according to ACPI 6.0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo Cc: Leif Lindholm Cc: Ard Biesheuvel --- EmbeddedPkg/Include/Library/AcpiLib.h | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.7.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h b/EmbeddedPkg/Include/Library/AcpiLib.h index 74a929c..e5bcf56 100644 --- a/EmbeddedPkg/Include/Library/AcpiLib.h +++ b/EmbeddedPkg/Include/Library/AcpiLib.h @@ -38,6 +38,13 @@ GicDistHwId, GicDistBase, GicDistVector, EFI_ACPI_RESERVED_DWORD \ } +#define EFI_ACPI_6_0_GIC_DISTRIBUTOR_INIT(GicDistHwId, GicDistBase, GicDistVector, GicVersion) \ + { \ + EFI_ACPI_6_0_GICD, sizeof (EFI_ACPI_6_0_GIC_DISTRIBUTOR_STRUCTURE), EFI_ACPI_RESERVED_WORD, \ + GicDistHwId, GicDistBase, GicDistVector, GicVersion, \ + {EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE} \ + } + // Note the parking protocol is configured by UEFI if required #define EFI_ACPI_5_0_GIC_STRUCTURE_INIT(GicId, AcpiCpuId, Flags, PmuIrq, GicBase) \ { \