Changeset ee794529 in mainline for uspace/lib/usbhost
- Timestamp:
- 2017-10-22T16:38:19Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 89cefe78
- Parents:
- 4594baa
- Location:
- uspace/lib/usbhost
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/bus.h
r4594baa ree794529 84 84 endpoint_t *(*create_endpoint)(bus_t *); 85 85 int (*register_endpoint)(bus_t *, endpoint_t *); 86 int (* release_endpoint)(bus_t *, endpoint_t *);86 int (*unregister_endpoint)(bus_t *, endpoint_t *); 87 87 endpoint_t *(*find_endpoint)(bus_t *, usb_target_t, usb_direction_t); 88 88 void (*destroy_endpoint)(endpoint_t *); /**< Optional */ … … 129 129 endpoint_t *bus_create_endpoint(bus_t *); 130 130 int bus_register_endpoint(bus_t *, endpoint_t *); 131 int bus_ release_endpoint(bus_t *, endpoint_t *);131 int bus_unregister_endpoint(bus_t *, endpoint_t *); 132 132 endpoint_t *bus_find_endpoint(bus_t *, usb_target_t, usb_direction_t); 133 133 -
uspace/lib/usbhost/src/bus.c
r4594baa ree794529 106 106 return ENOENT; 107 107 108 return bus_ release_endpoint(bus, ep);108 return bus_unregister_endpoint(bus, ep); 109 109 } 110 110 … … 180 180 } 181 181 182 int bus_ release_endpoint(bus_t *bus, endpoint_t *ep)182 int bus_unregister_endpoint(bus_t *bus, endpoint_t *ep) 183 183 { 184 184 assert(bus); … … 186 186 187 187 fibril_mutex_lock(&bus->guard); 188 const int r = bus->ops. release_endpoint(bus, ep);188 const int r = bus->ops.unregister_endpoint(bus, ep); 189 189 fibril_mutex_unlock(&bus->guard); 190 190 -
uspace/lib/usbhost/src/usb2_bus.c
r4594baa ree794529 309 309 /** Release bandwidth reserved by the given endpoint. 310 310 */ 311 static int usb2_bus_ release_ep(bus_t *bus_base, endpoint_t *ep)311 static int usb2_bus_unregister_ep(bus_t *bus_base, endpoint_t *ep) 312 312 { 313 313 usb2_bus_t *bus = bus_to_usb2_bus(bus_base); … … 416 416 .create_endpoint = usb2_bus_create_ep, 417 417 .find_endpoint = usb2_bus_find_ep, 418 . release_endpoint = usb2_bus_release_ep,418 .unregister_endpoint = usb2_bus_unregister_ep, 419 419 .register_endpoint = usb2_bus_register_ep, 420 420 .request_address = usb2_bus_request_address,
Note:
See TracChangeset
for help on using the changeset viewer.