Changeset d41f301 in mainline


Ignore:
Timestamp:
2011-04-07T10:29:05Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f9b31ad
Parents:
97ab321
Message:

Endpoint manager bandwidth fix for ctrl and bulk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/host/usb_endpoint_manager.c

    r97ab321 rd41f301  
    9191    size_t size, size_t max_packet_size)
    9292{
     93        /* We care about bandwidth only for interrupt and isochronous. */
     94        if ((type != USB_TRANSFER_INTERRUPT)
     95            && (type != USB_TRANSFER_ISOCHRONOUS)) {
     96                return 0;
     97        }
     98
    9399        const unsigned packet_count =
    94100            (size + max_packet_size - 1) / max_packet_size;
Note: See TracChangeset for help on using the changeset viewer.