Changeset 0ee999d in mainline for uspace/lib/usbhost/include


Ignore:
Timestamp:
2013-08-20T12:24:16Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5856b627
Parents:
5dad73d
Message:

libusbhost: Add TT information to usb_enpoint_t structure.

Location:
uspace/lib/usbhost/include/usb/host
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/endpoint.h

    r5dad73d r0ee999d  
    6767        /** Signals change of active status. */
    6868        fibril_condvar_t avail;
     69        /** High speed TT data */
     70        struct {
     71                usb_address_t address;
     72                unsigned port;
     73        } tt;
    6974        /** Optional device specific data. */
    7075        struct {
     
    8085endpoint_t * endpoint_create(usb_address_t address, usb_endpoint_t endpoint,
    8186    usb_direction_t direction, usb_transfer_type_t type, usb_speed_t speed,
    82     size_t max_packet_size, size_t bw);
     87    size_t max_packet_size, size_t bw, usb_address_t tt_address,
     88    unsigned tt_port);
    8389void endpoint_destroy(endpoint_t *instance);
    8490
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r5dad73d r0ee999d  
    7676        hcd->ep_add_hook = add_hook;
    7777        hcd->ep_remove_hook = rem_hook;
    78 
    7978}
    8079
     
    9190
    9291int hcd_add_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir,
    93     usb_transfer_type_t type, size_t max_packet_size, size_t size);
     92    usb_transfer_type_t type, size_t max_packet_size, size_t size,
     93    usb_address_t tt_address, unsigned tt_port);
    9494
    9595int hcd_remove_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir);
  • uspace/lib/usbhost/include/usb/host/usb_endpoint_manager.h

    r5dad73d r0ee999d  
    9393    usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction,
    9494    usb_transfer_type_t type, size_t max_packet_size, size_t data_size,
    95     ep_add_callback_t callback, void *arg);
     95    ep_add_callback_t callback, void *arg, usb_address_t tt_address,
     96    unsigned tt_port);
    9697
    9798int usb_endpoint_manager_remove_ep(usb_endpoint_manager_t *instance,
     
    108109    usb_address_t *address, bool strict, usb_speed_t speed);
    109110
    110 int usb_endpoint_manager_get_info_by_address(usb_endpoint_manager_t *instance,
     111int usb_endpoint_manager_get_speed(usb_endpoint_manager_t *instance,
    111112    usb_address_t address, usb_speed_t *speed);
    112113#endif
Note: See TracChangeset for help on using the changeset viewer.