struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta,

                qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk iclk)

{

    int iomemtype;

    struct omap_eac_s *s = (struct omap_eac_s *)

            qemu_mallocz(sizeof(struct omap_eac_s));



    s->irq = irq;

    s->codec.rxdrq = *drq ++;

    s->codec.txdrq = *drq;

    omap_eac_reset(s);



#ifdef HAS_AUDIO

    AUD_register_card("OMAP EAC", &s->codec.card);



    iomemtype = cpu_register_io_memory(omap_eac_readfn,

                    omap_eac_writefn, s);

    omap_l4_attach(ta, 0, iomemtype);

#endif



    return s;

}

struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta,

                qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk iclk)

{

    int iomemtype;

    struct omap_eac_s *s = (struct omap_eac_s *)

            qemu_mallocz(sizeof(struct omap_eac_s));



    s->irq = irq;

    s->codec.rxdrq = *drq ++;

    s->codec.txdrq = *drq;

    omap_eac_reset(s);



#ifdef HAS_AUDIO

    AUD_register_card("OMAP EAC", &s->codec.card);



    iomemtype = cpu_register_io_memory(omap_eac_readfn,

                    omap_eac_writefn, s);

    omap_l4_attach(ta, 0, iomemtype);

#endif



    return s;

}

struct omap_eac_s *FUNC_0(struct omap_target_agent_s *VAR_0,

                qemu_irq VAR_1, qemu_irq *VAR_2, omap_clk VAR_3, omap_clk VAR_4)

{

    int VAR_5;

    struct omap_eac_s *VAR_6 = (struct omap_eac_s *)

            qemu_mallocz(sizeof(struct omap_eac_s));



    VAR_6->VAR_1 = VAR_1;

    VAR_6->codec.rxdrq = *VAR_2 ++;

    VAR_6->codec.txdrq = *VAR_2;

    omap_eac_reset(VAR_6);



#ifdef HAS_AUDIO

    AUD_register_card("OMAP EAC", &VAR_6->codec.card);



    VAR_5 = cpu_register_io_memory(omap_eac_readfn,

                    omap_eac_writefn, VAR_6);

    omap_l4_attach(VAR_0, 0, VAR_5);

#endif



    return VAR_6;

}

struct omap_eac_s *FUNC_0(struct omap_target_agent_s *VAR_0,
qemu_irq VAR_1, qemu_irq *VAR_2, omap_clk VAR_3, omap_clk VAR_4)
{ int VAR_5; struct omap_eac_s *VAR_6 = (struct omap_eac_s *)
qemu_mallocz(sizeof(struct omap_eac_s)); VAR_6->VAR_1 = VAR_1; VAR_6->codec.rxdrq = *VAR_2 ++; VAR_6->codec.txdrq = *VAR_2; omap_eac_reset(VAR_6); #ifdef HAS_AUDIO
AUD_register_card("OMAP EAC", &VAR_6->codec.card); VAR_5 = cpu_register_io_memory(omap_eac_readfn,
omap_eac_writefn, VAR_6); omap_l4_attach(VAR_0, 0, VAR_5); #endif
return VAR_6; }