Changeset 3c4663e in mainline
- Timestamp:
- 2012-12-22T23:25:44Z (12 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
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r1affef2f r3c4663e 82 82 } 83 83 84 int hcd_send_batch( 85 hcd_t *hcd, ddf_fun_t *fun, usb_target_t target, usb_direction_t direction, 84 int hcd_send_batch(hcd_t *hcd, usb_target_t target, usb_direction_t direction, 86 85 void *data, size_t size, uint64_t setup_data, 87 86 usbhc_iface_transfer_in_callback_t in, -
uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h
r1affef2f r3c4663e 67 67 */ 68 68 size_t setup_size; 69 /** Host controller function, passed to callback function */70 ddf_fun_t *fun;71 69 72 70 /** Actually used portion of the buffer … … 103 101 usbhc_iface_transfer_in_callback_t func_in, 104 102 usbhc_iface_transfer_out_callback_t func_out, 105 void *arg, 106 ddf_fun_t *fun 103 void *arg 107 104 ); 108 105 void usb_transfer_batch_destroy(const usb_transfer_batch_t *instance); -
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.