Changeset 56db65d in mainline for uspace/lib/usbhost/src/ddf_helpers.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/lib/usbhost/src/ddf_helpers.c

    r894f58c r56db65d  
    9898        assert(dev);
    9999
    100         const size_t size = endpoint_desc->max_packet_size;
    101 
    102100        usb_log_debug("Register endpoint %d:%d %s-%s %zuB %ums.\n",
    103101                dev->address, endpoint_desc->endpoint_no,
     
    106104                endpoint_desc->max_packet_size, endpoint_desc->usb2.polling_interval);
    107105
    108         // FIXME: we now have max_streams and max_burst in endpoint_desc->usb3 struct
    109         // Hand it down to XHCI, refactor, whatever
    110 
    111         return bus_add_ep(hcd->bus, dev, endpoint_desc->endpoint_no,
    112                 endpoint_desc->direction, endpoint_desc->transfer_type,
    113                 endpoint_desc->max_packet_size, endpoint_desc->packets,
    114                 size);
     106        return bus_add_ep(hcd->bus, dev, endpoint_desc);
    115107}
    116108
Note: See TracChangeset for help on using the changeset viewer.