Changeset 4e732f1a in mainline for uspace/lib/usbhost/include/usb


Ignore:
Timestamp:
2014-01-24T02:10: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:
42de21a
Parents:
3de7a62
Message:

usb: Add support for multiple packets per microframe.

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

Legend:

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

    r3de7a62 r4e732f1a  
    5757        /** Maximum size of data packets. */
    5858        size_t max_packet_size;
     59        /** Additional opportunities per uframe */
     60        unsigned packets;
    5961        /** Necessary bandwidth. */
    6062        size_t bandwidth;
     
    8587endpoint_t * endpoint_create(usb_address_t address, usb_endpoint_t endpoint,
    8688    usb_direction_t direction, usb_transfer_type_t type, usb_speed_t speed,
    87     size_t max_packet_size, size_t bw, usb_address_t tt_address,
    88     unsigned tt_port);
     89    size_t max_packet_size, unsigned packets, size_t bw,
     90    usb_address_t tt_address, unsigned tt_port);
    8991void endpoint_destroy(endpoint_t *instance);
    9092
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r3de7a62 r4e732f1a  
    109109
    110110int hcd_add_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir,
    111     usb_transfer_type_t type, size_t max_packet_size, size_t size,
    112     usb_address_t tt_address, unsigned tt_port);
     111    usb_transfer_type_t type, size_t max_packet_size, unsigned packets,
     112    size_t size, usb_address_t tt_address, unsigned tt_port);
    113113
    114114int hcd_remove_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir);
  • uspace/lib/usbhost/include/usb/host/usb_bus.h

    r3de7a62 r4e732f1a  
    9797int usb_bus_add_ep(usb_bus_t *instance,
    9898    usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction,
    99     usb_transfer_type_t type, size_t max_packet_size, size_t data_size,
    100     ep_add_callback_t callback, void *arg, usb_address_t tt_address,
    101     unsigned tt_port);
     99    usb_transfer_type_t type, size_t max_packet_size, unsigned packets,
     100    size_t data_size, ep_add_callback_t callback, void *arg,
     101    usb_address_t tt_address, unsigned tt_port);
    102102
    103103int usb_bus_remove_ep(usb_bus_t *instance,
Note: See TracChangeset for help on using the changeset viewer.