Revision 0ae16251 hw/pci.c

b/hw/pci.c
1086 1086
    return bus->route_intx_to_irq(bus->irq_opaque, pin);
1087 1087
}
1088 1088

  
1089
void pci_bus_fire_intx_routing_notifier(PCIBus *bus)
1090
{
1091
    PCIDevice *dev;
1092
    PCIBus *sec;
1093
    int i;
1094

  
1095
    for (i = 0; i < ARRAY_SIZE(bus->devices); ++i) {
1096
        dev = bus->devices[i];
1097
        if (dev && dev->intx_routing_notifier) {
1098
            dev->intx_routing_notifier(dev);
1099
        }
1100
        QLIST_FOREACH(sec, &bus->child, sibling) {
1101
            pci_bus_fire_intx_routing_notifier(sec);
1102
        }
1103
    }
1104
}
1105

  
1106
void pci_device_set_intx_routing_notifier(PCIDevice *dev,
1107
                                          PCIINTxRoutingNotifier notifier)
1108
{
1109
    dev->intx_routing_notifier = notifier;
1110
}
1111

  
1089 1112
/***********************************************************/
1090 1113
/* monitor info on PCI */
1091 1114

  

Also available in: Unified diff