static DeviceState *sbi_init(target_phys_addr_t addr, qemu_irq **parent_irq)

{

    DeviceState *dev;

    SysBusDevice *s;

    unsigned int i;



    dev = qdev_create(NULL, "sbi");

    qdev_init(dev);



    s = sysbus_from_qdev(dev);



    for (i = 0; i < MAX_CPUS; i++) {

        sysbus_connect_irq(s, i, *parent_irq[i]);

    }



    sysbus_mmio_map(s, 0, addr);



    return dev;

}

static DeviceState *sbi_init(target_phys_addr_t addr, qemu_irq **parent_irq)

{

    DeviceState *dev;

    SysBusDevice *s;

    unsigned int i;



    dev = qdev_create(NULL, "sbi");

    qdev_init(dev);



    s = sysbus_from_qdev(dev);



    for (i = 0; i < MAX_CPUS; i++) {

        sysbus_connect_irq(s, i, *parent_irq[i]);

    }



    sysbus_mmio_map(s, 0, addr);



    return dev;

}

    qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);
static DeviceState *FUNC_0(target_phys_addr_t addr, qemu_irq **parent_irq)

{

    DeviceState *dev;

    SysBusDevice *s;

    unsigned int VAR_0;



    dev = qdev_create(NULL, "sbi");

    qdev_init(dev);



    s = sysbus_from_qdev(dev);



    for (VAR_0 = 0; VAR_0 < MAX_CPUS; VAR_0++) {

        sysbus_connect_irq(s, VAR_0, *parent_irq[VAR_0]);

    }



    sysbus_mmio_map(s, 0, addr);



    return dev;

}

static DeviceState *FUNC_0(target_phys_addr_t addr, qemu_irq **parent_irq)
{ DeviceState *dev; SysBusDevice *s; unsigned int VAR_0; dev = qdev_create(NULL, "sbi"); qdev_init(dev); s = sysbus_from_qdev(dev); for (VAR_0 = 0; VAR_0 < MAX_CPUS; VAR_0++) { sysbus_connect_irq(s, VAR_0, *parent_irq[VAR_0]); } sysbus_mmio_map(s, 0, addr); return dev; }