summaryrefslogtreecommitdiffstats
path: root/hw/pci.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-11-25 15:20:51 +0200
committerMichael S. Tsirkin <mst@redhat.com>2009-12-07 21:50:53 +0200
commitd036bb215e0ac1d1fd467239f1d3b7d904cac90a (patch)
treefd05d70cc94d784ff069a93be4c979019a1786c8 /hw/pci.h
parent5b5cb08683b6715a2aca5314168e68ff0665912b (diff)
downloadhqemu-d036bb215e0ac1d1fd467239f1d3b7d904cac90a.zip
hqemu-d036bb215e0ac1d1fd467239f1d3b7d904cac90a.tar.gz
pci: prepare irq code for interrupt state
This rearranges code in preparation for interrupt state implementation. Changes: - split up bus walk away from interrupt handling into a subroutine - change irq_state from an array to bitmask - verify that irq_state values are 0 or 1 on load There are no functional changes. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 3e8abad..ebf6c39 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -220,7 +220,7 @@ struct PCIDevice {
qemu_irq *irq;
/* Current IRQ levels. Used internally by the generic PCI code. */
- int irq_state[PCI_NUM_PINS];
+ uint8_t irq_state;
/* Capability bits */
uint32_t cap_present;
OpenPOWER on IntegriCloud