From d5c6b7fca306f5034f1200261bf9f77c52498cd5 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Mon, 27 Oct 2014 10:27:27 +0000 Subject: ArmPkg/ArmGic: Introduced ArmGicGetSupportedArchRevision() This function returns the revision of the GIC Architecture. Some GICv3 controllers can work in GICv2 mode. Switching to an older GIC revision is driven by the higher level exception level. This function allows code to support any GIC revision at runtime. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16231 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Include/Library/ArmGicLib.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ArmPkg/Include') diff --git a/ArmPkg/Include/Library/ArmGicLib.h b/ArmPkg/Include/Library/ArmGicLib.h index e3ef228dba..7ffd026378 100644 --- a/ArmPkg/Include/Library/ArmGicLib.h +++ b/ArmPkg/Include/Library/ArmGicLib.h @@ -18,6 +18,9 @@ // // GIC definitions // +typedef enum { + ARM_GIC_ARCH_REVISION_2 +} ARM_GIC_ARCH_REVISION; // // GIC Distributor @@ -76,6 +79,12 @@ #define ARM_GIC_ICCIIDR_GET_REVISION(IccIidr) (((IccIidr) >> 12) & 0xF) #define ARM_GIC_ICCIIDR_GET_IMPLEMENTER(IccIidr) ((IccIidr) & 0xFFF) +ARM_GIC_ARCH_REVISION +EFIAPI +ArmGicGetSupportedArchRevision ( + VOID + ); + UINTN EFIAPI ArmGicGetInterfaceIdentification ( -- cgit v1.2.3