/* before qdev initialization(qdev_init()), this function sets bus_name and map_irq callback which are necessry for pci_bridge_initfn() to initialize bus.  */
void pci_bridge_map_irq(PCIBridge *br, const char *bus_name, pci_map_irq_fn map_irq)
/* before qdev initialization(qdev_init()), this function sets bus_name and map_irq callback which are necessry for pci_bridge_initfn() to initialize bus.  */
void pci_bridge_map_irq(PCIBridge *br, const char *bus_name, pci_map_irq_fn map_irq)
{
    br->map_irq = map_irq;
    br->bus_name = bus_name;
}