Changeset 49f2f29 in mainline for uspace/lib/usbvirt/src/virthub_base.c
- Timestamp:
- 2013-02-08T20:47:19Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 86a01cc
- Parents:
- c5f4e6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/virthub_base.c
rc5f4e6a r49f2f29 37 37 #include <macros.h> 38 38 #include <str.h> 39 #include <usb/classes/hub.h> 39 40 40 41 #include "virthub_base.h" … … 56 57 usbvirt_device_ops_t *ops, void *data, 57 58 const usb_standard_device_descriptor_t *device_desc, 58 const usb_hub_descriptor_header_t *hub_desc, 59 usb_endpoint_t ep, unsigned port_count) 59 const usb_hub_descriptor_header_t *hub_desc, usb_endpoint_t ep) 60 60 { 61 61 assert(instance); 62 62 assert(hub_desc); 63 63 assert(name); 64 64 65 65 if (!usb_endpoint_is_valid(ep) || (ep == USB_ENDPOINT_DEFAULT_CONTROL)) 66 66 return EINVAL; … … 73 73 instance->endpoint_descriptor.endpoint_address = 128 | ep; 74 74 instance->endpoint_descriptor.max_packet_size = 75 (1 + port_count + 7) / 8;75 STATUS_BYTES(hub_desc->port_count); 76 76 77 77 instance->descriptors.device =
Note:
See TracChangeset
for help on using the changeset viewer.