Changes in uspace/drv/bus/usb/vhc/devconn.c [f5f0cfb:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/devconn.c
rf5f0cfb r9d58539 51 51 static int vhc_virtdev_plug_generic(vhc_data_t *vhc, 52 52 async_sess_t *sess, usbvirt_device_t *virtdev, 53 uintptr_t *handle, bool connect , usb_address_t address)53 uintptr_t *handle, bool connect) 54 54 { 55 55 vhc_virtdev_t *dev = vhc_virtdev_create(); … … 60 60 dev->dev_sess = sess; 61 61 dev->dev_local = virtdev; 62 dev->address = address;63 62 64 63 fibril_mutex_lock(&vhc->guard); … … 79 78 if (connect) { 80 79 // FIXME: check status 81 (void) virthub_connect_device( &vhc->hub, dev);80 (void) virthub_connect_device(vhc->hub, dev); 82 81 } 83 82 … … 87 86 int vhc_virtdev_plug(vhc_data_t *vhc, async_sess_t *sess, uintptr_t *handle) 88 87 { 89 return vhc_virtdev_plug_generic(vhc, sess, NULL, handle, true , 0);88 return vhc_virtdev_plug_generic(vhc, sess, NULL, handle, true); 90 89 } 91 90 92 91 int vhc_virtdev_plug_local(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle) 93 92 { 94 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, true , 0);93 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, true); 95 94 } 96 95 97 int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle , usb_address_t address)96 int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle) 98 97 { 99 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false , address);98 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false); 100 99 } 101 100 … … 105 104 106 105 // FIXME: check status 107 (void) virthub_disconnect_device( &vhc->hub, dev);106 (void) virthub_disconnect_device(vhc->hub, dev); 108 107 109 108 fibril_mutex_lock(&vhc->guard);
Note:
See TracChangeset
for help on using the changeset viewer.