gic: provide defines for v2/v3 targetlist sizes
authorAndrew Jones <drjones@redhat.com>
Thu, 14 Jul 2016 15:51:37 +0000 (16:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Jul 2016 15:51:37 +0000 (16:51 +0100)
Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-id: 1467378129-23302-2-git-send-email-drjones@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/hw/intc/arm_gic.h
include/hw/intc/arm_gicv3_common.h

index 0971e37710dd6bb0df4dfe4861926595297228dc..42bb535fd4571e886eeb20b6abce5439bc91c088 100644 (file)
@@ -23,6 +23,9 @@
 
 #include "arm_gic_common.h"
 
+/* Number of SGI target-list bits */
+#define GIC_TARGETLIST_BITS 8
+
 #define TYPE_ARM_GIC "arm_gic"
 #define ARM_GIC(obj) \
      OBJECT_CHECK(GICState, (obj), TYPE_ARM_GIC)
index f72e49922feb1fda6ccdf2a70718dddd47d1b7fa..341a3118f0f442c8493ee2aa83cebb1e12ca2446 100644 (file)
@@ -35,6 +35,9 @@
 #define GICV3_MAXIRQ 1020
 #define GICV3_MAXSPI (GICV3_MAXIRQ - GIC_INTERNAL)
 
+/* Number of SGI target-list bits */
+#define GICV3_TARGETLIST_BITS 16
+
 /* Minimum BPR for Secure, or when security not enabled */
 #define GIC_MIN_BPR 0
 /* Minimum BPR for Nonsecure when security is enabled */