Changeset a1732929 in mainline for uspace/drv/bus/usb/ohci/ohci_batch.c
- Timestamp:
- 2018-01-15T17:04:34Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ff99e8
- Parents:
- c1a966e
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:32)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_batch.c
rc1a966e ra1732929 175 175 assert(ohci_batch); 176 176 177 usb_log_debug("Batch %p checking %zu td(s) for completion. \n",177 usb_log_debug("Batch %p checking %zu td(s) for completion.", 178 178 &ohci_batch->base, ohci_batch->td_count); 179 usb_log_debug2("ED: %08x:%08x:%08x:%08x. \n",179 usb_log_debug2("ED: %08x:%08x:%08x:%08x.", 180 180 ohci_batch->ed->status, ohci_batch->ed->td_head, 181 181 ohci_batch->ed->td_tail, ohci_batch->ed->next); … … 196 196 for (size_t i = 0; i < ohci_batch->td_count; ++i) { 197 197 assert(ohci_batch->tds[i] != NULL); 198 usb_log_debug("TD %zu: %08x:%08x:%08x:%08x. \n", i,198 usb_log_debug("TD %zu: %08x:%08x:%08x:%08x.", i, 199 199 ohci_batch->tds[i]->status, ohci_batch->tds[i]->cbp, 200 200 ohci_batch->tds[i]->next, ohci_batch->tds[i]->be); … … 217 217 -= td_remain_size(ohci_batch->tds[i]); 218 218 } else { 219 usb_log_debug("Batch %p found error TD(%zu):%08x. \n",219 usb_log_debug("Batch %p found error TD(%zu):%08x.", 220 220 &ohci_batch->base, i, 221 221 ohci_batch->tds[i]->status); … … 295 295 assert(dir == USB_DIRECTION_IN || dir == USB_DIRECTION_OUT); 296 296 297 usb_log_debug("Using ED(%p): %08x:%08x:%08x:%08x. \n", ohci_batch->ed,297 usb_log_debug("Using ED(%p): %08x:%08x:%08x:%08x.", ohci_batch->ed, 298 298 ohci_batch->ed->status, ohci_batch->ed->td_tail, 299 299 ohci_batch->ed->td_head, ohci_batch->ed->next); … … 312 312 ohci_batch->tds[0], ohci_batch->tds[1], USB_DIRECTION_BOTH, 313 313 buffer, USB_SETUP_PACKET_SIZE, toggle); 314 usb_log_debug("Created CONTROL SETUP TD: %08x:%08x:%08x:%08x. \n",314 usb_log_debug("Created CONTROL SETUP TD: %08x:%08x:%08x:%08x.", 315 315 ohci_batch->tds[0]->status, ohci_batch->tds[0]->cbp, 316 316 ohci_batch->tds[0]->next, ohci_batch->tds[0]->be); … … 328 328 ohci_batch->tds[td_current + 1], 329 329 data_dir, buffer, transfer_size, toggle); 330 usb_log_debug("Created CONTROL DATA TD: %08x:%08x:%08x:%08x. \n",330 usb_log_debug("Created CONTROL DATA TD: %08x:%08x:%08x:%08x.", 331 331 ohci_batch->tds[td_current]->status, 332 332 ohci_batch->tds[td_current]->cbp, … … 344 344 td_init(ohci_batch->tds[td_current], ohci_batch->tds[td_current + 1], 345 345 status_dir, NULL, 0, 1); 346 usb_log_debug("Created CONTROL STATUS TD: %08x:%08x:%08x:%08x. \n",346 usb_log_debug("Created CONTROL STATUS TD: %08x:%08x:%08x:%08x.", 347 347 ohci_batch->tds[td_current]->status, 348 348 ohci_batch->tds[td_current]->cbp, … … 350 350 ohci_batch->tds[td_current]->be); 351 351 usb_log_debug2( 352 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized. \n", \352 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized.", \ 353 353 &ohci_batch->base, 354 354 usb_str_transfer_type(ohci_batch->base.ep->transfer_type), … … 371 371 usb_direction_t dir = ohci_batch->base.dir; 372 372 assert(dir == USB_DIRECTION_IN || dir == USB_DIRECTION_OUT); 373 usb_log_debug("Using ED(%p): %08x:%08x:%08x:%08x. \n", ohci_batch->ed,373 usb_log_debug("Using ED(%p): %08x:%08x:%08x:%08x.", ohci_batch->ed, 374 374 ohci_batch->ed->status, ohci_batch->ed->td_tail, 375 375 ohci_batch->ed->td_head, ohci_batch->ed->next); … … 386 386 dir, buffer, transfer_size, -1); 387 387 388 usb_log_debug("Created DATA TD: %08x:%08x:%08x:%08x. \n",388 usb_log_debug("Created DATA TD: %08x:%08x:%08x:%08x.", 389 389 ohci_batch->tds[td_current]->status, 390 390 ohci_batch->tds[td_current]->cbp, … … 398 398 } 399 399 usb_log_debug2( 400 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized. \n", \400 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized.", \ 401 401 &ohci_batch->base, 402 402 usb_str_transfer_type(ohci_batch->base.ep->transfer_type),
Note:
See TracChangeset
for help on using the changeset viewer.