Changes in uspace/drv/vhc/devices.c [774afaae:9223dc5c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/devices.c
r774afaae r9223dc5c 47 47 #include "devices.h" 48 48 #include "hub.h" 49 #include "hub/virthub.h"50 49 #include "vhcd.h" 51 50 … … 70 69 list_append(&dev->link, &devices); 71 70 72 virthub_connect_device(&virtual_hub_device,dev);71 hub_add_device(dev); 73 72 74 73 return dev; … … 79 78 void virtdev_destroy_device(virtdev_connection_t *dev) 80 79 { 81 virthub_disconnect_device(&virtual_hub_device,dev);80 hub_remove_device(dev); 82 81 list_remove(&dev->link); 83 82 free(dev); … … 95 94 = list_get_instance(pos, virtdev_connection_t, link); 96 95 97 if (! virthub_is_device_enabled(&virtual_hub_device,dev)) {96 if (!hub_can_device_signal(dev)) { 98 97 continue; 99 98 } … … 146 145 * (if the address matches). 147 146 */ 148 if (virt ual_hub_device.address == transaction->target.address) {147 if (virthub_dev.address == transaction->target.address) { 149 148 size_t tmp; 150 149 dprintf(1, "sending `%s' transaction to hub", … … 152 151 switch (transaction->type) { 153 152 case USBVIRT_TRANSACTION_SETUP: 154 virtual_hub_device.transaction_setup( 155 &virtual_hub_device, 153 virthub_dev.transaction_setup(&virthub_dev, 156 154 transaction->target.endpoint, 157 155 transaction->buffer, transaction->len); … … 159 157 160 158 case USBVIRT_TRANSACTION_IN: 161 virtual_hub_device.transaction_in( 162 &virtual_hub_device, 159 virthub_dev.transaction_in(&virthub_dev, 163 160 transaction->target.endpoint, 164 161 transaction->buffer, transaction->len, … … 170 167 171 168 case USBVIRT_TRANSACTION_OUT: 172 virtual_hub_device.transaction_out( 173 &virtual_hub_device, 169 virthub_dev.transaction_out(&virthub_dev, 174 170 transaction->target.endpoint, 175 171 transaction->buffer, transaction->len);
Note:
See TracChangeset
for help on using the changeset viewer.