Changeset 23b0fe8 in mainline
- Timestamp:
- 2011-08-25T13:16:45Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e20eaed
- Parents:
- 90dd59d
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r90dd59d r23b0fe8 203 203 instance->generic.private_data = instance; 204 204 instance->generic.schedule = schedule; 205 instance->generic.batch_init_hook = batch_init_ohci;206 205 instance->generic.ep_add_hook = NULL; 207 206 -
uspace/drv/bus/usb/uhci/hc.c
r90dd59d r23b0fe8 198 198 instance->generic.private_data = instance; 199 199 instance->generic.schedule = hc_schedule; 200 instance->generic.batch_init_hook = batch_init_uhci;201 200 instance->generic.ep_add_hook = NULL; 201 202 202 #undef CHECK_RET_DEST_FUN_RETURN 203 203 … … 382 382 assert(instance); 383 383 assert(batch); 384 int ret = batch_init_uhci(batch); 385 if (ret != EOK) { 386 return ret; 387 } 384 388 385 389 transfer_list_t *list = -
uspace/lib/usbhost/include/usb/host/hcd.h
r90dd59d r23b0fe8 51 51 int (*schedule)(hcd_t *, usb_transfer_batch_t *); 52 52 int (*ep_add_hook)(hcd_t *, endpoint_t *); 53 int (*batch_init_hook)(usb_transfer_batch_t *);54 53 }; 55 54 /*----------------------------------------------------------------------------*/ -
uspace/lib/usbhost/src/iface.c
r90dd59d r23b0fe8 78 78 } 79 79 80 /* No private data and no private data_dtor, these should be set by 81 * batch_init_hook*/ 80 /* No private data and no private data dtor, these will be set later */ 82 81 usb_transfer_batch_init(batch, ep, data, NULL, size, setup_data, 83 82 setup_size, in, out, arg, fun, NULL, NULL); 84 if (hcd->batch_init_hook) { 85 ret = hcd->batch_init_hook(batch); 86 if (ret != EOK) 87 goto out; 88 } else { 89 usb_log_warning("Missing batch_private_data constructor!\n"); 90 } 83 91 84 if (hcd->schedule) { 92 85 ret = hcd->schedule(hcd, batch); … … 204 197 return ENOMEM; 205 198 int ret = EOK; 199 206 200 if (hcd->ep_add_hook) { 207 ret = hcd->ep_add_hook( ep);201 ret = hcd->ep_add_hook(hcd, ep); 208 202 } 209 203 if (ret != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.