Changeset e26a9d95 in mainline for uspace/lib/usbhost/include/usb/host/hcd.h
- Timestamp:
- 2014-01-18T17:14:42Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e200736
- Parents:
- 19b3cc6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r19b3cc6 re26a9d95 52 52 typedef void (*ep_remove_hook_t)(hcd_t *, endpoint_t *); 53 53 typedef void (*interrupt_hook_t)(hcd_t *, uint32_t); 54 typedef int (*status_hook_t)(hcd_t *, uint32_t *); 54 55 55 56 typedef struct { … … 64 65 /** Hook to be called on device interrupt, passes ARG1 */ 65 66 interrupt_hook_t irq_hook; 67 /** Periodic polling hook */ 68 status_hook_t status_hook; 66 69 } hc_driver_t; 67 70 … … 80 83 static inline void hcd_set_implementation(hcd_t *hcd, void *data, 81 84 schedule_hook_t schedule, ep_add_hook_t add_hook, ep_remove_hook_t rem_hook, 82 interrupt_hook_t irq_hook )85 interrupt_hook_t irq_hook, status_hook_t status_hook) 83 86 { 84 87 assert(hcd); … … 88 91 hcd->driver.ep_remove_hook = rem_hook; 89 92 hcd->driver.irq_hook = irq_hook; 93 hcd->driver.status_hook = status_hook; 90 94 } 91 95
Note:
See TracChangeset
for help on using the changeset viewer.