Changeset ba038f4 in mainline for uspace/lib/usb/src/host/endpoint.c
- Timestamp:
- 2011-04-09T22:03:23Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a19a2d7
- Parents:
- 501e5df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/host/endpoint.c
r501e5df rba038f4 53 53 fibril_mutex_initialize(&instance->guard); 54 54 fibril_condvar_initialize(&instance->avail); 55 link_initialize(&instance->same_device_eps);56 55 return EOK; 57 56 } … … 61 60 assert(instance); 62 61 assert(!instance->active); 63 list_remove(&instance->same_device_eps);64 62 free(instance); 65 63 } … … 97 95 } 98 96 /*----------------------------------------------------------------------------*/ 99 void endpoint_toggle_reset (link_t *ep)97 void endpoint_toggle_reset_filtered(endpoint_t *instance, usb_target_t target) 100 98 { 101 endpoint_t *instance =102 list_get_instance(ep, endpoint_t, same_device_eps);103 99 assert(instance); 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) 100 if (instance->address == target.address && 101 instance->endpoint == target.endpoint) 113 102 instance->toggle = 0; 114 103 }
Note:
See TracChangeset
for help on using the changeset viewer.