Changeset 6832245 in mainline for uspace/lib/usbhost/src/hcd.c
- Timestamp:
- 2017-12-14T23:01:57Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 837d53d
- Parents:
- bd05140
- git-author:
- Ondřej Hlavatý <aearsis@…> (2017-12-14 23:01:54)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2017-12-14 23:01:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/hcd.c
rbd05140 r6832245 208 208 } 209 209 210 endpoint_t *ep = bus_find_endpoint( hcd->bus,device, target, direction);210 endpoint_t *ep = bus_find_endpoint(device, target, direction); 211 211 if (ep == NULL) { 212 212 usb_log_error("Endpoint(%d:%d) not registered for %s.\n", … … 216 216 217 217 // TODO cut here aka provide helper to call with instance of endpoint_t in hand 218 assert(ep->device == device); 218 219 219 220 usb_log_debug2("%s %d:%d %zu(%zu).\n", 220 221 name, target.address, target.endpoint, size, ep->max_packet_size); 221 222 222 const size_t bw = bus_count_bw(ep, size);223 const size_t bw = endpoint_count_bw(ep, size); 223 224 /* Check if we have enough bandwidth reserved */ 224 225 if (ep->bandwidth < bw) {
Note:
See TracChangeset
for help on using the changeset viewer.