aboutsummaryrefslogtreecommitdiff
path: root/hw/intc/gic_internal.h
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2013-12-20 22:09:33 -0800
committerPeter Maydell <peter.maydell@linaro.org>2014-01-08 19:07:22 +0000
commit9df90ad078ec782d1339bd6879b6ea117f9759f7 (patch)
tree2f4eb30a6d3ee1dc4c36bed8276a24c7d7bfff5a /hw/intc/gic_internal.h
parent04050c5c6aa6f9c086a63a30b182b996fb2d3d02 (diff)
downloadqemu-9df90ad078ec782d1339bd6879b6ea117f9759f7.zip
qemu-9df90ad078ec782d1339bd6879b6ea117f9759f7.tar.gz
qemu-9df90ad078ec782d1339bd6879b6ea117f9759f7.tar.bz2
hw: arm_gic: Introduce gic_set_priority function
To make the code slightly cleaner to look at and make the save/restore code easier to understand, introduce this function to set the priority of interrupts. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org> Message-id: 1387606179-22709-3-git-send-email-christoffer.dall@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/intc/gic_internal.h')
-rw-r--r--hw/intc/gic_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/intc/gic_internal.h b/hw/intc/gic_internal.h
index efac78d..8c02d58 100644
--- a/hw/intc/gic_internal.h
+++ b/hw/intc/gic_internal.h
@@ -61,5 +61,6 @@ uint32_t gic_acknowledge_irq(GICState *s, int cpu);
void gic_complete_irq(GICState *s, int cpu, int irq);
void gic_update(GICState *s);
void gic_init_irqs_and_distributor(GICState *s, int num_irq);
+void gic_set_priority(GICState *s, int cpu, int irq, uint8_t val);
#endif /* !QEMU_ARM_GIC_INTERNAL_H */