Changes in uspace/drv/vhc/connhost.c [ec59693:284c629] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/connhost.c
rec59693 r284c629 36 36 #include <errno.h> 37 37 #include <usb/usb.h> 38 #include <usb/ addrkeep.h>38 #include <usb/hcd.h> 39 39 40 40 #include "vhcd.h" … … 64 64 65 65 static void universal_callback(void *buffer, size_t size, 66 int outcome, void *arg)66 usb_transaction_outcome_t outcome, void *arg) 67 67 { 68 68 transfer_info_t *transfer = (transfer_info_t *) arg; … … 107 107 108 108 static void control_abort_prematurely(control_transfer_info_t *transfer, 109 size_t size, int outcome)109 size_t size, usb_transaction_outcome_t outcome) 110 110 { 111 111 switch (transfer->direction) { … … 127 127 128 128 static void control_callback_two(void *buffer, size_t size, 129 int outcome, void *arg)129 usb_transaction_outcome_t outcome, void *arg) 130 130 { 131 131 control_transfer_info_t *ctrl_transfer = (control_transfer_info_t *) arg; 132 132 133 if (outcome != EOK) {133 if (outcome != USB_OUTCOME_OK) { 134 134 control_abort_prematurely(ctrl_transfer, outcome, size); 135 135 free(ctrl_transfer); … … 165 165 166 166 static void control_callback_one(void *buffer, size_t size, 167 int outcome, void *arg)167 usb_transaction_outcome_t outcome, void *arg) 168 168 { 169 169 control_transfer_info_t *transfer = (control_transfer_info_t *) arg; 170 170 171 if (outcome != EOK) {171 if (outcome != USB_OUTCOME_OK) { 172 172 control_abort_prematurely(transfer, outcome, size); 173 173 free(transfer); … … 219 219 usbhc_iface_transfer_out_callback_t callback, void *arg) 220 220 { 221 usb_log_debug2("Transfer OUT [%d.%d (%s); %zu].\n",221 dprintf(3, "transfer OUT [%d.%d (%s); %zu]", 222 222 target.address, target.endpoint, 223 223 usb_str_transfer_type(transfer_type), … … 239 239 usbhc_iface_transfer_out_callback_t callback, void *arg) 240 240 { 241 usb_log_debug2("Transfer SETUP [%d.%d (%s); %zu].\n",241 dprintf(3, "transfer SETUP [%d.%d (%s); %zu]", 242 242 target.address, target.endpoint, 243 243 usb_str_transfer_type(transfer_type), … … 259 259 usbhc_iface_transfer_in_callback_t callback, void *arg) 260 260 { 261 usb_log_debug2("Transfer IN [%d.%d (%s); %zu].\n",261 dprintf(3, "transfer IN [%d.%d (%s); %zu]", 262 262 target.address, target.endpoint, 263 263 usb_str_transfer_type(transfer_type), … … 276 276 277 277 static int interrupt_out(device_t *dev, usb_target_t target, 278 size_t max_packet_size,279 278 void *data, size_t size, 280 279 usbhc_iface_transfer_out_callback_t callback, void *arg) … … 286 285 287 286 static int interrupt_in(device_t *dev, usb_target_t target, 288 size_t max_packet_size,289 287 void *data, size_t size, 290 288 usbhc_iface_transfer_in_callback_t callback, void *arg) … … 296 294 297 295 static int control_write_setup(device_t *dev, usb_target_t target, 298 size_t max_packet_size,299 296 void *data, size_t size, 300 297 usbhc_iface_transfer_out_callback_t callback, void *arg) … … 306 303 307 304 static int control_write_data(device_t *dev, usb_target_t target, 308 size_t max_packet_size,309 305 void *data, size_t size, 310 306 usbhc_iface_transfer_out_callback_t callback, void *arg) … … 324 320 325 321 static int control_write(device_t *dev, usb_target_t target, 326 size_t max_packet_size,327 322 void *setup_packet, size_t setup_packet_size, 328 323 void *data, size_t data_size, … … 342 337 343 338 static int control_read_setup(device_t *dev, usb_target_t target, 344 size_t max_packet_size,345 339 void *data, size_t size, 346 340 usbhc_iface_transfer_out_callback_t callback, void *arg) … … 352 346 353 347 static int control_read_data(device_t *dev, usb_target_t target, 354 size_t max_packet_size,355 348 void *data, size_t size, 356 349 usbhc_iface_transfer_in_callback_t callback, void *arg) … … 370 363 371 364 static int control_read(device_t *dev, usb_target_t target, 372 size_t max_packet_size,373 365 void *setup_packet, size_t setup_packet_size, 374 366 void *data, size_t data_size,
Note:
See TracChangeset
for help on using the changeset viewer.