diff options
author | Olivier Martin <olivier.martin@arm.com> | 2015-01-23 16:06:09 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@Edk2> | 2015-01-23 16:06:09 +0000 |
commit | 7c1712f05aeb7fb24b055eee8e76cba672af2816 (patch) | |
tree | a0e235f531f8f4d73d6394acd62278b6335b89b5 | |
parent | 3399d5beb86deccd064f915fe59ebfa0176ee7bc (diff) | |
download | edk2-7c1712f05aeb7fb24b055eee8e76cba672af2816.zip edk2-7c1712f05aeb7fb24b055eee8e76cba672af2816.tar.gz edk2-7c1712f05aeb7fb24b055eee8e76cba672af2816.tar.bz2 |
EmbeddedPkg/AcpiLib.h: Added some helper macros for ACPI 5.1
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
-rw-r--r-- | EmbeddedPkg/Include/Library/AcpiLib.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h b/EmbeddedPkg/Include/Library/AcpiLib.h index 3eaa1d5..9fa9c51 100644 --- a/EmbeddedPkg/Include/Library/AcpiLib.h +++ b/EmbeddedPkg/Include/Library/AcpiLib.h @@ -43,6 +43,25 @@ GicId, AcpiCpuId, Flags, 0, PmuIrq, 0, GicBase \
}
+// Note the parking protocol is configured by UEFI if required
+#define EFI_ACPI_5_1_GICC_STRUCTURE_INIT(GicId, AcpiCpuUid, Mpidr, Flags, PmuIrq, \
+ GicBase, GicVBase, GicHBase, GsivId, GicRBase) \
+ { \
+ EFI_ACPI_5_1_GIC, sizeof (EFI_ACPI_5_1_GIC_STRUCTURE), EFI_ACPI_RESERVED_WORD, \
+ GicId, AcpiCpuUid, Flags, 0, PmuIrq, 0, GicBase, GicVBase, GicHBase, \
+ GsivId, GicRBase, Mpidr \
+ }
+
+//
+// SBSA Generic Watchdog
+//
+#define EFI_ACPI_5_1_SBSA_GENERIC_WATCHDOG_STRUCTURE_INIT(RefreshFramePhysicalAddress, \
+ ControlFramePhysicalAddress, WatchdogTimerGSIV, WatchdogTimerFlags) \
+ { \
+ EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG, sizeof(EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE), \
+ EFI_ACPI_RESERVED_WORD, RefreshFramePhysicalAddress, ControlFramePhysicalAddress, \
+ WatchdogTimerGSIV, WatchdogTimerFlags \
+ }
/**
Locate and Install the ACPI tables from the Firmware Volume
|