Ignore:
Timestamp:
2011-09-07T11:38:57Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d394f1b8
Parents:
7099861
Message:

USB: make bandwidth count function changeable

File:
1 edited

Legend:

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

    r7099861 r933b0d7  
    5353        fibril_mutex_t guard;
    5454        size_t free_bw;
     55        size_t (*bw_count)(usb_speed_t, usb_transfer_type_t, size_t, size_t);
    5556} usb_endpoint_manager_t;
    5657
     
    5960
    6061int usb_endpoint_manager_init(usb_endpoint_manager_t *instance,
    61     size_t available_bandwidth);
     62    size_t available_bandwidth,
     63    size_t (*bw_count)(usb_speed_t, usb_transfer_type_t, size_t, size_t));
    6264
    6365void usb_endpoint_manager_destroy(usb_endpoint_manager_t *instance);
Note: See TracChangeset for help on using the changeset viewer.