Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5a73a7e in mainline


Ignore:
Timestamp:
2018-01-12T10:29:38Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master
Children:
f75725d
Parents:
c097d22
Message:

usbhub: add device_removed callback

Location:
uspace/drv/bus/usb/usbhub
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/main.c

    rc097d22 r5a73a7e  
    4848static const usb_driver_ops_t usb_hub_driver_ops = {
    4949        .device_add = usb_hub_device_add,
    50 //      .device_remove = usb_hub_device_remove,
     50        .device_remove = usb_hub_device_remove,
     51        .device_removed = usb_hub_device_removed,
    5152        .device_gone = usb_hub_device_gone,
    5253};
  • uspace/drv/bus/usb/usbhub/usbhub.c

    rc097d22 r5a73a7e  
    176176int usb_hub_device_remove(usb_device_t *usb_dev)
    177177{
    178         return ENOTSUP;
     178        /* TODO: Implement me! */
     179        return EOK;
     180}
     181
     182int usb_hub_device_removed(usb_device_t *usb_dev)
     183{
     184        /* TODO: Implement me! */
     185        return EOK;
    179186}
    180187
  • uspace/drv/bus/usb/usbhub/usbhub.h

    rc097d22 r5a73a7e  
    8585extern int usb_hub_device_add(usb_device_t *);
    8686extern int usb_hub_device_remove(usb_device_t *);
     87extern int usb_hub_device_removed(usb_device_t *);
    8788extern int usb_hub_device_gone(usb_device_t *);
    8889
Note: See TracChangeset for help on using the changeset viewer.