Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2013-02-08T16:08:51Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
603a0a4
Parents:
81da273b
Message:

libusbvirt, virthub: Allow drivers to set endpoint number and port count.

Using smaller max_packet_size reduces bandwidth requirements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/include/usbvirt/virthub_base.h

    r81da273b r2a5a7711  
    4242enum {
    4343        VIRTHUB_EXTR_DESC = 3,
    44         HUB_STATUS_CHANGE_PIPE = 1,
    4544};
    4645
    4746typedef struct {
    4847        usb_standard_configuration_descriptor_t config_descriptor;
     48        usb_standard_endpoint_descriptor_t endpoint_descriptor;
    4949        usbvirt_device_configuration_extras_t extra[VIRTHUB_EXTR_DESC];
    5050        usbvirt_device_configuration_t configuration;
     
    5959    const char *name, usbvirt_device_ops_t *ops, void *data,
    6060    const usb_standard_device_descriptor_t *device_desc,
    61     const usb_hub_descriptor_header_t *hub_desc);
     61    const usb_hub_descriptor_header_t *hub_desc,
     62    usb_endpoint_t ep, unsigned port_count);
    6263
    6364usb_address_t virthub_base_get_address(virthub_base_t *instance);
Note: See TracChangeset for help on using the changeset viewer.