summaryrefslogtreecommitdiffstats
path: root/hw/isa.h
diff options
context:
space:
mode:
authorJan Kiszka2011-10-07 09:19:35 +0200
committerBlue Swirl2011-10-16 13:10:48 +0200
commitb881fbe9f7a60ceaef20b7a234c49473d009bf4d (patch)
treeaaa660e442e54b245389a8237e10bfe3aa7a216b /hw/isa.h
parentpc: Drop useless test from isa_irq_handler (diff)
downloadqemu-b881fbe9f7a60ceaef20b7a234c49473d009bf4d.tar.gz
qemu-b881fbe9f7a60ceaef20b7a234c49473d009bf4d.tar.xz
qemu-b881fbe9f7a60ceaef20b7a234c49473d009bf4d.zip
pc: Generalize ISA IRQs to GSIs
The ISA bus IRQ range is 0..15. What isa_irq_handler and IsaIrqState are actually dealing with are the Global System Interrupts. Refactor the code to clarify this. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/isa.h')
-rw-r--r--hw/isa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/isa.h b/hw/isa.h
index d3cae350a0..5eb9c78e9e 100644
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -7,6 +7,8 @@
#include "memory.h"
#include "qdev.h"
+#define ISA_NUM_IRQS 16
+
typedef struct ISABus ISABus;
typedef struct ISADevice ISADevice;
typedef struct ISADeviceInfo ISADeviceInfo;