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


Ignore:
Timestamp:
2017-10-13T11:13:32Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c10daa8
Parents:
cb69854
Message:

usbhost: setup of the root hub is now a method of an driver

[oue]hci + vhc still use the previous implementation, renamed to hcd_setup_virtual_root_hub. xhci currently does not do anything, so the virtual hub is not created anymore.

File:
1 edited

Legend:

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

    rcb69854 r366e9b6  
    617617 * @return Error code
    618618 */
    619 int hcd_ddf_setup_root_hub(ddf_dev_t *device)
     619int hcd_setup_virtual_root_hub(ddf_dev_t *device)
    620620{
    621621        assert(device);
     
    919919         * needs to be ready at this time.
    920920         */
    921         ret = hcd_ddf_setup_root_hub(device);
     921        if (driver->setup_root_hub)
     922                ret = driver->setup_root_hub(device);
    922923        if (ret != EOK) {
    923924                usb_log_error("Failed to setup HC root hub: %s.\n",
Note: See TracChangeset for help on using the changeset viewer.