Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/vhc/devconn.c

    rf5f0cfb r9d58539  
    5151static int vhc_virtdev_plug_generic(vhc_data_t *vhc,
    5252    async_sess_t *sess, usbvirt_device_t *virtdev,
    53     uintptr_t *handle, bool connect, usb_address_t address)
     53    uintptr_t *handle, bool connect)
    5454{
    5555        vhc_virtdev_t *dev = vhc_virtdev_create();
     
    6060        dev->dev_sess = sess;
    6161        dev->dev_local = virtdev;
    62         dev->address = address;
    6362
    6463        fibril_mutex_lock(&vhc->guard);
     
    7978        if (connect) {
    8079                // FIXME: check status
    81                 (void) virthub_connect_device(&vhc->hub, dev);
     80                (void) virthub_connect_device(vhc->hub, dev);
    8281        }
    8382
     
    8786int vhc_virtdev_plug(vhc_data_t *vhc, async_sess_t *sess, uintptr_t *handle)
    8887{
    89         return vhc_virtdev_plug_generic(vhc, sess, NULL, handle, true, 0);
     88        return vhc_virtdev_plug_generic(vhc, sess, NULL, handle, true);
    9089}
    9190
    9291int vhc_virtdev_plug_local(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle)
    9392{
    94         return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, true, 0);
     93        return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, true);
    9594}
    9695
    97 int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle, usb_address_t address)
     96int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle)
    9897{
    99         return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false, address);
     98        return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false);
    10099}
    101100
     
    105104
    106105        // FIXME: check status
    107         (void) virthub_disconnect_device(&vhc->hub, dev);
     106        (void) virthub_disconnect_device(vhc->hub, dev);
    108107
    109108        fibril_mutex_lock(&vhc->guard);
Note: See TracChangeset for help on using the changeset viewer.