Changeset d37514e in mainline for uspace/lib/usbhost/src/bus.c


Ignore:
Timestamp:
2017-10-28T15:41:12Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c910ecf
Parents:
d46ceb2b
Message:

Routing fun_online and _offline through the USB bus. Added appropriate stubs and ops.

File:
1 edited

Legend:

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

    rd46ceb2b rd37514e  
    101101}
    102102
     103int bus_online_device(bus_t *bus, hcd_t *hcd, device_t *dev)
     104{
     105        assert(bus);
     106        assert(hcd);
     107        assert(dev);
     108
     109        if (!bus->ops.online_device)
     110                return ENOTSUP;
     111
     112        return bus->ops.online_device(bus, hcd, dev);
     113}
     114
     115int bus_offline_device(bus_t *bus, hcd_t *hcd, device_t *dev)
     116{
     117        assert(bus);
     118        assert(hcd);
     119        assert(dev);
     120
     121        if (!bus->ops.offline_device)
     122                return ENOTSUP;
     123
     124        return bus->ops.offline_device(bus, hcd, dev);
     125}
     126
    103127int bus_add_endpoint(bus_t *bus, device_t *device, const usb_endpoint_desc_t *desc, endpoint_t **out_ep)
    104128{
Note: See TracChangeset for help on using the changeset viewer.