Changeset d60115a in mainline for uspace/drv/bus/usb/ohci/endpoint_list.c
- Timestamp:
- 2018-01-17T17:55:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8ad2b0a
- Parents:
- ed8575f
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-17 17:54:31)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-17 17:55:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/endpoint_list.c
red8575f rd60115a 108 108 /* There are active EDs, get the last one */ 109 109 ohci_endpoint_t *last = list_get_instance( 110 list_last(&instance->endpoint_list), ohci_endpoint_t, link);110 list_last(&instance->endpoint_list), ohci_endpoint_t, eplist_link); 111 111 last_ed = last->ed; 112 112 } … … 122 122 123 123 /* Add to the sw list */ 124 list_append(&ep-> link, &instance->endpoint_list);124 list_append(&ep->eplist_link, &instance->endpoint_list); 125 125 126 126 ohci_endpoint_t *first = list_get_instance( 127 list_first(&instance->endpoint_list), ohci_endpoint_t, link);127 list_first(&instance->endpoint_list), ohci_endpoint_t, eplist_link); 128 128 usb_log_debug("HCD EP(%p) added to list %s, first is %p(%p).", 129 129 ep, instance->name, first, first->ed); … … 156 156 ed_t *prev_ed; 157 157 /* Remove from the hardware queue */ 158 if (list_first(&instance->endpoint_list) == &ep-> link) {158 if (list_first(&instance->endpoint_list) == &ep->eplist_link) { 159 159 /* I'm the first one here */ 160 160 prev_ed = instance->list_head; … … 162 162 } else { 163 163 ohci_endpoint_t *prev = 164 list_get_instance(ep-> link.prev, ohci_endpoint_t,link);164 list_get_instance(ep->eplist_link.prev, ohci_endpoint_t, eplist_link); 165 165 prev_ed = prev->ed; 166 166 qpos = "NOT FIRST"; … … 175 175 176 176 /* Remove from the endpoint list */ 177 list_remove(&ep-> link);177 list_remove(&ep->eplist_link); 178 178 fibril_mutex_unlock(&instance->guard); 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.