Ignore:
Timestamp:
2018-01-25T02:05:57Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b357377
Parents:
e8277c0
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-24 19:34:07)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-25 02:05:57)
Message:

usbhost: prepare bandwidth accounting privatization to usb2_bus

The endpoint does not account the bandwidth by default. The next step is
moving the count_bw callback to the usb2 bus.

File:
1 edited

Legend:

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

    re8277c0 r5f0b366  
    8787        fibril_condvar_t avail;
    8888
    89         /** Reserved bandwidth. Needed for USB2 bus. */
    90         size_t bandwidth;
    9189        /** Endpoint number */
    9290        usb_endpoint_t endpoint;
     
    121119extern void endpoint_deactivate_locked(endpoint_t *);
    122120
    123 /* Calculate bandwidth */
    124 ssize_t endpoint_count_bw(endpoint_t *, size_t);
    125 
    126121int endpoint_send_batch(endpoint_t *, usb_target_t, usb_direction_t,
    127122    char *, size_t, uint64_t, usbhc_iface_transfer_callback_t, void *,
Note: See TracChangeset for help on using the changeset viewer.