struct omap_dss_s *omap_dss_init(struct omap_target_agent_s *ta,

                MemoryRegion *sysmem,

                hwaddr l3_base,

                qemu_irq irq, qemu_irq drq,

                omap_clk fck1, omap_clk fck2, omap_clk ck54m,

                omap_clk ick1, omap_clk ick2)

{

    struct omap_dss_s *s = (struct omap_dss_s *)

            g_malloc0(sizeof(struct omap_dss_s));



    s->irq = irq;

    s->drq = drq;

    omap_dss_reset(s);



    memory_region_init_io(&s->iomem_diss1, NULL, &omap_diss_ops, s, "omap.diss1",

                          omap_l4_region_size(ta, 0));

    memory_region_init_io(&s->iomem_disc1, NULL, &omap_disc_ops, s, "omap.disc1",

                          omap_l4_region_size(ta, 1));

    memory_region_init_io(&s->iomem_rfbi1, NULL, &omap_rfbi_ops, s, "omap.rfbi1",

                          omap_l4_region_size(ta, 2));

    memory_region_init_io(&s->iomem_venc1, NULL, &omap_venc_ops, s, "omap.venc1",

                          omap_l4_region_size(ta, 3));

    memory_region_init_io(&s->iomem_im3, NULL, &omap_im3_ops, s,

                          "omap.im3", 0x1000);



    omap_l4_attach(ta, 0, &s->iomem_diss1);

    omap_l4_attach(ta, 1, &s->iomem_disc1);

    omap_l4_attach(ta, 2, &s->iomem_rfbi1);

    omap_l4_attach(ta, 3, &s->iomem_venc1);

    memory_region_add_subregion(sysmem, l3_base, &s->iomem_im3);



#if 0

    s->state = graphic_console_init(omap_update_display,

                                    omap_invalidate_display, omap_screen_dump, s);

#endif



    return s;

}

struct omap_dss_s *omap_dss_init(struct omap_target_agent_s *ta,

                MemoryRegion *sysmem,

                hwaddr l3_base,

                qemu_irq irq, qemu_irq drq,

                omap_clk fck1, omap_clk fck2, omap_clk ck54m,

                omap_clk ick1, omap_clk ick2)

{

    struct omap_dss_s *s = (struct omap_dss_s *)

            g_malloc0(sizeof(struct omap_dss_s));



    s->irq = irq;

    s->drq = drq;

    omap_dss_reset(s);



    memory_region_init_io(&s->iomem_diss1, NULL, &omap_diss_ops, s, "omap.diss1",

                          omap_l4_region_size(ta, 0));

    memory_region_init_io(&s->iomem_disc1, NULL, &omap_disc_ops, s, "omap.disc1",

                          omap_l4_region_size(ta, 1));

    memory_region_init_io(&s->iomem_rfbi1, NULL, &omap_rfbi_ops, s, "omap.rfbi1",

                          omap_l4_region_size(ta, 2));

    memory_region_init_io(&s->iomem_venc1, NULL, &omap_venc_ops, s, "omap.venc1",

                          omap_l4_region_size(ta, 3));

    memory_region_init_io(&s->iomem_im3, NULL, &omap_im3_ops, s,

                          "omap.im3", 0x1000);



    omap_l4_attach(ta, 0, &s->iomem_diss1);

    omap_l4_attach(ta, 1, &s->iomem_disc1);

    omap_l4_attach(ta, 2, &s->iomem_rfbi1);

    omap_l4_attach(ta, 3, &s->iomem_venc1);

    memory_region_add_subregion(sysmem, l3_base, &s->iomem_im3);



#if 0

    s->state = graphic_console_init(omap_update_display,

                                    omap_invalidate_display, omap_screen_dump, s);

#endif



    return s;

}

    struct omap_dss_s *s = (struct omap_dss_s *)             g_malloc0(sizeof(struct omap_dss_s));
struct omap_dss_s *FUNC_0(struct omap_target_agent_s *VAR_0,

                MemoryRegion *VAR_1,

                hwaddr VAR_2,

                qemu_irq VAR_3, qemu_irq VAR_4,

                omap_clk VAR_5, omap_clk VAR_6, omap_clk VAR_7,

                omap_clk VAR_8, omap_clk VAR_9)

