Changeset 25251bb in mainline for uspace/drv/bus/usb/xhci/endpoint.c
- Timestamp:
- 2017-10-26T08:38:53Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 928afc8d
- Parents:
- 62558202
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.c
r62558202 r25251bb 269 269 } 270 270 271 int xhci_device_add_endpoint(xhci_ device_t *dev, xhci_endpoint_t *ep)271 int xhci_device_add_endpoint(xhci_hc_t *hc, xhci_device_t *dev, xhci_endpoint_t *ep) 272 272 { 273 273 assert(dev); … … 299 299 xhci_setup_endpoint_context(ep, &ep_ctx); 300 300 301 return hc_add_endpoint( dev->hc, dev->slot_id, xhci_endpoint_index(ep), &ep_ctx);302 } 303 304 int xhci_device_remove_endpoint(xhci_ device_t *dev, xhci_endpoint_t *ep)301 return hc_add_endpoint(hc, dev->slot_id, xhci_endpoint_index(ep), &ep_ctx); 302 } 303 304 int xhci_device_remove_endpoint(xhci_hc_t *hc, xhci_device_t *dev, xhci_endpoint_t *ep) 305 305 { 306 306 assert(&dev->base == ep->base.device); … … 320 320 321 321 /* Drop the endpoint. */ 322 if ((err = hc_drop_endpoint( dev->hc, dev->slot_id, xhci_endpoint_index(ep)))) {322 if ((err = hc_drop_endpoint(hc, dev->slot_id, xhci_endpoint_index(ep)))) { 323 323 goto err; 324 324 }
Note:
See TracChangeset
for help on using the changeset viewer.