Changeset df40775 in mainline for uspace/drv/uhci-hcd/hc.c


Ignore:
Timestamp:
2011-04-04T19:38:11Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6bf9bc4
Parents:
3094804b (diff), 65369473 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Bandwidth allocator fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/hc.c

    r3094804b rdf40775  
    337337        if (batch->transfer_type == USB_TRANSFER_INTERRUPT ||
    338338            batch->transfer_type == USB_TRANSFER_ISOCHRONOUS) {
     339                size_t bw = bandwidth_count_usb11(batch->speed,
     340                    batch->transfer_type, batch->buffer_size,
     341                    batch->max_packet_size);
    339342                int ret =
    340343                    bandwidth_use(&instance->bandwidth, batch->target.address,
    341                     batch->target.endpoint, batch->direction);
     344                    batch->target.endpoint, batch->direction, bw);
    342345                if (ret != EOK) {
    343346                        usb_log_warning("Failed(%d) to use reserved bw: %s.\n",
Note: See TracChangeset for help on using the changeset viewer.