summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Include
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2014-10-27 10:27:27 +0000
committeroliviermartin <oliviermartin@Edk2>2014-10-27 10:27:27 +0000
commitd5c6b7fca306f5034f1200261bf9f77c52498cd5 (patch)
treeccc8967fa82a66f39bc7887fe7139fa3fb5620e3 /ArmPkg/Include
parentf1e2b7283ea6fa12691edee22aca403c3b3af24c (diff)
downloadedk2-d5c6b7fca306f5034f1200261bf9f77c52498cd5.tar.gz
edk2-d5c6b7fca306f5034f1200261bf9f77c52498cd5.tar.bz2
edk2-d5c6b7fca306f5034f1200261bf9f77c52498cd5.zip
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 <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16231 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Include')
-rw-r--r--ArmPkg/Include/Library/ArmGicLib.h9
1 files changed, 9 insertions, 0 deletions
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 (