Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 172c1682 in mainline


Ignore:
Timestamp:
2010-11-26T15:25:34Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
e4dbfda
Parents:
aae339e9
Message:

Hack: USB driver always connects to VHC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/usbdrv.c

    raae339e9 r172c1682  
    6464         * Call parent hub to obtain device handle of respective HC.
    6565         */
    66         return ENOTSUP;
     66
     67        /*
     68         * FIXME: currently we connect always to virtual host controller.
     69         */
     70        int rc;
     71        devman_handle_t handle;
     72
     73        rc = devman_device_get_handle("/vhc", &handle, 0);
     74        if (rc != EOK) {
     75                return rc;
     76        }
     77       
     78        int phone = devman_device_connect(handle, 0);
     79
     80        return phone;
    6781}
    6882
Note: See TracChangeset for help on using the changeset viewer.