diff options
author | Alexander Graf | 2012-12-07 23:51:09 +0100 |
---|---|---|
committer | Alexander Graf | 2012-12-14 13:12:55 +0100 |
commit | 5861a33898bbddfd1a80c2e202cb9352e3b1ba62 (patch) | |
tree | 2fca1bcde6541fd57dc479c5c126841daa9691a9 /hw/openpic.h | |
parent | openpic: Convert subregions to memory api (diff) | |
download | qemu-5861a33898bbddfd1a80c2e202cb9352e3b1ba62.tar.gz qemu-5861a33898bbddfd1a80c2e202cb9352e3b1ba62.tar.xz qemu-5861a33898bbddfd1a80c2e202cb9352e3b1ba62.zip |
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 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, |