Changeset 954d590 in mainline
- Timestamp:
- 2015-07-03T22:59:37Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 495547d
- Parents:
- 6de4b4a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/endpoint_list.c
r6de4b4a1 r954d590 56 56 instance->list_head = malloc32(sizeof(qh_t)); 57 57 if (!instance->list_head) { 58 usb_log_error("Failed to allocate list head.\n"); 58 usb_log_error("EPL(%p-%s): Failed to allocate list head.", 59 instance, name); 59 60 return ENOMEM; 60 61 } … … 62 63 63 64 list_initialize(&instance->endpoint_list); 64 usb_log_debug2("Transfer list %s setup with ED: %p(%"PRIxn").\n", 65 name, instance->list_head, addr_to_phys(instance->list_head)); 65 fibril_mutex_initialize(&instance->guard); 66 66 67 fibril_mutex_initialize(&instance->guard); 67 usb_log_debug2("EPL(%p-%s): Transfer list setup with ED: %p(%"PRIxn").", 68 instance, name, instance->list_head, 69 addr_to_phys(instance->list_head)); 70 68 71 return EOK; 69 72 } … … 75 78 assert(instance->list_head); 76 79 assert(next->list_head); 80 81 usb_log_debug2("EPL(%p-%s): Chained with EPL(%p-%s).", 82 instance, instance->name, next, next->name); 77 83 78 84 qh_append_qh(instance->list_head, next->list_head); … … 91 97 assert(ep); 92 98 assert(ep->qh); 93 usb_log_debug2("Queue %s: Append endpoint(%p).\n", instance->name, ep); 99 usb_log_debug2("EPL(%p-%s): Append endpoint(%p).\n", 100 instance, instance->name, ep); 94 101 95 102 fibril_mutex_lock(&instance->guard); … … 121 128 ehci_endpoint_t *first = ehci_endpoint_list_instance( 122 129 list_first(&instance->endpoint_list)); 123 usb_log_debug(" HCD EP(%p) added to list %s, first is %p(%p).\n",124 ep, instance->name, first, first->qh);130 usb_log_debug("EPL(%p-%s): EP(%p) added to list, first is %p(%p).\n", 131 instance, instance->name, ep, first, first->qh); 125 132 if (last_qh == instance->list_head) { 126 usb_log_debug2("%s head ED(%p-%"PRIxn"): %x:%x.\n", 127 instance->name, last_qh, addr_to_phys(instance->list_head), 133 usb_log_debug2("EPL(%p-%s): head EP(%p-%"PRIxn"): %x:%x.\n", 134 instance, instance->name, last_qh, 135 addr_to_phys(instance->list_head), 128 136 last_qh->status, last_qh->horizontal); 129 137 } … … 145 153 fibril_mutex_lock(&instance->guard); 146 154 147 usb_log_debug2("Queue %s: removing endpoint(%p).\n", instance->name, ep); 155 usb_log_debug2("EPL(%p-%s): removing EP(%p).\n", 156 instance, instance->name, ep); 148 157 149 158 const char *qpos = NULL; … … 163 172 write_barrier(); 164 173 165 usb_log_debug(" HCD EP(%p) removed (%s) from %s, horizontal %x.\n",166 ep, qpos, instance->name, ep->qh->horizontal);174 usb_log_debug("EPL(%p-%s): EP(%p) removed (%s), horizontal %x.\n", 175 instance, instance->name, ep, qpos, ep->qh->horizontal); 167 176 168 177 /* Remove from the endpoint list */
Note:
See TracChangeset
for help on using the changeset viewer.