Changeset 391d55b in mainline for uspace/drv/uhci-hcd/hc.c
- Timestamp:
- 2011-04-06T18:27:49Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5876d36
- Parents:
- 6ce42e85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/hc.c
r6ce42e85 r391d55b 66 66 static int hc_interrupt_emulator(void *arg); 67 67 static int hc_debug_checker(void *arg); 68 68 #if 0 69 69 static bool usb_is_allowed( 70 70 bool low_speed, usb_transfer_type_t transfer, size_t size); 71 #endif 71 72 /*----------------------------------------------------------------------------*/ 72 73 /** Initialize UHCI hcd driver structure … … 327 328 assert(instance); 328 329 assert(batch); 329 const int low_speed = (batch->speed == USB_SPEED_LOW);330 if (!usb_is_allowed(331 low_speed, batch->transfer_type, batch->max_packet_size)) {332 usb_log_error("Invalid USB transfer specified %s %d %zu.\n",333 usb_str_speed(batch->speed), batch->transfer_type,334 batch->max_packet_size);335 return ENOTSUP;336 }337 /* Check available bandwidth */338 /*339 if (batch->transfer_type == USB_TRANSFER_INTERRUPT ||340 batch->transfer_type == USB_TRANSFER_ISOCHRONOUS) {341 const size_t bw = bandwidth_count_usb11(batch->speed,342 batch->transfer_type, batch->buffer_size,343 batch->max_packet_size);344 345 int ret =346 bandwidth_use(&instance->bandwidth, batch->target.address,347 batch->target.endpoint, batch->direction, bw);348 if (ret != EOK) {349 usb_log_error("Failed(%d) to use reserved bw: %s.\n",350 ret, str_error(ret));351 return ret;352 }353 }354 */355 330 356 331 transfer_list_t *list = … … 539 514 * @return True if transaction is allowed by USB specs, false otherwise 540 515 */ 516 #if 0 541 517 bool usb_is_allowed( 542 518 bool low_speed, usb_transfer_type_t transfer, size_t size) … … 556 532 return false; 557 533 } 534 #endif 558 535 /** 559 536 * @}
Note:
See TracChangeset
for help on using the changeset viewer.