struct omap_mcbsp_s *omap_mcbsp_init(MemoryRegion *system_memory,

                target_phys_addr_t base,

                qemu_irq *irq, qemu_irq *dma, omap_clk clk)

{

    struct omap_mcbsp_s *s = (struct omap_mcbsp_s *)

            g_malloc0(sizeof(struct omap_mcbsp_s));



    s->txirq = irq[0];

    s->rxirq = irq[1];

    s->txdrq = dma[0];

    s->rxdrq = dma[1];

    s->sink_timer = qemu_new_timer_ns(vm_clock, omap_mcbsp_sink_tick, s);

    s->source_timer = qemu_new_timer_ns(vm_clock, omap_mcbsp_source_tick, s);

    omap_mcbsp_reset(s);



    memory_region_init_io(&s->iomem, &omap_mcbsp_ops, s, "omap-mcbsp", 0x800);

    memory_region_add_subregion(system_memory, base, &s->iomem);



    return s;

}

struct omap_mcbsp_s *omap_mcbsp_init(MemoryRegion *system_memory,

                target_phys_addr_t base,

                qemu_irq *irq, qemu_irq *dma, omap_clk clk)

{

    struct omap_mcbsp_s *s = (struct omap_mcbsp_s *)

            g_malloc0(sizeof(struct omap_mcbsp_s));



    s->txirq = irq[0];

    s->rxirq = irq[1];

    s->txdrq = dma[0];

    s->rxdrq = dma[1];

    s->sink_timer = qemu_new_timer_ns(vm_clock, omap_mcbsp_sink_tick, s);

    s->source_timer = qemu_new_timer_ns(vm_clock, omap_mcbsp_source_tick, s);

    omap_mcbsp_reset(s);



    memory_region_init_io(&s->iomem, &omap_mcbsp_ops, s, "omap-mcbsp", 0x800);

    memory_region_add_subregion(system_memory, base, &s->iomem);



    return s;

}

struct omap_mcbsp_s *FUNC_0(MemoryRegion *VAR_0,

                target_phys_addr_t VAR_1,

                qemu_irq *VAR_2, qemu_irq *VAR_3, omap_clk VAR_4)

{

    struct omap_mcbsp_s *VAR_5 = (struct omap_mcbsp_s *)

            g_malloc0(sizeof(struct omap_mcbsp_s));



    VAR_5->txirq = VAR_2[0];

    VAR_5->rxirq = VAR_2[1];

    VAR_5->txdrq = VAR_3[0];

    VAR_5->rxdrq = VAR_3[1];

    VAR_5->sink_timer = qemu_new_timer_ns(vm_clock, omap_mcbsp_sink_tick, VAR_5);

    VAR_5->source_timer = qemu_new_timer_ns(vm_clock, omap_mcbsp_source_tick, VAR_5);

    omap_mcbsp_reset(VAR_5);



    memory_region_init_io(&VAR_5->iomem, &omap_mcbsp_ops, VAR_5, "omap-mcbsp", 0x800);

    memory_region_add_subregion(VAR_0, VAR_1, &VAR_5->iomem);



    return VAR_5;

}

struct omap_mcbsp_s *FUNC_0(MemoryRegion *VAR_0,
target_phys_addr_t VAR_1,
qemu_irq *VAR_2, qemu_irq *VAR_3, omap_clk VAR_4)
{ struct omap_mcbsp_s *VAR_5 = (struct omap_mcbsp_s *)
g_malloc0(sizeof(struct omap_mcbsp_s)); VAR_5->txirq = VAR_2[0]; VAR_5->rxirq = VAR_2[1]; VAR_5->txdrq = VAR_3[0]; VAR_5->rxdrq = VAR_3[1]; VAR_5->sink_timer = qemu_new_timer_ns(vm_clock, omap_mcbsp_sink_tick, VAR_5); VAR_5->source_timer = qemu_new_timer_ns(vm_clock, omap_mcbsp_source_tick, VAR_5); omap_mcbsp_reset(VAR_5); memory_region_init_io(&VAR_5->iomem, &omap_mcbsp_ops, VAR_5, "omap-mcbsp", 0x800); memory_region_add_subregion(VAR_0, VAR_1, &VAR_5->iomem); return VAR_5; }