static void serial_tx_done(void *opaque)

{

    SerialState *s = opaque;



    if (s->tx_burst < 0) {

        uint16_t divider;



        if (s->divider)

          divider = s->divider;

        else

          divider = 1;



        /* We assume 10 bits/char, OK for this purpose. */

        s->tx_burst = THROTTLE_TX_INTERVAL * 1000 /

            (1000000 * 10 / (s->baudbase / divider));

    }

    s->thr_ipending = 1;

    s->lsr |= UART_LSR_THRE;

    s->lsr |= UART_LSR_TEMT;

    serial_update_irq(s);

}

static void serial_tx_done(void *opaque)

{

    SerialState *s = opaque;



    if (s->tx_burst < 0) {

        uint16_t divider;



        if (s->divider)

          divider = s->divider;

        else

          divider = 1;



        

        s->tx_burst = THROTTLE_TX_INTERVAL * 1000 /

            (1000000 * 10 / (s->baudbase / divider));

    }

    s->thr_ipending = 1;

    s->lsr |= UART_LSR_THRE;

    s->lsr |= UART_LSR_TEMT;

    serial_update_irq(s);

}

static void serial_tx_done(void *opaque)     SerialState *s = opaque;     if (s->tx_burst < 0) {         uint16_t divider;         if (s->divider)           divider = s->divider;           divider = 1;         s->tx_burst = THROTTLE_TX_INTERVAL * 1000 /             (1000000 * 10 / (s->baudbase / divider));     s->thr_ipending = 1;     s->lsr |= UART_LSR_THRE;     s->lsr |= UART_LSR_TEMT;     serial_update_irq(s);     serial_update_irq(s);
static void FUNC_0(void *VAR_0)

{

    SerialState *s = VAR_0;



    if (s->tx_burst < 0) {

        uint16_t divider;



        if (s->divider)

          divider = s->divider;

        else

          divider = 1;



        

        s->tx_burst = THROTTLE_TX_INTERVAL * 1000 /

            (1000000 * 10 / (s->baudbase / divider));

    }

    s->thr_ipending = 1;

    s->lsr |= UART_LSR_THRE;

    s->lsr |= UART_LSR_TEMT;

    serial_update_irq(s);

}

static void FUNC_0(void *VAR_0)
{ SerialState *s = VAR_0; if (s->tx_burst < 0) { uint16_t divider; if (s->divider)
divider = s->divider; else
divider = 1; s->tx_burst = THROTTLE_TX_INTERVAL * 1000 /
(1000000 * 10 / (s->baudbase / divider)); } s->thr_ipending = 1; s->lsr |= UART_LSR_THRE; s->lsr |= UART_LSR_TEMT; serial_update_irq(s); }