Changeset 4abc304 in mainline for uspace/drv/uhci-hcd/transfer_list.c
- Timestamp:
- 2011-02-28T11:55:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dced52a
- Parents:
- 299d53e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/transfer_list.c
r299d53e r4abc304 70 70 assert(instance); 71 71 assert(batch); 72 usb_log_debug ("Adding batch(%p) to queue %s.\n", batch, instance->name);72 usb_log_debug2("Adding batch(%p) to queue %s.\n", batch, instance->name); 73 73 74 74 uint32_t pa = (uintptr_t)addr_to_phys(batch->qh); … … 84 84 list_append(&batch->link, &instance->batch_list); 85 85 instance->queue_head->element = pa; 86 usb_log_debug 2("Added batch(%p)to queue %s first.\n",86 usb_log_debug("Batch(%p) added to queue %s first.\n", 87 87 batch, instance->name); 88 88 fibril_mutex_unlock(&instance->guard); … … 97 97 queue_head_append_qh(last->qh, pa); 98 98 list_append(&batch->link, &instance->batch_list); 99 usb_log_debug 2("Added batch(%p)to queue %s last, first is %p.\n",99 usb_log_debug("Batch(%p) added to queue %s last, first is %p.\n", 100 100 batch, instance->name, first ); 101 101 fibril_mutex_unlock(&instance->guard); … … 109 109 assert(instance->queue_head); 110 110 assert(batch->qh); 111 usb_log_debug2("Removing batch(%p) from queue %s.\n", batch, instance->name); 111 112 112 113 /* I'm the first one here */ 113 114 if (batch->link.prev == &instance->batch_list) { 114 usb_log_debug(" Removing batch %p was first, next element %x.\n",115 batch, batch->qh->next_queue);115 usb_log_debug("Batch(%p) removed (FIRST) from queue %s, next element %x.\n", 116 batch, instance->name, batch->qh->next_queue); 116 117 instance->queue_head->element = batch->qh->next_queue; 117 118 } else { 118 usb_log_debug(" Removing batch %p was NOT first, next element %x.\n",119 batch, batch->qh->next_queue);119 usb_log_debug("Batch(%p) removed (NOT FIRST) from queue, next element %x.\n", 120 batch, instance->name, batch->qh->next_queue); 120 121 batch_t *prev = list_get_instance(batch->link.prev, batch_t, link); 121 122 prev->qh->next_queue = batch->qh->next_queue;
Note:
See TracChangeset
for help on using the changeset viewer.