Changeset 8f68913f in mainline
- Timestamp:
- 2012-12-20T11:48:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d9b2c73
- Parents:
- 21be46a
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/transfer.c
r21be46a r8f68913f 206 206 207 207 if (transfer->direction == USB_DIRECTION_IN) { 208 transfer->callback_in( transfer->ddf_fun,outcome,208 transfer->callback_in(outcome, 209 209 data_transfer_size, transfer->callback_arg); 210 210 } else { 211 211 assert(transfer->direction == USB_DIRECTION_OUT); 212 transfer->callback_out(transfer->ddf_fun, outcome, 213 transfer->callback_arg); 212 transfer->callback_out(outcome, transfer->callback_arg); 214 213 } 215 214 -
uspace/lib/drv/generic/remote_usbhc.c
r21be46a r8f68913f 463 463 } 464 464 465 static void callback_out(ddf_fun_t *fun, 466 int outcome, void *arg) 465 static void callback_out(int outcome, void *arg) 467 466 { 468 467 async_transaction_t *trans = arg; … … 473 472 } 474 473 475 static void callback_in(ddf_fun_t *fun, 476 int outcome, size_t actual_size, void *arg) 474 static void callback_in(int outcome, size_t actual_size, void *arg) 477 475 { 478 476 async_transaction_t *trans = (async_transaction_t *)arg; -
uspace/lib/drv/include/usbhc_iface.h
r21be46a r8f68913f 58 58 59 59 /** Callback for outgoing transfer. */ 60 typedef void (*usbhc_iface_transfer_out_callback_t)( ddf_fun_t *,int, void *);60 typedef void (*usbhc_iface_transfer_out_callback_t)(int, void *); 61 61 62 62 /** Callback for incoming transfer. */ 63 typedef void (*usbhc_iface_transfer_in_callback_t)(ddf_fun_t *, 64 int, size_t, void *); 63 typedef void (*usbhc_iface_transfer_in_callback_t)(int, size_t, void *); 65 64 66 65 /** USB host controller communication interface. */ -
uspace/lib/usbhost/src/usb_transfer_batch.c
r21be46a r8f68913f 141 141 instance->setup_buffer); 142 142 } 143 instance->callback_out( instance->fun,error, instance->arg);143 instance->callback_out(error, instance->arg); 144 144 } 145 145 … … 150 150 memcpy(instance->buffer, data, safe_size); 151 151 } 152 instance->callback_in(instance->fun, error, 153 safe_size, instance->arg); 152 instance->callback_in(error, safe_size, instance->arg); 154 153 } 155 154 }
Note:
See TracChangeset
for help on using the changeset viewer.