static int ohci_bus_start(OHCIState *ohci)

{

    ohci->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,

                    ohci_frame_boundary,

                    ohci);



    if (ohci->eof_timer == NULL) {

        trace_usb_ohci_bus_eof_timer_failed(ohci->name);

        ohci_die(ohci);

        return 0;

    }



    trace_usb_ohci_start(ohci->name);



    ohci_sof(ohci);



    return 1;

}

static int ohci_bus_start(OHCIState *ohci)

{

    ohci->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,

                    ohci_frame_boundary,

                    ohci);



    if (ohci->eof_timer == NULL) {

        trace_usb_ohci_bus_eof_timer_failed(ohci->name);

        ohci_die(ohci);

        return 0;

    }



    trace_usb_ohci_start(ohci->name);



    ohci_sof(ohci);



    return 1;

}

static int FUNC_0(OHCIState *VAR_0)

{

    VAR_0->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,

                    ohci_frame_boundary,

                    VAR_0);



    if (VAR_0->eof_timer == NULL) {

        trace_usb_ohci_bus_eof_timer_failed(VAR_0->name);

        ohci_die(VAR_0);

        return 0;

    }



    trace_usb_ohci_start(VAR_0->name);



    ohci_sof(VAR_0);



    return 1;

}

static int FUNC_0(OHCIState *VAR_0)
{ VAR_0->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,
ohci_frame_boundary,
VAR_0); if (VAR_0->eof_timer == NULL) { trace_usb_ohci_bus_eof_timer_failed(VAR_0->name); ohci_die(VAR_0); return 0; } trace_usb_ohci_start(VAR_0->name); ohci_sof(VAR_0); return 1; }