Changeset 48563a3 in mainline
- Timestamp:
- 2011-02-26T12:30:58Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ae51ae
- Parents:
- 3de48b5
- Location:
- uspace/drv/uhci-hcd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/batch.c
r3de48b5 r48563a3 140 140 { 141 141 assert(instance); 142 usb_log_debug2(" Checking(%p) %d packetfor completion.\n",142 usb_log_debug2("Batch(%p) checking %d packet(s) for completion.\n", 143 143 instance, instance->packets); 144 144 instance->transfered_size = 0; … … 152 152 if (i > 0) 153 153 instance->transfered_size -= instance->setup_size; 154 usb_log_debug("Batch(%p) found error TD(%d):%x.\n", 155 instance, i, instance->tds[i].status); 154 156 return true; 155 157 } … … 297 299 298 300 int err = instance->error; 299 usb_log_info("Callback IN(%d): %s(%d), %zu.\n", instance->transfer_type, 300 str_error(err), err, instance->transfered_size); 301 usb_log_info("Batch(%p) callback IN(type:%d): %s(%d), %zu.\n", 302 instance, instance->transfer_type, str_error(err), err, 303 instance->transfered_size); 301 304 302 305 instance->callback_in(instance->fun, … … 311 314 312 315 int err = instance->error; 313 usb_log_info("Callback OUT(%d): %d.\n", instance->transfer_type, err); 316 usb_log_info("Batch(%p) callback OUT(type:%d): %s(%d).\n", 317 instance, instance->transfer_type, str_error(err), err); 314 318 instance->callback_out(instance->fun, 315 319 err, instance->arg); … … 320 324 assert(instance); 321 325 batch_call_in(instance); 322 usb_log_debug(" Disposing batch: %p.\n", instance);326 usb_log_debug("Batch(%p) disposing.\n", instance); 323 327 free32(instance->tds); 324 328 free32(instance->qh); … … 332 336 assert(instance); 333 337 batch_call_out(instance); 334 usb_log_debug(" Disposing batch: %p.\n", instance);338 usb_log_debug("Batch(%p) disposing.\n", instance); 335 339 free32(instance->tds); 336 340 free32(instance->qh); -
uspace/drv/uhci-hcd/iface.c
r3de48b5 r48563a3 110 110 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); 111 111 112 usb_log_debug("Interrupt OUT %d:%d %zu(%zu).\n", 113 target.address, target.endpoint, size, max_packet_size); 114 112 115 batch_t *batch = batch_get(fun, target, USB_TRANSFER_INTERRUPT, 113 116 max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg); … … 119 122 /*----------------------------------------------------------------------------*/ 120 123 static int interrupt_in(ddf_fun_t *fun, usb_target_t target, 121 size_t max_packet_size, 122 void *data, size_t size, 124 size_t max_packet_size, void *data, size_t size, 123 125 usbhc_iface_transfer_in_callback_t callback, void *arg) 124 126 { … … 127 129 assert(hc); 128 130 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); 131 usb_log_debug("Interrupt IN %d:%d %zu(%zu).\n", 132 target.address, target.endpoint, size, max_packet_size); 129 133 130 134 batch_t *batch = batch_get(fun, target, USB_TRANSFER_INTERRUPT, -
uspace/drv/uhci-hcd/uhci.c
r3de48b5 r48563a3 304 304 while (1) { 305 305 uint16_t status = pio_read_16(&instance->registers->usbsts); 306 // usb_log_debug2("UHCI status: %x.\n", status); 306 if (status != 0) 307 usb_log_debug2("UHCI status: %x.\n", status); 307 308 status |= 1; 308 309 uhci_interrupt(instance, status);
Note:
See TracChangeset
for help on using the changeset viewer.