/* Enables all the endpoints for the interface's current altsetting.  */
static void usb_enable_interface(struct usb_host_virt_dev *dev, struct usb_interface *intf)
/* Enables all the endpoints for the interface's current altsetting.  */
static void usb_enable_interface(struct usb_host_virt_dev *dev, struct usb_interface *intf)
{
    struct usb_host_virt_interface *alt = intf->cur_altsetting;
    int i;
    for (i = 0; i < alt->desc.bNumEndpoints; ++i)
    {
        usb_enable_endpoint(dev, &alt->endpoint[i]);
    }
}