Changes in uspace/lib/usb/src/host/endpoint.c [ba038f4:4fd3faf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/host/endpoint.c
rba038f4 r4fd3faf 53 53 fibril_mutex_initialize(&instance->guard); 54 54 fibril_condvar_initialize(&instance->avail); 55 link_initialize(&instance->same_device_eps); 55 56 return EOK; 56 57 } … … 60 61 assert(instance); 61 62 assert(!instance->active); 63 list_remove(&instance->same_device_eps); 62 64 free(instance); 63 65 } … … 95 97 } 96 98 /*----------------------------------------------------------------------------*/ 97 void endpoint_toggle_reset _filtered(endpoint_t *instance, usb_target_t target)99 void endpoint_toggle_reset(link_t *ep) 98 100 { 101 endpoint_t *instance = 102 list_get_instance(ep, endpoint_t, same_device_eps); 99 103 assert(instance); 100 if (instance->address == target.address && 101 instance->endpoint == target.endpoint) 104 instance->toggle = 0; 105 } 106 /*----------------------------------------------------------------------------*/ 107 void endpoint_toggle_reset_filtered(link_t *ep, usb_endpoint_t epn) 108 { 109 endpoint_t *instance = 110 list_get_instance(ep, endpoint_t, same_device_eps); 111 assert(instance); 112 if (instance->endpoint == epn) 102 113 instance->toggle = 0; 103 114 }
Note:
See TracChangeset
for help on using the changeset viewer.