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


Ignore:
Timestamp:
2011-04-06T18:13:05Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
391d55b
Parents:
90b9ab5
Message:

Use new usb_endpoint_manager instead of bandwidth_t

Bandwidth checks turned off for now.

File:
1 edited

Legend:

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

    r90b9ab5 r6ce42e85  
    239239        usb_log_debug("Initialized device manager.\n");
    240240
    241         ret = bandwidth_init(&instance->bandwidth, BANDWIDTH_AVAILABLE_USB11,
    242             bandwidth_count_usb11);
     241        ret =
     242            usb_endpoint_manager_init(&instance->ep_manager,
     243                BANDWIDTH_AVAILABLE_USB11);
    243244        assert(ret == EOK);
    244245
     
    335336        }
    336337        /* Check available bandwidth */
     338/*
    337339        if (batch->transfer_type == USB_TRANSFER_INTERRUPT ||
    338340            batch->transfer_type == USB_TRANSFER_ISOCHRONOUS) {
    339                 size_t bw = bandwidth_count_usb11(batch->speed,
     341                const size_t bw = bandwidth_count_usb11(batch->speed,
    340342                    batch->transfer_type, batch->buffer_size,
    341343                    batch->max_packet_size);
     344
    342345                int ret =
    343346                    bandwidth_use(&instance->bandwidth, batch->target.address,
     
    349352                }
    350353        }
     354*/
    351355
    352356        transfer_list_t *list =
     
    402406                        case USB_TRANSFER_INTERRUPT:
    403407                        case USB_TRANSFER_ISOCHRONOUS: {
     408/*
    404409                                int ret = bandwidth_free(&instance->bandwidth,
    405410                                    batch->target.address,
     
    410415                                            "reserved bw: %s.\n", ret,
    411416                                            str_error(ret));
     417*/
    412418                                }
    413419                        default:
Note: See TracChangeset for help on using the changeset viewer.