static struct omap_pwt_s *omap_pwt_init(MemoryRegion *system_memory,

                                        target_phys_addr_t base,

                                        omap_clk clk)

{

    struct omap_pwt_s *s = g_malloc0(sizeof(*s));

    s->clk = clk;

    omap_pwt_reset(s);



    memory_region_init_io(&s->iomem, &omap_pwt_ops, s,

                          "omap-pwt", 0x800);

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

    return s;

}

static struct omap_pwt_s *omap_pwt_init(MemoryRegion *system_memory,

                                        target_phys_addr_t base,

                                        omap_clk clk)

{

    struct omap_pwt_s *s = g_malloc0(sizeof(*s));

    s->clk = clk;

    omap_pwt_reset(s);



    memory_region_init_io(&s->iomem, &omap_pwt_ops, s,

                          "omap-pwt", 0x800);

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

    return s;

}

static struct omap_pwt_s *FUNC_0(MemoryRegion *VAR_0,

                                        target_phys_addr_t VAR_1,

                                        omap_clk VAR_2)

{

    struct omap_pwt_s *VAR_3 = g_malloc0(sizeof(*VAR_3));

    VAR_3->VAR_2 = VAR_2;

    omap_pwt_reset(VAR_3);



    memory_region_init_io(&VAR_3->iomem, &omap_pwt_ops, VAR_3,

                          "omap-pwt", 0x800);

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

    return VAR_3;

}

static struct omap_pwt_s *FUNC_0(MemoryRegion *VAR_0,
target_phys_addr_t VAR_1,
omap_clk VAR_2)
{ struct omap_pwt_s *VAR_3 = g_malloc0(sizeof(*VAR_3)); VAR_3->VAR_2 = VAR_2; omap_pwt_reset(VAR_3); memory_region_init_io(&VAR_3->iomem, &omap_pwt_ops, VAR_3,
"omap-pwt", 0x800); memory_region_add_subregion(VAR_0, VAR_1, &VAR_3->iomem); return VAR_3; }