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