Changeset 129b821f in mainline for uspace/lib
- Timestamp:
- 2018-01-20T12:34:50Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 682c9354
- Parents:
- 60d3f35
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-20 12:33:42)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-20 12:34:50)
- Location:
- uspace/lib
- Files:
-
- 4 edited
-
usbdev/include/usb/dev/device.h (modified) (1 diff)
-
usbdev/src/devdrv.c (modified) (1 diff)
-
usbhost/include/usb/host/utility.h (modified) (1 diff)
-
usbhost/src/utility.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/device.h
r60d3f35 r129b821f 90 90 int usb_device_unmap_ep(usb_endpoint_mapping_t *); 91 91 92 usb_speed_t usb_device_get_speed(usb_device_t *); 92 93 int usb_device_get_iface_number(usb_device_t *); 93 94 devman_handle_t usb_device_get_devman_handle(usb_device_t *); -
uspace/lib/usbdev/src/devdrv.c
r60d3f35 r129b821f 364 364 } 365 365 366 usb_speed_t usb_device_get_speed(usb_device_t *usb_dev) 367 { 368 assert(usb_dev); 369 return usb_dev->speed; 370 } 371 366 372 int usb_device_get_iface_number(usb_device_t *usb_dev) 367 373 { -
uspace/lib/usbhost/include/usb/host/utility.h
r60d3f35 r129b821f 48 48 int hc_get_ep0_max_packet_size(uint16_t *, bus_t *, device_t *); 49 49 void hc_reset_toggles(const usb_transfer_batch_t *batch, endpoint_reset_toggle_t); 50 int hc_setup_virtual_root_hub(hc_device_t * );50 int hc_setup_virtual_root_hub(hc_device_t *, usb_speed_t); 51 51 int hc_get_device_desc(device_t *, usb_standard_device_descriptor_t *); 52 52 int hc_get_hub_desc(device_t *, usb_hub_descriptor_header_t *); -
uspace/lib/usbhost/src/utility.c
r60d3f35 r129b821f 177 177 * @return Error code 178 178 */ 179 int hc_setup_virtual_root_hub(hc_device_t *hcd )179 int hc_setup_virtual_root_hub(hc_device_t *hcd, usb_speed_t rh_speed) 180 180 { 181 181 int err; … … 183 183 assert(hcd); 184 184 185 device_t *dev = hcd_ddf_fun_create(hcd, USB_SPEED_MAX);185 device_t *dev = hcd_ddf_fun_create(hcd, rh_speed); 186 186 if (!dev) { 187 187 usb_log_error("Failed to create function for the root hub.");
Note:
See TracChangeset
for help on using the changeset viewer.
