Changeset 82122f3 in mainline for uspace/drv/vhc/devices.c
- Timestamp:
- 2010-12-17T14:51:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1f383dde
- Parents:
- 692f13e4 (diff), 11658b64 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/devices.c
r692f13e4 r82122f3 47 47 #include "devices.h" 48 48 #include "hub.h" 49 #include "hub/virthub.h" 49 50 #include "vhcd.h" 50 51 … … 69 70 list_append(&dev->link, &devices); 70 71 71 hub_add_device(dev);72 virthub_connect_device(&virtual_hub_device, dev); 72 73 73 74 return dev; … … 78 79 void virtdev_destroy_device(virtdev_connection_t *dev) 79 80 { 80 hub_remove_device(dev);81 virthub_disconnect_device(&virtual_hub_device, dev); 81 82 list_remove(&dev->link); 82 83 free(dev); … … 94 95 = list_get_instance(pos, virtdev_connection_t, link); 95 96 96 if (! hub_can_device_signal(dev)) {97 if (!virthub_is_device_enabled(&virtual_hub_device, dev)) { 97 98 continue; 98 99 } 99 100 100 101 ipc_call_t answer_data; 101 ipcarg_t answer_rc;102 sysarg_t answer_rc; 102 103 aid_t req; 103 104 int rc = EOK; … … 145 146 * (if the address matches). 146 147 */ 147 if (virt hub_dev.address == transaction->target.address) {148 if (virtual_hub_device.address == transaction->target.address) { 148 149 size_t tmp; 149 dprintf( 3, "sending `%s' transaction to hub",150 dprintf(1, "sending `%s' transaction to hub", 150 151 usbvirt_str_transaction_type(transaction->type)); 151 152 switch (transaction->type) { 152 153 case USBVIRT_TRANSACTION_SETUP: 153 virthub_dev.transaction_setup(&virthub_dev, 154 virtual_hub_device.transaction_setup( 155 &virtual_hub_device, 154 156 transaction->target.endpoint, 155 157 transaction->buffer, transaction->len); … … 157 159 158 160 case USBVIRT_TRANSACTION_IN: 159 virthub_dev.transaction_in(&virthub_dev, 161 virtual_hub_device.transaction_in( 162 &virtual_hub_device, 160 163 transaction->target.endpoint, 161 164 transaction->buffer, transaction->len, … … 167 170 168 171 case USBVIRT_TRANSACTION_OUT: 169 virthub_dev.transaction_out(&virthub_dev, 172 virtual_hub_device.transaction_out( 173 &virtual_hub_device, 170 174 transaction->target.endpoint, 171 175 transaction->buffer, transaction->len);
Note:
See TracChangeset
for help on using the changeset viewer.