static int omap_intc_init(SysBusDevice *sbd)

{

    DeviceState *dev = DEVICE(sbd);

    struct omap_intr_handler_s *s = OMAP_INTC(dev);



    if (!s->iclk) {

        hw_error("omap-intc: clk not connected\n");

    }

    s->nbanks = 1;

    sysbus_init_irq(sbd, &s->parent_intr[0]);

    sysbus_init_irq(sbd, &s->parent_intr[1]);

    qdev_init_gpio_in(dev, omap_set_intr, s->nbanks * 32);

    memory_region_init_io(&s->mmio, OBJECT(s), &omap_inth_mem_ops, s,

                          "omap-intc", s->size);

    sysbus_init_mmio(sbd, &s->mmio);

    return 0;

}

static int omap_intc_init(SysBusDevice *sbd)

{

    DeviceState *dev = DEVICE(sbd);

    struct omap_intr_handler_s *s = OMAP_INTC(dev);



    if (!s->iclk) {

        hw_error("omap-intc: clk not connected\n");

    }

    s->nbanks = 1;

    sysbus_init_irq(sbd, &s->parent_intr[0]);

    sysbus_init_irq(sbd, &s->parent_intr[1]);

    qdev_init_gpio_in(dev, omap_set_intr, s->nbanks * 32);

    memory_region_init_io(&s->mmio, OBJECT(s), &omap_inth_mem_ops, s,

                          "omap-intc", s->size);

    sysbus_init_mmio(sbd, &s->mmio);

    return 0;

}

        hw_error("omap-intc: clk not connected\n");
static int FUNC_0(SysBusDevice *VAR_0)

{

    DeviceState *dev = DEVICE(VAR_0);

    struct omap_intr_handler_s *VAR_1 = OMAP_INTC(dev);



    if (!VAR_1->iclk) {

        hw_error("omap-intc: clk not connected\n");

    }

    VAR_1->nbanks = 1;

    sysbus_init_irq(VAR_0, &VAR_1->parent_intr[0]);

    sysbus_init_irq(VAR_0, &VAR_1->parent_intr[1]);

    qdev_init_gpio_in(dev, omap_set_intr, VAR_1->nbanks * 32);

    memory_region_init_io(&VAR_1->mmio, OBJECT(VAR_1), &omap_inth_mem_ops, VAR_1,

                          "omap-intc", VAR_1->size);

    sysbus_init_mmio(VAR_0, &VAR_1->mmio);

    return 0;

}

static int FUNC_0(SysBusDevice *VAR_0)
{ DeviceState *dev = DEVICE(VAR_0); struct omap_intr_handler_s *VAR_1 = OMAP_INTC(dev); if (!VAR_1->iclk) { hw_error("omap-intc: clk not connected\n"); } VAR_1->nbanks = 1; sysbus_init_irq(VAR_0, &VAR_1->parent_intr[0]); sysbus_init_irq(VAR_0, &VAR_1->parent_intr[1]); qdev_init_gpio_in(dev, omap_set_intr, VAR_1->nbanks * 32); memory_region_init_io(&VAR_1->mmio, OBJECT(VAR_1), &omap_inth_mem_ops, VAR_1,
"omap-intc", VAR_1->size); sysbus_init_mmio(VAR_0, &VAR_1->mmio); return 0; }