Changes in uspace/drv/bus/usb/vhc/transfer.c [c0e4b5b2:58563585] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/transfer.c
rc0e4b5b2 r58563585 31 31 #include <usb/debug.h> 32 32 #include <usbvirt/device.h> 33 #include <usb/host/bandwidth.h>34 33 #include <usbvirt/ipc.h> 35 34 #include "vhcd.h" … … 38 37 static bool is_set_address_transfer(vhc_transfer_t *transfer) 39 38 { 40 if (transfer->batch->ep-> target.endpoint != 0) {39 if (transfer->batch->ep->endpoint != 0) { 41 40 return false; 42 41 } … … 81 80 if (dir == USB_DIRECTION_IN) { 82 81 rc = usbvirt_data_in(dev, batch->ep->transfer_type, 83 batch->ep-> target.endpoint,82 batch->ep->endpoint, 84 83 batch->buffer, batch->buffer_size, 85 84 actual_data_size); … … 87 86 assert(dir == USB_DIRECTION_OUT); 88 87 rc = usbvirt_data_out(dev, batch->ep->transfer_type, 89 batch->ep-> target.endpoint,88 batch->ep->endpoint, 90 89 batch->buffer, batch->buffer_size); 91 90 } … … 116 115 } else { 117 116 if (dir == USB_DIRECTION_IN) { 118 rc = usbvirt_ipc_send_data_in(sess, batch->ep-> target.endpoint,117 rc = usbvirt_ipc_send_data_in(sess, batch->ep->endpoint, 119 118 batch->ep->transfer_type, 120 119 batch->buffer, batch->buffer_size, … … 122 121 } else { 123 122 assert(dir == USB_DIRECTION_OUT); 124 rc = usbvirt_ipc_send_data_out(sess, batch->ep-> target.endpoint,123 rc = usbvirt_ipc_send_data_out(sess, batch->ep->endpoint, 125 124 batch->ep->transfer_type, 126 125 batch->buffer, batch->buffer_size); … … 160 159 list_initialize(&instance->devices); 161 160 fibril_mutex_initialize(&instance->guard); 162 usb2_bus_init(&instance->bus, BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11);163 161 instance->magic = 0xDEADBEEF; 164 162 return virthub_init(&instance->hub, "root hub"); … … 184 182 list_foreach(vhc->devices, link, vhc_virtdev_t, dev) { 185 183 fibril_mutex_lock(&dev->guard); 186 if (dev->address == transfer->batch->ep-> target.address) {184 if (dev->address == transfer->batch->ep->address) { 187 185 if (!targets) { 188 186 list_append(&transfer->link, &dev->transfer_queue);
Note:
See TracChangeset
for help on using the changeset viewer.