static void omap_sti_fifo_write(void *opaque, target_phys_addr_t addr,

                uint32_t value)

{

    struct omap_sti_s *s = (struct omap_sti_s *) opaque;

    int offset = addr - s->channel_base;

    int ch = offset >> 6;

    uint8_t byte = value;



    if (ch == STI_TRACE_CONTROL_CHANNEL) {

        /* Flush channel <i>value</i>.  */

        qemu_chr_write(s->chr, "\r", 1);

    } else if (ch == STI_TRACE_CONSOLE_CHANNEL || 1) {

        if (value == 0xc0 || value == 0xc3) {

            /* Open channel <i>ch</i>.  */

        } else if (value == 0x00)

            qemu_chr_write(s->chr, "\n", 1);

        else

            qemu_chr_write(s->chr, &byte, 1);

    }

}

static void omap_sti_fifo_write(void *opaque, target_phys_addr_t addr,

                uint32_t value)

{

    struct omap_sti_s *s = (struct omap_sti_s *) opaque;

    int offset = addr - s->channel_base;

    int ch = offset >> 6;

    uint8_t byte = value;



    if (ch == STI_TRACE_CONTROL_CHANNEL) {

        

        qemu_chr_write(s->chr, "\r", 1);

    } else if (ch == STI_TRACE_CONSOLE_CHANNEL || 1) {

        if (value == 0xc0 || value == 0xc3) {

            

        } else if (value == 0x00)

            qemu_chr_write(s->chr, "\n", 1);

        else

            qemu_chr_write(s->chr, &byte, 1);

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,

                uint32_t VAR_2)

{

    struct omap_sti_s *VAR_3 = (struct omap_sti_s *) VAR_0;

    int VAR_4 = VAR_1 - VAR_3->channel_base;

    int VAR_5 = VAR_4 >> 6;

    uint8_t byte = VAR_2;



    if (VAR_5 == STI_TRACE_CONTROL_CHANNEL) {

        

        qemu_chr_write(VAR_3->chr, "\r", 1);

    } else if (VAR_5 == STI_TRACE_CONSOLE_CHANNEL || 1) {

        if (VAR_2 == 0xc0 || VAR_2 == 0xc3) {

            

        } else if (VAR_2 == 0x00)

            qemu_chr_write(VAR_3->chr, "\n", 1);

        else

            qemu_chr_write(VAR_3->chr, &byte, 1);

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint32_t VAR_2)
{ struct omap_sti_s *VAR_3 = (struct omap_sti_s *) VAR_0; int VAR_4 = VAR_1 - VAR_3->channel_base; int VAR_5 = VAR_4 >> 6; uint8_t byte = VAR_2; if (VAR_5 == STI_TRACE_CONTROL_CHANNEL) { qemu_chr_write(VAR_3->chr, "\r", 1); } else if (VAR_5 == STI_TRACE_CONSOLE_CHANNEL || 1) { if (VAR_2 == 0xc0 || VAR_2 == 0xc3) { } else if (VAR_2 == 0x00) qemu_chr_write(VAR_3->chr, "\n", 1); else
qemu_chr_write(VAR_3->chr, &byte, 1); } }