static int usb_serial_initfn(USBDevice *dev)
{
    USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev);
    s->dev.speed = USB_SPEED_FULL;
    qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,
                          usb_serial_event, s);
    usb_serial_handle_reset(dev);
    return 0;
static int usb_serial_initfn(USBDevice *dev)
{
    USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev);
    s->dev.speed = USB_SPEED_FULL;
    qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,
                          usb_serial_event, s);
    usb_serial_handle_reset(dev);
    return 0;
static int FUNC_0(USBDevice *VAR_0)
{
    USBSerialState *s = DO_UPCAST(USBSerialState, VAR_0, VAR_0);
    s->VAR_0.speed = USB_SPEED_FULL;
    qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,
                          usb_serial_event, s);
    usb_serial_handle_reset(VAR_0);
    return 0;
static int FUNC_0(USBDevice *VAR_0)
{ USBSerialState *s = DO_UPCAST(USBSerialState, VAR_0, VAR_0); s->VAR_0.speed = USB_SPEED_FULL; qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,
usb_serial_event, s); usb_serial_handle_reset(VAR_0); return 0;