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

Changeset cb69854 in mainline


Ignore:
Timestamp:
2017-10-13T10:18:50Z (3 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
master
Children:
366e9b6
Parents:
5995383c
Message:

Returning some basic speed, so that we can get xhci up and running.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/bus.c

    r5995383c rcb69854  
    148148static int get_speed(bus_t *bus_base, usb_address_t address, usb_speed_t *speed)
    149149{
    150         // TODO: Implement me!
    151         return ENOTSUP;
     150        xhci_bus_t *bus = bus_to_xhci_bus(bus_base);
     151        assert(bus);
     152
     153        // TODO: Use `xhci_get_port_speed` once we find the port corresponding to `address`.
     154        *speed = USB_SPEED_SUPER;
     155        return EOK;
    152156}
    153157
Note: See TracChangeset for help on using the changeset viewer.