static void serial_init_core(SerialState *s)

{

    if (!s->chr) {

        fprintf(stderr, "Can't create serial device, empty char device\n");

	exit(1);

    }



    s->modem_status_poll = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_update_msl, s);



    s->fifo_timeout_timer = qemu_new_timer(vm_clock, (QEMUTimerCB *) fifo_timeout_int, s);

    s->transmit_timer = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_xmit, s);



    qemu_register_reset(serial_reset, s);

    serial_reset(s);



    qemu_chr_add_handlers(s->chr, serial_can_receive1, serial_receive1,

                          serial_event, s);

}

static void serial_init_core(SerialState *s)

{

    if (!s->chr) {

        fprintf(stderr, "Can't create serial device, empty char device\n");

	exit(1);

    }



    s->modem_status_poll = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_update_msl, s);



    s->fifo_timeout_timer = qemu_new_timer(vm_clock, (QEMUTimerCB *) fifo_timeout_int, s);

    s->transmit_timer = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_xmit, s);



    qemu_register_reset(serial_reset, s);

    serial_reset(s);



    qemu_chr_add_handlers(s->chr, serial_can_receive1, serial_receive1,

                          serial_event, s);

}

static void FUNC_0(SerialState *VAR_0)

{

    if (!VAR_0->chr) {

        fprintf(stderr, "Can't create serial device, empty char device\n");

	exit(1);

    }



    VAR_0->modem_status_poll = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_update_msl, VAR_0);



    VAR_0->fifo_timeout_timer = qemu_new_timer(vm_clock, (QEMUTimerCB *) fifo_timeout_int, VAR_0);

    VAR_0->transmit_timer = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_xmit, VAR_0);



    qemu_register_reset(serial_reset, VAR_0);

    serial_reset(VAR_0);



    qemu_chr_add_handlers(VAR_0->chr, serial_can_receive1, serial_receive1,

                          serial_event, VAR_0);

}

static void FUNC_0(SerialState *VAR_0)
{ if (!VAR_0->chr) { fprintf(stderr, "Can't create serial device, empty char device\n"); exit(1); } VAR_0->modem_status_poll = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_update_msl, VAR_0); VAR_0->fifo_timeout_timer = qemu_new_timer(vm_clock, (QEMUTimerCB *) fifo_timeout_int, VAR_0); VAR_0->transmit_timer = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_xmit, VAR_0); qemu_register_reset(serial_reset, VAR_0); serial_reset(VAR_0); qemu_chr_add_handlers(VAR_0->chr, serial_can_receive1, serial_receive1,
serial_event, VAR_0); }