Changeset 7191992 in mainline for uspace/lib/usbhost/include/usb/host/hcd.h
- Timestamp:
- 2014-01-02T19:49:35Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a0fa29c
- Parents:
- 7813516
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r7813516 r7191992 51 51 typedef int (*ep_add_hook_t)(hcd_t *, endpoint_t *); 52 52 typedef void (*ep_remove_hook_t)(hcd_t *, endpoint_t *); 53 typedef void (*interrupt_hook_t)(hcd_t *, uint32_t); 53 54 54 55 typedef struct { … … 61 62 /** Hook called upon removing of an endpoint. */ 62 63 ep_remove_hook_t ep_remove_hook; 64 /** Hook to be called on device interrupt, passes ARG1 */ 65 interrupt_hook_t irq_hook; 63 66 } hc_driver_t; 64 67 … … 76 79 77 80 static inline void hcd_set_implementation(hcd_t *hcd, void *data, 78 schedule_hook_t schedule, ep_add_hook_t add_hook, ep_remove_hook_t rem_hook) 81 schedule_hook_t schedule, ep_add_hook_t add_hook, ep_remove_hook_t rem_hook, 82 interrupt_hook_t irq_hook) 79 83 { 80 84 assert(hcd); … … 83 87 hcd->driver.ep_add_hook = add_hook; 84 88 hcd->driver.ep_remove_hook = rem_hook; 89 hcd->driver.irq_hook = irq_hook; 85 90 } 86 91
Note:
See TracChangeset
for help on using the changeset viewer.