Changeset 3c4663e in mainline for uspace/lib/usbhost/src
- Timestamp:
- 2012-12-22T23:25:44Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d8cdf39e
- Parents:
- 1affef2f
- Location:
- uspace/lib/usbhost/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/hcd.c
r1affef2f r3c4663e 96 96 */ 97 97 int hcd_send_batch( 98 hcd_t *hcd, ddf_fun_t *fun,usb_target_t target, usb_direction_t direction,98 hcd_t *hcd, usb_target_t target, usb_direction_t direction, 99 99 void *data, size_t size, uint64_t setup_data, 100 100 usbhc_iface_transfer_in_callback_t in, … … 149 149 150 150 usb_transfer_batch_t *batch = usb_transfer_batch_create( 151 ep, data, size, setup_data, in, out, arg , fun);151 ep, data, size, setup_data, in, out, arg); 152 152 if (!batch) { 153 153 return ENOMEM; -
uspace/lib/usbhost/src/iface.c
r1affef2f r3c4663e 231 231 void *arg) 232 232 { 233 return hcd_send_batch(fun_to_hcd(fun), fun,target, USB_DIRECTION_IN,233 return hcd_send_batch(fun_to_hcd(fun), target, USB_DIRECTION_IN, 234 234 data, size, setup_data, callback, NULL, arg, "READ"); 235 235 } … … 249 249 usbhc_iface_transfer_out_callback_t callback, void *arg) 250 250 { 251 return hcd_send_batch(fun_to_hcd(fun), fun,target, USB_DIRECTION_OUT,251 return hcd_send_batch(fun_to_hcd(fun), target, USB_DIRECTION_OUT, 252 252 (uint8_t*)data, size, setup_data, NULL, callback, arg, "WRITE"); 253 253 } -
uspace/lib/usbhost/src/usb_transfer_batch.c
r1affef2f r3c4663e 61 61 usbhc_iface_transfer_in_callback_t func_in, 62 62 usbhc_iface_transfer_out_callback_t func_out, 63 void *arg, 64 ddf_fun_t *fun 63 void *arg 65 64 ) 66 65 { … … 79 78 instance->buffer_size = buffer_size; 80 79 instance->setup_size = 0; 81 instance->fun = fun;82 80 instance->transfered_size = 0; 83 81 instance->error = EOK;
Note:
See TracChangeset
for help on using the changeset viewer.