From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id E32B31A1DFF for ; Thu, 6 Oct 2016 15:44:49 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3E72228; Thu, 6 Oct 2016 15:44:49 -0700 (PDT) Received: from u201365.usa.Arm.com (u201365.usa.arm.com [10.118.28.95]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 056773F40C; Thu, 6 Oct 2016 15:44:48 -0700 (PDT) From: Supreeth Venkatesh To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, Supreeth Venkatesh Date: Thu, 6 Oct 2016 17:44:47 -0500 Message-Id: <1475793887-2878-1-git-send-email-supreeth.venkatesh@arm.com> X-Mailer: git-send-email 2.8.0 Subject: [PATCH] EmbeddedPkg/Library: Add Missing ARM defines 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-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2016 22:44:50 -0000 1. Add Missing MADT ACPI 6.0 GIC Redistributor Init Macro. 2. Add Missing GTDT ACPI 6.0 Watchdog Timer Structure Init Macro. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Supreeth Venkatesh --- EmbeddedPkg/Include/Library/AcpiLib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h b/EmbeddedPkg/Include/Library/AcpiLib.h index 704a2cd..a34d20e 100644 --- a/EmbeddedPkg/Include/Library/AcpiLib.h +++ b/EmbeddedPkg/Include/Library/AcpiLib.h @@ -76,6 +76,11 @@ GicMsiFrameId, PhysicalBaseAddress, Flags, SPICount, SPIBase \ } +#define EFI_ACPI_6_0_GIC_REDISTRIBUTOR_INIT(RedisRegionAddr, RedisDiscLength) \ + { \ + EFI_ACPI_6_0_GICR, sizeof (EFI_ACPI_6_0_GICR_STRUCTURE), 0, RedisRegionAddr, RedisDiscLength \ + } + // // SBSA Generic Watchdog // @@ -87,6 +92,14 @@ WatchdogTimerGSIV, WatchdogTimerFlags \ } +#define EFI_ACPI_6_0_SBSA_GENERIC_WATCHDOG_STRUCTURE_INIT(RefreshFramePhysicalAddress, \ + ControlFramePhysicalAddress, WatchdogTimerGSIV, WatchdogTimerFlags) \ + { \ + EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG, sizeof(EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE), \ + EFI_ACPI_RESERVED_WORD, RefreshFramePhysicalAddress, ControlFramePhysicalAddress, \ + WatchdogTimerGSIV, WatchdogTimerFlags \ + } + typedef BOOLEAN (EFIAPI *EFI_LOCATE_ACPI_CHECK) ( -- 2.8.0