Changeset 6ce42e85 in mainline for uspace/drv/uhci-hcd/hc.c
- Timestamp:
- 2011-04-06T18:13:05Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 391d55b
- Parents:
- 90b9ab5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/hc.c
r90b9ab5 r6ce42e85 239 239 usb_log_debug("Initialized device manager.\n"); 240 240 241 ret = bandwidth_init(&instance->bandwidth, BANDWIDTH_AVAILABLE_USB11, 242 bandwidth_count_usb11); 241 ret = 242 usb_endpoint_manager_init(&instance->ep_manager, 243 BANDWIDTH_AVAILABLE_USB11); 243 244 assert(ret == EOK); 244 245 … … 335 336 } 336 337 /* Check available bandwidth */ 338 /* 337 339 if (batch->transfer_type == USB_TRANSFER_INTERRUPT || 338 340 batch->transfer_type == USB_TRANSFER_ISOCHRONOUS) { 339 size_t bw = bandwidth_count_usb11(batch->speed,341 const size_t bw = bandwidth_count_usb11(batch->speed, 340 342 batch->transfer_type, batch->buffer_size, 341 343 batch->max_packet_size); 344 342 345 int ret = 343 346 bandwidth_use(&instance->bandwidth, batch->target.address, … … 349 352 } 350 353 } 354 */ 351 355 352 356 transfer_list_t *list = … … 402 406 case USB_TRANSFER_INTERRUPT: 403 407 case USB_TRANSFER_ISOCHRONOUS: { 408 /* 404 409 int ret = bandwidth_free(&instance->bandwidth, 405 410 batch->target.address, … … 410 415 "reserved bw: %s.\n", ret, 411 416 str_error(ret)); 417 */ 412 418 } 413 419 default:
Note:
See TracChangeset
for help on using the changeset viewer.