Changeset ee794529 in mainline for uspace/drv/bus
- 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/drv/bus/usb
- Files:
- 
      - 3 edited
 
 - 
          
  ehci/ehci_bus.c (modified) (3 diffs)
- 
          
  ohci/ohci_bus.c (modified) (3 diffs)
- 
          
  xhci/bus.c (modified) (4 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      uspace/drv/bus/usb/ehci/ehci_bus.cr4594baa ree794529 129 129 } 130 130 131 static int ehci_ release_ep(bus_t *bus_base, endpoint_t *ep)131 static int ehci_unregister_ep(bus_t *bus_base, endpoint_t *ep) 132 132 { 133 133 ehci_bus_t *bus = (ehci_bus_t *) bus_base; … … 135 135 assert(ep); 136 136 137 const int err = bus->parent_ops. release_endpoint(bus_base, ep);137 const int err = bus->parent_ops.unregister_endpoint(bus_base, ep); 138 138 if (err) 139 139 return err; … … 170 170 171 171 ops->register_endpoint = ehci_register_ep; 172 ops-> release_endpoint = ehci_release_ep;172 ops->unregister_endpoint = ehci_unregister_ep; 173 173 174 174 ops->create_batch = ehci_bus_create_batch; 
- 
      uspace/drv/bus/usb/ohci/ohci_bus.cr4594baa ree794529 130 130 } 131 131 132 static int ohci_ release_ep(bus_t *bus_base, endpoint_t *ep)132 static int ohci_unregister_ep(bus_t *bus_base, endpoint_t *ep) 133 133 { 134 134 ohci_bus_t *bus = (ohci_bus_t *) bus_base; … … 136 136 assert(ep); 137 137 138 const int err = bus->parent_ops. release_endpoint(bus_base, ep);138 const int err = bus->parent_ops.unregister_endpoint(bus_base, ep); 139 139 if (err) 140 140 return err; … … 170 170 171 171 ops->register_endpoint = ohci_register_ep; 172 ops-> release_endpoint = ohci_release_ep;172 ops->unregister_endpoint = ohci_unregister_ep; 173 173 174 174 ops->create_batch = ohci_bus_create_batch; 
- 
      uspace/drv/bus/usb/xhci/bus.cr4594baa ree794529 118 118 xhci_device_t *xhci_dev = xhci_device_get(dev); 119 119 120 /* Releaseremaining endpoints. */120 /* Unregister remaining endpoints. */ 121 121 for (size_t i = 0; i < ARRAY_SIZE(xhci_dev->endpoints); ++i) { 122 122 if (!xhci_dev->endpoints[i]) … … 124 124 125 125 // FIXME: ignoring return code 126 bus_ release_endpoint(&bus->base, &xhci_dev->endpoints[i]->base);126 bus_unregister_endpoint(&bus->base, &xhci_dev->endpoints[i]->base); 127 127 } 128 128 … … 257 257 } 258 258 259 static int release_endpoint(bus_t *bus_base, endpoint_t *ep)259 static int unregister_endpoint(bus_t *bus_base, endpoint_t *ep) 260 260 { 261 261 xhci_bus_t *bus = bus_to_xhci_bus(bus_base); 262 262 assert(bus); 263 263 264 usb_log_info("Endpoint(%d:%d) released from XHCI bus.", ep->target.address, ep->target.endpoint);264 usb_log_info("Endpoint(%d:%d) unregistered from XHCI bus.", ep->target.address, ep->target.endpoint); 265 265 266 266 xhci_device_t *xhci_dev = xhci_device_get(ep->device); … … 329 329 330 330 .register_endpoint = register_endpoint, 331 . release_endpoint = release_endpoint,331 .unregister_endpoint = unregister_endpoint, 332 332 .find_endpoint = find_endpoint, 333 333 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
