void *mcf_uart_init(qemu_irq irq, CharDriverState *chr)

{

    mcf_uart_state *s;



    s = g_malloc0(sizeof(mcf_uart_state));

    s->chr = chr;

    s->irq = irq;

    if (chr) {


        qemu_chr_add_handlers(chr, mcf_uart_can_receive, mcf_uart_receive,

                              mcf_uart_event, s);

    }

    mcf_uart_reset(s);

    return s;

}
void *mcf_uart_init(qemu_irq irq, CharDriverState *chr)

{

    mcf_uart_state *s;



    s = g_malloc0(sizeof(mcf_uart_state));

    s->chr = chr;

    s->irq = irq;

    if (chr) {


        qemu_chr_add_handlers(chr, mcf_uart_can_receive, mcf_uart_receive,

                              mcf_uart_event, s);

    }

    mcf_uart_reset(s);

    return s;

}
void *FUNC_0(qemu_irq VAR_0, CharDriverState *VAR_1)

{

    mcf_uart_state *s;



    s = g_malloc0(sizeof(mcf_uart_state));

    s->VAR_1 = VAR_1;

    s->VAR_0 = VAR_0;

    if (VAR_1) {


        qemu_chr_add_handlers(VAR_1, mcf_uart_can_receive, mcf_uart_receive,

                              mcf_uart_event, s);

    }

    mcf_uart_reset(s);

    return s;

}
void *FUNC_0(qemu_irq VAR_0, CharDriverState *VAR_1)
{ mcf_uart_state *s; s = g_malloc0(sizeof(mcf_uart_state)); s->VAR_1 = VAR_1; s->VAR_0 = VAR_0; if (VAR_1) { qemu_chr_add_handlers(VAR_1, mcf_uart_can_receive, mcf_uart_receive,
mcf_uart_event, s); } mcf_uart_reset(s); return s; }