Changeset fa9d3af in mainline
- Timestamp:
- 2013-08-07T15:11:40Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5dad73d
- Parents:
- 14dd4c9
- Location:
- uspace/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/usb.h
r14dd4c9 rfa9d3af 83 83 USB_SPEED_MAX 84 84 } usb_speed_t; 85 86 static inline bool usb_speed_is_11(const usb_speed_t s) 87 { 88 return (s == USB_SPEED_FULL) || (s == USB_SPEED_LOW); 89 } 85 90 86 91 const char *usb_str_speed(usb_speed_t); -
uspace/lib/usbhost/src/ddf_helpers.c
r14dd4c9 rfa9d3af 53 53 usb_address_t address; 54 54 usb_speed_t speed; 55 usb_address_t tt_address; 55 56 unsigned port; 56 57 } usb_dev_t; … … 325 326 info->fun = fun; 326 327 info->port = port; 328 info->tt_address = hub_dev ? hub_dev->tt_address : -1; 327 329 link_initialize(&info->link); 328 330 list_initialize(&info->devices); 329 331 fibril_mutex_initialize(&info->guard); 332 333 if (hub_dev->speed == USB_SPEED_HIGH && usb_speed_is_11(speed)) 334 info->tt_address = hub_dev->address; 330 335 331 336 ddf_fun_set_ops(fun, &usb_ops);
Note:
See TracChangeset
for help on using the changeset viewer.