Changeset 3bacee1 in mainline for uspace/lib/usbhost/src/bandwidth.c
- 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)
- File:
-
- 1 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:
Note:
See TracChangeset
for help on using the changeset viewer.