aboutsummaryrefslogtreecommitdiff
path: root/hw/openpic.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-12-07 23:51:09 +0100
committerAlexander Graf <agraf@suse.de>2012-12-14 13:12:55 +0100
commit5861a33898bbddfd1a80c2e202cb9352e3b1ba62 (patch)
tree2fca1bcde6541fd57dc479c5c126841daa9691a9 /hw/openpic.h
parent780d16b77f992db81e90b7dd7474a9397ce393b9 (diff)
openpic: combine mpic and openpic irq raise functions
The IRQ raise mechanisms of the OpenPIC and MPIC controllers is identical, just that the MPIC one can also raise critical interrupts. Combine those two and check for critical raise capability during runtime. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/openpic.h')
-rw-r--r--hw/openpic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/openpic.h b/hw/openpic.h
index f50a1e42bd..1232d1039c 100644
--- a/hw/openpic.h
+++ b/hw/openpic.h
@@ -11,6 +11,9 @@ enum {
OPENPIC_OUTPUT_NB,
};
+/* OpenPIC capability flags */
+#define OPENPIC_FLAG_IDE_CRIT (1 << 0)
+
qemu_irq *openpic_init (MemoryRegion **pmem, int nb_cpus,
qemu_irq **irqs, qemu_irq irq_out);
qemu_irq *mpic_init (MemoryRegion *address_space, hwaddr base,