Changeset 61bb85d in mainline for uspace/drv/uhci-hcd/tracker.c
- Timestamp:
- 2011-02-09T10:25:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2964aa87
- Parents:
- 3cc5ccda
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/tracker.c
r3cc5ccda r61bb85d 286 286 } 287 287 288 assert(instance->packet_size <= instance->max_packet_size); 288 289 if (instance->packet_size) { 289 290 /* we are data in, we want data from our device. if there is data */ … … 309 310 /* that's all, end coomunication */ 310 311 instance->next_step = tracker_call_in_and_dispose; 312 } else { 313 instance->next_step = tracker_interrupt_in; 311 314 } 312 315 } … … 323 326 } 324 327 325 /* we are data out, we do wn't want data from our device */328 /* we are data out, we don't want data from our device */ 326 329 instance->buffer_offset += instance->packet_size; 327 330 … … 343 346 /* that's all, end coomunication */ 344 347 instance->next_step = tracker_call_out_and_dispose; 348 } else { 349 instance->next_step = tracker_interrupt_out; 345 350 } 346 351 } … … 356 361 memcpy(instance->buffer + instance->buffer_offset, instance->packet, 357 362 instance->packet_size); 358 }359 instance->buffer_offset += instance->packet_size;363 instance->buffer_offset += instance->packet_size; 364 } 360 365 usb_log_debug("Callback IN(%d): %d, %zu.\n", instance->transfer_type, 361 366 err, instance->buffer_offset);
Note:
See TracChangeset
for help on using the changeset viewer.