qemu/hw/core/platform-bus.c
/*
 * Look for unassigned IRQ lines as well as unassociated MMIO regions.
 * Connect them to the platform bus if available.
 */
Look for unassigned IRQ lines as well as unassociated MMIO regions.
Connect them to the platform bus if available.
Look for unassigned IRQ lines as well as unassociated MMIO regions . Connect them to the platform bus if available .
void platform_bus_link_device(PlatformBusDevice *pbus, SysBusDevice *sbdev)
{
    int i;
    for (i = 0; sysbus_has_irq(sbdev, i); i++) {
        platform_bus_map_irq(pbus, sbdev, i);
    }
    for (i = 0; sysbus_has_mmio(sbdev, i); i++) {
        platform_bus_map_mmio(pbus, sbdev, i);
    }
}
void platform_bus_link_device ( PlatformBusDevice * pbus , SysBusDevice * sbdev ) { int i ; for ( i = 0 ; sysbus_has_irq ( sbdev , i ) ; i ++ ) { platform_bus_map_irq ( pbus , sbdev , i ) ; } for ( i = 0 ; sysbus_has_mmio ( sbdev , i ) ; i ++ ) { platform_bus_map_mmio ( pbus , sbdev , i ) ; } }
Look for unassigned IRQ lines as well as unassociated MMIO regions.
Look for unassigned IRQ lines as well as unassociated MMIO regions .