Changes in uspace/drv/bus/usb/vhc/devconn.c [193d280c:58563585] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/devconn.c
r193d280c r58563585 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 )53 uintptr_t *handle, bool connect, usb_address_t address) 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; 62 63 63 64 fibril_mutex_lock(&vhc->guard); … … 78 79 if (connect) { 79 80 // FIXME: check status 80 (void) virthub_connect_device( vhc->hub, dev);81 (void) virthub_connect_device(&vhc->hub, dev); 81 82 } 82 83 … … 86 87 int vhc_virtdev_plug(vhc_data_t *vhc, async_sess_t *sess, uintptr_t *handle) 87 88 { 88 return vhc_virtdev_plug_generic(vhc, sess, NULL, handle, true );89 return vhc_virtdev_plug_generic(vhc, sess, NULL, handle, true, 0); 89 90 } 90 91 91 92 int vhc_virtdev_plug_local(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle) 92 93 { 93 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, true );94 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, true, 0); 94 95 } 95 96 96 int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle) 97 int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, 98 uintptr_t *handle, usb_address_t address) 97 99 { 98 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false );100 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false, address); 99 101 } 100 102 … … 104 106 105 107 // FIXME: check status 106 (void) virthub_disconnect_device( vhc->hub, dev);108 (void) virthub_disconnect_device(&vhc->hub, dev); 107 109 108 110 fibril_mutex_lock(&vhc->guard);
Note:
See TracChangeset
for help on using the changeset viewer.