Changeset 62066b4 in mainline for uspace/drv/usbhub/usbhub.c


Ignore:
Timestamp:
2011-02-20T21:47:23Z (13 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ace12560
Parents:
6bb83c7 (diff), 423e8c81 (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:

merge with usb/development

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.c

    r6bb83c7 r62066b4  
    5252#include "usb/pipes.h"
    5353
     54static int iface_get_hc_handle(device_t *device, devman_handle_t *handle)
     55{
     56        return usb_hc_find(device->handle, handle);
     57}
     58
    5459static usb_iface_t hub_usb_iface = {
    55         .get_hc_handle = usb_drv_find_hc
     60        .get_hc_handle = iface_get_hc_handle
    5661};
    5762
     
    263268        //get default address
    264269        //opResult = usb_drv_reserve_default_address(hc);
    265         opResult = usb_hc_reserve_default_address(&hub->connection, false);
     270        opResult = usb_hc_reserve_default_address(&hub->connection, USB_SPEED_LOW);
    266271        if (opResult != EOK) {
    267272                dprintf(USB_LOG_LEVEL_WARNING, "cannot assign default address, it is probably used");
     
    320325        usb_address_t new_device_address = usb_hc_request_address(
    321326                        &hub->connection,
    322                         false/// \TODO fullspeed??
     327                        USB_SPEED_LOW/// \TODO fullspeed??
    323328                        );
    324329        if (new_device_address < 0) {
Note: See TracChangeset for help on using the changeset viewer.