diff options
author | Alexander Graf <agraf@suse.de> | 2012-12-07 23:51:09 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-12-14 13:12:55 +0100 |
commit | 5861a33898bbddfd1a80c2e202cb9352e3b1ba62 (patch) | |
tree | 2fca1bcde6541fd57dc479c5c126841daa9691a9 /hw/openpic.h | |
parent | 780d16b77f992db81e90b7dd7474a9397ce393b9 (diff) | |
download | qemu-5861a33898bbddfd1a80c2e202cb9352e3b1ba62.zip qemu-5861a33898bbddfd1a80c2e202cb9352e3b1ba62.tar.gz qemu-5861a33898bbddfd1a80c2e202cb9352e3b1ba62.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/openpic.h b/hw/openpic.h index f50a1e4..1232d10 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, |