pci: prepare irq code for interrupt state
commitd036bb215e0ac1d1fd467239f1d3b7d904cac90a
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 25 Nov 2009 13:20:51 +0000 (25 15:20 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Dec 2009 19:50:53 +0000 (7 21:50 +0200)
treefd05d70cc94d784ff069a93be4c979019a1786c8
parent5b5cb08683b6715a2aca5314168e68ff0665912b
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>
hw/pci.c
hw/pci.h