Changes in uspace/drv/uhci-hcd/hc.c [c61338a:62ed5bc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/hc.c
rc61338a r62ed5bc 67 67 static int hc_debug_checker(void *arg); 68 68 69 static bool usb_is_allowed(69 static bool allowed_usb_packet( 70 70 bool low_speed, usb_transfer_type_t transfer, size_t size); 71 71 /*----------------------------------------------------------------------------*/ … … 323 323 assert(batch); 324 324 const int low_speed = (batch->speed == USB_SPEED_LOW); 325 if (! usb_is_allowed(325 if (!allowed_usb_packet( 326 326 low_speed, batch->transfer_type, batch->max_packet_size)) { 327 327 usb_log_warning( 328 "Invalid USB transferspecified %s SPEED %d %zu.\n",328 "Invalid USB packet specified %s SPEED %d %zu.\n", 329 329 low_speed ? "LOW" : "FULL" , batch->transfer_type, 330 330 batch->max_packet_size); … … 471 471 } 472 472 /*----------------------------------------------------------------------------*/ 473 /** Check transfer sfor USB validity473 /** Check transfer packets, for USB validity 474 474 * 475 475 * @param[in] low_speed Transfer speed. 476 476 * @param[in] transfer Transer type 477 * @param[in] size Size of datapackets477 * @param[in] size Maximum size of used packets 478 478 * @return True if transaction is allowed by USB specs, false otherwise 479 479 */ 480 bool usb_is_allowed(480 bool allowed_usb_packet( 481 481 bool low_speed, usb_transfer_type_t transfer, size_t size) 482 482 {
Note:
See TracChangeset
for help on using the changeset viewer.