Changeset 66c16b0 in mainline for uspace/lib/usbhost/src/usb2_bus.c


Ignore:
Timestamp:
2017-12-27T23:01:29Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
deb2e55
Parents:
67d58e8
Message:

usbhost: add stubs for offline/online

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/usb2_bus.c

    r67d58e8 r66c16b0  
    347347}
    348348
     349static int usb2_bus_device_online(device_t *device)
     350{
     351        usb2_bus_t *bus = bus_to_usb2_bus(device->bus);
     352        assert(bus);
     353
     354        // FIXME: Implement me!
     355
     356        return ENOTSUP;
     357}
     358
     359static int usb2_bus_device_offline(device_t *device)
     360{
     361        usb2_bus_t *bus = bus_to_usb2_bus(device->bus);
     362        assert(bus);
     363
     364        // FIXME: Implement me!
     365
     366        return ENOTSUP;
     367}
     368
    349369static endpoint_t *usb2_bus_create_ep(device_t *dev, const usb_endpoint_desc_t *desc)
    350370{
     
    450470        .device_enumerate = usb2_bus_device_enumerate,
    451471        .device_find_endpoint = usb2_bus_find_ep,
    452         .endpoint_create= usb2_bus_create_ep,
    453         .endpoint_register= usb2_bus_register_ep,
    454         .endpoint_unregister= usb2_bus_unregister_ep,
     472        .device_online = usb2_bus_device_online,
     473        .device_offline = usb2_bus_device_offline,
     474        .endpoint_create = usb2_bus_create_ep,
     475        .endpoint_register = usb2_bus_register_ep,
     476        .endpoint_unregister = usb2_bus_unregister_ep,
    455477};
    456478
Note: See TracChangeset for help on using the changeset viewer.