Changeset 68a61f19 in mainline
- Timestamp:
- 2015-06-29T01:46:59Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f6f2a5f7
- Parents:
- c86ca9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/endpoint_list.c
rc86ca9a r68a61f19 60 60 return ENOMEM; 61 61 } 62 /* Make sure the address translation exists by initializing first */ 63 qh_init(instance->list_head, NULL); 64 62 65 instance->list_head_pa = addr_to_phys(instance->list_head); 66 list_initialize(&instance->endpoint_list); 63 67 usb_log_debug2("Transfer list %s setup with ED: %p(0x%0" PRIx32 ")).\n", 64 68 name, instance->list_head, instance->list_head_pa); 65 69 66 qh_init(instance->list_head, NULL);67 list_initialize(&instance->endpoint_list);68 70 fibril_mutex_initialize(&instance->guard); 69 71 return EOK; … … 108 110 } 109 111 assert(last_qh); 110 /* Keep link */112 /* Keep link, this might point to the queue QH, or next chained queue */ 111 113 ep->qh->horizontal = last_qh->horizontal; 112 114 /* Make sure QH update is written to the memory */ … … 156 158 qpos = "FIRST"; 157 159 } else { 158 ehci_endpoint_t *prev = 159 list_get_instance(ep->link.prev, ehci_endpoint_t, link); 160 prev_qh = prev->qh; 160 prev_qh = ehci_endpoint_list_instance(ep->link.prev)->qh; 161 161 qpos = "NOT FIRST"; 162 162 }
Note:
See TracChangeset
for help on using the changeset viewer.