Changeset 3bacee1 in mainline for uspace/lib/usbhost/src
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- Location:
- uspace/lib/usbhost/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/bandwidth.c
r76d0981d r3bacee1 62 62 63 63 /* We care about bandwidth only for interrupt and isochronous. */ 64 if ((type != USB_TRANSFER_INTERRUPT) 65 &&(type != USB_TRANSFER_ISOCHRONOUS)) {64 if ((type != USB_TRANSFER_INTERRUPT) && 65 (type != USB_TRANSFER_ISOCHRONOUS)) { 66 66 return 0; 67 67 } … … 127 127 128 128 /* We care about bandwidth only for interrupt and isochronous. */ 129 if ((type != USB_TRANSFER_INTERRUPT) 130 &&(type != USB_TRANSFER_ISOCHRONOUS)) {129 if ((type != USB_TRANSFER_INTERRUPT) && 130 (type != USB_TRANSFER_ISOCHRONOUS)) { 131 131 return 0; 132 132 } … … 143 143 if (ep->direction == USB_DIRECTION_IN) 144 144 return 64060 + (2 * hub_ls_setup) + 145 145 (677 * base_time) + host_delay; 146 146 else 147 147 return 64107 + (2 * hub_ls_setup) + 148 148 (667 * base_time) + host_delay; 149 149 150 150 case USB_SPEED_FULL: -
uspace/lib/usbhost/src/endpoint.c
r76d0981d r3bacee1 225 225 } 226 226 227 device_t * 227 device_t *const device = ep->device; 228 228 if (!device) { 229 229 usb_log_warning("Endpoint detached"); … … 243 243 */ 244 244 if (size > ep->max_transfer_size && 245 (ep->transfer_type == USB_TRANSFER_INTERRUPT 246 ||ep->transfer_type == USB_TRANSFER_ISOCHRONOUS)) {245 (ep->transfer_type == USB_TRANSFER_INTERRUPT || 246 ep->transfer_type == USB_TRANSFER_ISOCHRONOUS)) { 247 247 if (req->dir == USB_DIRECTION_OUT) 248 248 return ENOSPC;
Note:
See TracChangeset
for help on using the changeset viewer.