Changeset 56db65d in mainline for uspace/drv/bus/usb/ehci/ehci_bus.c


Ignore:
Timestamp:
2017-10-24T11:06:32Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0206d35
Parents:
894f58c
Message:

usbhost: provide usb_endpoint_desc_t to bus when registering endpoint

This finishes the path of arbitrary information fetched from device all the way down to registering the endpoint in the bus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_bus.c

    r894f58c r56db65d  
    114114
    115115
    116 static int ehci_register_ep(bus_t *bus_base, endpoint_t *ep)
     116static int ehci_register_ep(bus_t *bus_base, endpoint_t *ep, const usb_endpoint_desc_t *desc)
    117117{
    118118        ehci_bus_t *bus = (ehci_bus_t *) bus_base;
    119119        ehci_endpoint_t *ehci_ep = ehci_endpoint_get(ep);
    120120
    121         const int err = bus->parent_ops.register_endpoint(bus_base, ep);
     121        // TODO utilize desc->usb2
     122
     123        const int err = bus->parent_ops.register_endpoint(bus_base, ep, desc);
    122124        if (err)
    123125                return err;
Note: See TracChangeset for help on using the changeset viewer.