{

    struct omap_dss_s *VAR_10 = (struct omap_dss_s *)

            g_malloc0(sizeof(struct omap_dss_s));



    VAR_10->VAR_3 = VAR_3;

    VAR_10->VAR_4 = VAR_4;

    omap_dss_reset(VAR_10);



    memory_region_init_io(&VAR_10->iomem_diss1, NULL, &omap_diss_ops, VAR_10, "omap.diss1",

                          omap_l4_region_size(VAR_0, 0));

    memory_region_init_io(&VAR_10->iomem_disc1, NULL, &omap_disc_ops, VAR_10, "omap.disc1",

                          omap_l4_region_size(VAR_0, 1));

    memory_region_init_io(&VAR_10->iomem_rfbi1, NULL, &omap_rfbi_ops, VAR_10, "omap.rfbi1",

                          omap_l4_region_size(VAR_0, 2));

    memory_region_init_io(&VAR_10->iomem_venc1, NULL, &omap_venc_ops, VAR_10, "omap.venc1",

                          omap_l4_region_size(VAR_0, 3));

    memory_region_init_io(&VAR_10->iomem_im3, NULL, &omap_im3_ops, VAR_10,

                          "omap.im3", 0x1000);



    omap_l4_attach(VAR_0, 0, &VAR_10->iomem_diss1);

    omap_l4_attach(VAR_0, 1, &VAR_10->iomem_disc1);

    omap_l4_attach(VAR_0, 2, &VAR_10->iomem_rfbi1);

    omap_l4_attach(VAR_0, 3, &VAR_10->iomem_venc1);

    memory_region_add_subregion(VAR_1, VAR_2, &VAR_10->iomem_im3);



#if 0

    VAR_10->state = graphic_console_init(omap_update_display,

                                    omap_invalidate_display, omap_screen_dump, VAR_10);

#endif



    return VAR_10;

}

struct omap_dss_s *FUNC_0(struct omap_target_agent_s *VAR_0,
MemoryRegion *VAR_1,
hwaddr VAR_2,
qemu_irq VAR_3, qemu_irq VAR_4,
omap_clk VAR_5, omap_clk VAR_6, omap_clk VAR_7,
omap_clk VAR_8, omap_clk VAR_9)
{ struct omap_dss_s *VAR_10 = (struct omap_dss_s *)
g_malloc0(sizeof(struct omap_dss_s)); VAR_10->VAR_3 = VAR_3; VAR_10->VAR_4 = VAR_4; omap_dss_reset(VAR_10); memory_region_init_io(&VAR_10->iomem_diss1, NULL, &omap_diss_ops, VAR_10, "omap.diss1",
omap_l4_region_size(VAR_0, 0)); memory_region_init_io(&VAR_10->iomem_disc1, NULL, &omap_disc_ops, VAR_10, "omap.disc1",
omap_l4_region_size(VAR_0, 1)); memory_region_init_io(&VAR_10->iomem_rfbi1, NULL, &omap_rfbi_ops, VAR_10, "omap.rfbi1",
omap_l4_region_size(VAR_0, 2)); memory_region_init_io(&VAR_10->iomem_venc1, NULL, &omap_venc_ops, VAR_10, "omap.venc1",
omap_l4_region_size(VAR_0, 3)); memory_region_init_io(&VAR_10->iomem_im3, NULL, &omap_im3_ops, VAR_10,
"omap.im3", 0x1000); omap_l4_attach(VAR_0, 0, &VAR_10->iomem_diss1); omap_l4_attach(VAR_0, 1, &VAR_10->iomem_disc1); omap_l4_attach(VAR_0, 2, &VAR_10->iomem_rfbi1); omap_l4_attach(VAR_0, 3, &VAR_10->iomem_venc1); memory_region_add_subregion(VAR_1, VAR_2, &VAR_10->iomem_im3); #if 0
VAR_10->state = graphic_console_init(omap_update_display,
omap_invalidate_display, omap_screen_dump, VAR_10); #endif
return VAR_10; }