Ignore:
Timestamp:
2017-10-24T11:06:32Z (6 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/include/usb/host/bus.h

    r894f58c r56db65d  
    8383
    8484        endpoint_t *(*create_endpoint)(bus_t *);
    85         int (*register_endpoint)(bus_t *, endpoint_t *);
     85        int (*register_endpoint)(bus_t *, endpoint_t *, const usb_endpoint_desc_t *);
    8686        int (*unregister_endpoint)(bus_t *, endpoint_t *);
    8787        endpoint_t *(*find_endpoint)(bus_t *, device_t*, usb_target_t, usb_direction_t);
     
    117117int device_init(device_t *);
    118118
    119 extern int bus_add_ep(bus_t *bus, device_t *device, usb_endpoint_t endpoint,
    120     usb_direction_t dir, usb_transfer_type_t type, size_t max_packet_size,
    121     unsigned packets, size_t size);
     119extern int bus_add_ep(bus_t *, device_t *, const usb_endpoint_desc_t *);
    122120extern int bus_remove_ep(bus_t *, device_t *, usb_target_t, usb_direction_t);
    123121
     
    128126
    129127endpoint_t *bus_create_endpoint(bus_t *);
    130 int bus_register_endpoint(bus_t *, endpoint_t *);
     128int bus_register_endpoint(bus_t *, endpoint_t *, const usb_endpoint_desc_t *);
    131129int bus_unregister_endpoint(bus_t *, endpoint_t *);
    132130endpoint_t *bus_find_endpoint(bus_t *, device_t *, usb_target_t, usb_direction_t);
Note: See TracChangeset for help on using the changeset viewer.