Changeset 366e9b6 in mainline for uspace/drv/bus


Ignore:
Timestamp:
2017-10-13T11:13:32Z (8 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.

Location:
uspace/drv/bus/usb
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/main.c

    rcb69854 r366e9b6  
    6363        .claim = ehci_driver_claim,
    6464        .start = ehci_driver_start,
     65        .setup_root_hub = hcd_setup_virtual_root_hub,
    6566        .fini = ehci_driver_fini,
    6667        .ops = {
  • uspace/drv/bus/usb/ohci/main.c

    rcb69854 r366e9b6  
    5858        .claim = ohci_driver_claim,
    5959        .start = ohci_driver_start,
     60        .setup_root_hub = hcd_setup_virtual_root_hub,
    6061        .fini = ohci_driver_fini,
    6162        .name = "OHCI",
  • uspace/drv/bus/usb/uhci/main.c

    rcb69854 r366e9b6  
    6060        .init = uhci_driver_init,
    6161        .start = uhci_driver_start,
     62        .setup_root_hub = hcd_setup_virtual_root_hub,
    6263        .fini = uhci_driver_fini,
    6364        .name = "UHCI",
  • uspace/drv/bus/usb/vhc/main.c

    rcb69854 r366e9b6  
    111111         * needs to be ready at this time.
    112112         */
    113         ret = hcd_ddf_setup_root_hub(dev);
     113        ret = hcd_setup_virtual_root_hub(dev);
    114114        if (ret != EOK) {
    115115                usb_log_error("Failed to init VHC root hub: %s\n",
Note: See TracChangeset for help on using the changeset viewer.