diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-10-02 13:21:54 -0600 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-10-29 17:59:06 +0200 |
commit | d6e65d54f0fa980f891aa3166d85b6ffd7d541eb (patch) | |
tree | 81f1baf5d1bb6e87ac56e827f03b8425c3343786 /hw/pci.c | |
parent | d262cb02861dd33375c08fc798930653b14769e9 (diff) |
pci: Helper function for testing if an INTx route changed
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1121,6 +1121,11 @@ PCIINTxRoute pci_device_route_intx_to_irq(PCIDevice *dev, int pin) return bus->route_intx_to_irq(bus->irq_opaque, pin); } +bool pci_intx_route_changed(PCIINTxRoute *old, PCIINTxRoute *new) +{ + return old->mode != new->mode || old->irq != new->irq; +} + void pci_bus_fire_intx_routing_notifier(PCIBus *bus) { PCIDevice *dev; |