void usb_packet_setup(USBPacket *p, int pid, uint8_t addr, uint8_t ep)

{

    assert(!usb_packet_is_inflight(p));

    p->state = USB_PACKET_SETUP;

    p->pid = pid;

    p->devaddr = addr;

    p->devep = ep;

    p->result = 0;

    qemu_iovec_reset(&p->iov);

}

void usb_packet_setup(USBPacket *p, int pid, uint8_t addr, uint8_t ep)

{

    assert(!usb_packet_is_inflight(p));

    p->state = USB_PACKET_SETUP;

    p->pid = pid;

    p->devaddr = addr;

    p->devep = ep;

    p->result = 0;

    qemu_iovec_reset(&p->iov);

}

void FUNC_0(USBPacket *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3)

{

    assert(!usb_packet_is_inflight(VAR_0));

    VAR_0->state = USB_PACKET_SETUP;

    VAR_0->VAR_1 = VAR_1;

    VAR_0->devaddr = VAR_2;

    VAR_0->devep = VAR_3;

    VAR_0->result = 0;

    qemu_iovec_reset(&VAR_0->iov);

}

void FUNC_0(USBPacket *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3)
{ assert(!usb_packet_is_inflight(VAR_0)); VAR_0->state = USB_PACKET_SETUP; VAR_0->VAR_1 = VAR_1; VAR_0->devaddr = VAR_2; VAR_0->devep = VAR_3; VAR_0->result = 0; qemu_iovec_reset(&VAR_0->iov); }