diff options
author | Heyi Guo <heyi.guo@linaro.org> | 2016-04-06 23:15:43 +0800 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-04-14 12:56:34 +0200 |
commit | d354963f0dc350771167fa5d3c28b9de8d632d9c (patch) | |
tree | a44eeddb6af369b63e6424799949a01b5e6fdd9e /EmbeddedPkg | |
parent | 40e06cad13787d8397949a9c5dd3e41f2cf3caed (diff) | |
download | edk2-platforms-d354963f0dc350771167fa5d3c28b9de8d632d9c.tar.xz |
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')
-rw-r--r-- | EmbeddedPkg/Include/Library/AcpiLib.h | 7 |
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) \
{ \
|