Changeset 4ca18ae in mainline
- Timestamp:
- 2011-04-06T22:21:12Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 87305bb
- Parents:
- f567bcf
- Location:
- uspace/drv/uhci-hcd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/batch.c
rf567bcf r4ca18ae 49 49 td_t *tds; 50 50 size_t transfers; 51 // usb_device_keeper_t *manager;52 51 } uhci_batch_t; 53 52 … … 73 72 * @param[in] func_out function to call on outbound transaction completion 74 73 * @param[in] arg additional parameter to func_in or func_out 75 * @param[in] manager Pointer totoggle management structure.74 * @param[in] ep Pointer to endpoint toggle management structure. 76 75 * @return Valid pointer if all substructures were successfully created, 77 76 * NULL otherwise. … … 86 85 char* setup_buffer, size_t setup_size, 87 86 usbhc_iface_transfer_in_callback_t func_in, 88 usbhc_iface_transfer_out_callback_t func_out, void *arg, 89 usb_device_keeper_t *manager, endpoint_t *ep 87 usbhc_iface_transfer_out_callback_t func_out, void *arg, endpoint_t *ep 90 88 ) 91 89 { … … 115 113 "Failed to allocate batch instance.\n"); 116 114 bzero(data, sizeof(uhci_batch_t)); 117 // data->manager = manager;118 115 instance->private_data = data; 119 116 … … 181 178 instance, i, data->tds[i].status); 182 179 td_print_status(&data->tds[i]); 183 endpoint_toggle_set(instance->ep, 184 td_toggle(&data->tds[i])); 185 /* 186 usb_device_keeper_set_toggle(data->manager, 187 instance->target, instance->direction, 188 td_toggle(&data->tds[i])); 189 */ 180 if (instance->ep != NULL) 181 endpoint_toggle_set(instance->ep, 182 td_toggle(&data->tds[i])); 190 183 if (i > 0) 191 184 goto substract_ret; … … 315 308 const bool low_speed = instance->speed == USB_SPEED_LOW; 316 309 int toggle = endpoint_toggle_get(instance->ep); 317 // usb_device_keeper_get_toggle(318 // data->manager, instance->target, instance->direction);319 310 assert(toggle == 0 || toggle == 1); 320 311 … … 348 339 td_set_ioc(&data->tds[transfer - 1]); 349 340 endpoint_toggle_set(instance->ep, toggle); 350 // usb_device_keeper_set_toggle(data->manager, instance->target,351 // instance->direction, toggle);352 341 } 353 342 /*----------------------------------------------------------------------------*/ -
uspace/drv/uhci-hcd/batch.h
rf567bcf r4ca18ae 56 56 usbhc_iface_transfer_out_callback_t func_out, 57 57 void *arg, 58 usb_device_keeper_t *manager,59 58 endpoint_t *ep 60 59 ); -
uspace/drv/uhci-hcd/iface.c
rf567bcf r4ca18ae 246 246 usb_transfer_batch_t *batch = 247 247 batch_get(fun, target, ep->transfer_type, ep->max_packet_size, 248 ep->speed, data, size, NULL, 0, NULL, callback, arg, 249 &hc->manager, ep); 248 ep->speed, data, size, NULL, 0, NULL, callback, arg, ep); 250 249 if (!batch) 251 250 return ENOMEM; … … 305 304 usb_transfer_batch_t *batch = 306 305 batch_get(fun, target, ep->transfer_type, ep->max_packet_size, 307 ep->speed, data, size, NULL, 0, callback, NULL, arg, 308 &hc->manager, ep); 306 ep->speed, data, size, NULL, 0, callback, NULL, arg, ep); 309 307 if (!batch) 310 308 return ENOMEM; … … 353 351 usb_transfer_batch_t *batch = 354 352 batch_get(fun, target, ep->transfer_type, ep->max_packet_size, 355 ep->speed, data, size, NULL, 0, NULL, callback, arg, 356 &hc->manager, ep); 353 ep->speed, data, size, NULL, 0, NULL, callback, arg, ep); 357 354 if (!batch) 358 355 return ENOMEM; … … 400 397 usb_transfer_batch_t *batch = 401 398 batch_get(fun, target, ep->transfer_type, ep->max_packet_size, 402 ep->speed, data, size, NULL, 0, callback, NULL, arg, 403 &hc->manager, ep); 399 ep->speed, data, size, NULL, 0, callback, NULL, arg, ep); 404 400 if (!batch) 405 401 return ENOMEM; … … 449 445 usb_transfer_batch_t *batch = 450 446 batch_get(fun, target, USB_TRANSFER_CONTROL, max_packet_size, speed, 451 data, size, setup_data, setup_size, NULL, callback, arg, 452 &hc->manager, ep); 447 data, size, setup_data, setup_size, NULL, callback, arg, ep); 453 448 if (!batch) 454 449 return ENOMEM; … … 496 491 usb_transfer_batch_t *batch = 497 492 batch_get(fun, target, USB_TRANSFER_CONTROL, max_packet_size, speed, 498 data, size, setup_data, setup_size, callback, NULL, arg, 499 &hc->manager, ep); 493 data, size, setup_data, setup_size, callback, NULL, arg, ep); 500 494 if (!batch) 501 495 return ENOMEM;
Note:
See TracChangeset
for help on using the changeset viewer.