summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg/Include
diff options
context:
space:
mode:
authorHeyi Guo <heyi.guo@linaro.org>2016-04-06 23:15:43 +0800
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-04-14 12:56:34 +0200
commitd354963f0dc350771167fa5d3c28b9de8d632d9c (patch)
treea44eeddb6af369b63e6424799949a01b5e6fdd9e /EmbeddedPkg/Include
parent40e06cad13787d8397949a9c5dd3e41f2cf3caed (diff)
downloadedk2-d354963f0dc350771167fa5d3c28b9de8d632d9c.tar.gz
edk2-d354963f0dc350771167fa5d3c28b9de8d632d9c.tar.bz2
edk2-d354963f0dc350771167fa5d3c28b9de8d632d9c.zip
EmbeddedPkg/AcpiLib: add GICD table init macro for ACPI 6.0
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 <heyi.guo@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'EmbeddedPkg/Include')
-rw-r--r--EmbeddedPkg/Include/Library/AcpiLib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h b/EmbeddedPkg/Include/Library/AcpiLib.h
index 74a929c9c0..e5bcf56c29 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) \
{ \