Changeset f29931c in mainline for uspace/lib/usbhost/include/usb/host/hcd.h
- Timestamp:
- 2012-12-16T14:53:34Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4daee7a
- Parents:
- 2f87aa6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r2f87aa6 rf29931c 46 46 typedef struct hcd hcd_t; 47 47 48 typedef int (*schedule_hook_t)(hcd_t *, usb_transfer_batch_t *); 49 typedef int (*ep_add_hook_t)(hcd_t *, endpoint_t *); 50 typedef void (*ep_remove_hook_t)(hcd_t *, endpoint_t *); 51 48 52 /** Generic host controller driver structure. */ 49 53 struct hcd { … … 56 60 void *private_data; 57 61 /** Transfer scheduling, implement in device driver. */ 58 int (*schedule)(hcd_t *, usb_transfer_batch_t *);62 schedule_hook_t schedule; 59 63 /** Hook called upon registering new endpoint. */ 60 int (*ep_add_hook)(hcd_t *, endpoint_t *);64 ep_add_hook_t ep_add_hook; 61 65 /** Hook called upon removing of an endpoint. */ 62 void (*ep_remove_hook)(hcd_t *, endpoint_t *);66 ep_remove_hook_t ep_remove_hook; 63 67 }; 64 68
Note:
See TracChangeset
for help on using the changeset viewer.