]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg/AcpiLib.h: Added some helper macros for ACPI 5.1
authorOlivier Martin <olivier.martin@arm.com>
Fri, 23 Jan 2015 16:06:09 +0000 (16:06 +0000)
committeroliviermartin <oliviermartin@Edk2>
Fri, 23 Jan 2015 16:06:09 +0000 (16:06 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16653 6f19259b-4bc3-4df7-8a09-765794883524

EmbeddedPkg/Include/Library/AcpiLib.h

index 3eaa1d558e12f6465516e7e8c1b1dee95f3e3625..9fa9c5102da53d5fb02d46fd0b5d44acfcc2a89c 100644 (file)
     GicId, AcpiCpuId, Flags, 0, PmuIrq, 0, GicBase \\r
   }\r
 \r
+// Note the parking protocol is configured by UEFI if required\r
+#define EFI_ACPI_5_1_GICC_STRUCTURE_INIT(GicId, AcpiCpuUid, Mpidr, Flags, PmuIrq,    \\r
+    GicBase, GicVBase, GicHBase, GsivId, GicRBase)                                   \\r
+  {                                                                                  \\r
+    EFI_ACPI_5_1_GIC, sizeof (EFI_ACPI_5_1_GIC_STRUCTURE), EFI_ACPI_RESERVED_WORD,   \\r
+    GicId, AcpiCpuUid, Flags, 0, PmuIrq, 0, GicBase, GicVBase, GicHBase,             \\r
+    GsivId, GicRBase, Mpidr                                                          \\r
+  }\r
+\r
+//\r
+// SBSA Generic Watchdog\r
+//\r
+#define EFI_ACPI_5_1_SBSA_GENERIC_WATCHDOG_STRUCTURE_INIT(RefreshFramePhysicalAddress,                  \\r
+    ControlFramePhysicalAddress, WatchdogTimerGSIV, WatchdogTimerFlags)                                 \\r
+  {                                                                                                     \\r
+    EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG, sizeof(EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE), \\r
+    EFI_ACPI_RESERVED_WORD, RefreshFramePhysicalAddress, ControlFramePhysicalAddress,                   \\r
+    WatchdogTimerGSIV, WatchdogTimerFlags                                                               \\r
+  }\r
 \r
 /**\r
   Locate and Install the ACPI tables from the Firmware Volume\r