pci: Return PCI_INTX_DISABLED when no bus INTx routing support
commit05c0621e64b425d9f89bef542f0b85e61dc57ff8
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 17 Oct 2012 22:13:12 +0000 (17 16:13 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Oct 2012 15:59:06 +0000 (29 17:59 +0200)
treed69ee408048c743333f79646486a9bb9a556a453
parent2b199f9318ec698dfced65f5d4ad9729f166e37c
pci: Return PCI_INTX_DISABLED when no bus INTx routing support

Rather than assert, simply return PCI_INTX_DISABLED when we don't
have a pci_route_irq_fn.  PIIX already returns DISABLED for an
invalid pin, so users already deal with this state.  Users of this
interface should only be acting on an ENABLED or INVERTED return
value (though we really have no support for INVERTED).  Also
complain loudly when we hit this so we don't forget it's missing.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
hw/pci.c