Changes in uspace/drv/uhci-hcd/batch.c [c15070c:81dce9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/batch.c
rc15070c r81dce9f 183 183 184 184 device_keeper_set_toggle(data->manager, 185 instance->target, instance->direction, 186 td_toggle(&data->tds[i])); 185 instance->target, td_toggle(&data->tds[i])); 187 186 if (i > 0) 188 187 goto substract_ret; … … 239 238 { 240 239 assert(instance); 241 instance->direction = USB_DIRECTION_IN;242 240 batch_data(instance, USB_PID_IN); 243 241 instance->next_step = batch_call_in_and_dispose; … … 254 252 { 255 253 assert(instance); 256 instance->direction = USB_DIRECTION_OUT;257 254 /* We are data out, we are supposed to provide data */ 258 255 memcpy(instance->transport_buffer, instance->buffer, … … 273 270 assert(instance); 274 271 batch_data(instance, USB_PID_IN); 275 instance->direction = USB_DIRECTION_IN;276 272 instance->next_step = batch_call_in_and_dispose; 277 273 usb_log_debug("Batch(%p) BULK IN initialized.\n", instance); … … 287 283 { 288 284 assert(instance); 289 instance->direction = USB_DIRECTION_OUT;290 285 /* We are data out, we are supposed to provide data */ 291 286 memcpy(instance->transport_buffer, instance->buffer, … … 311 306 312 307 const bool low_speed = instance->speed == USB_SPEED_LOW; 313 int toggle = device_keeper_get_toggle( 314 data->manager, instance->target, instance->direction); 308 int toggle = device_keeper_get_toggle(data->manager, instance->target); 315 309 assert(toggle == 0 || toggle == 1); 316 310 … … 343 337 } 344 338 td_set_ioc(&data->tds[packet - 1]); 345 device_keeper_set_toggle(data->manager, instance->target, 346 instance->direction, toggle); 339 device_keeper_set_toggle(data->manager, instance->target, toggle); 347 340 } 348 341 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.