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