Changeset fa9d3af in mainline for uspace/lib/usbhost/src/ddf_helpers.c


Ignore:
Timestamp:
2013-08-07T15:11:40Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5dad73d
Parents:
14dd4c9
Message:

libusbhost: Add information about the nearest HS hub.

The last pice of info needed for HS SPLIT transactions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/ddf_helpers.c

    r14dd4c9 rfa9d3af  
    5353        usb_address_t address;
    5454        usb_speed_t speed;
     55        usb_address_t tt_address;
    5556        unsigned port;
    5657} usb_dev_t;
     
    325326        info->fun = fun;
    326327        info->port = port;
     328        info->tt_address = hub_dev ? hub_dev->tt_address : -1;
    327329        link_initialize(&info->link);
    328330        list_initialize(&info->devices);
    329331        fibril_mutex_initialize(&info->guard);
     332
     333        if (hub_dev->speed == USB_SPEED_HIGH && usb_speed_is_11(speed))
     334                info->tt_address = hub_dev->address;
    330335
    331336        ddf_fun_set_ops(fun, &usb_ops);
Note: See TracChangeset for help on using the changeset viewer.