Changes in uspace/drv/uhci-hcd/uhci_hc.h [ff34e5a:a9f91cd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci_hc.h
rff34e5a ra9f91cd 27 27 */ 28 28 29 /** @addtogroup drvusbuhci hc29 /** @addtogroup drvusbuhci 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @brief UHCI host controller driver structure33 * @brief UHCI driver 34 34 */ 35 35 #ifndef DRV_UHCI_UHCI_HC_H … … 99 99 fid_t cleaner; 100 100 fid_t debug_checker; 101 bool hw_interrupts;102 101 103 102 ddf_fun_t *ddf_instance; 104 103 } uhci_hc_t; 105 104 106 int uhci_hc_init(uhci_hc_t *instance, ddf_fun_t *fun, 107 void *regs, size_t reg_size, bool interupts); 105 /* init uhci specifics in device.driver_data */ 106 int uhci_hc_init(uhci_hc_t *instance, ddf_fun_t *fun, void *regs, size_t reg_size); 107 108 static inline void uhci_hc_fini(uhci_hc_t *instance) { /* TODO: implement*/ }; 108 109 109 110 int uhci_hc_schedule(uhci_hc_t *instance, batch_t *batch); … … 111 112 void uhci_hc_interrupt(uhci_hc_t *instance, uint16_t status); 112 113 113 /** Safely dispose host controller internal structures114 *115 * @param[in] instance Host controller structure to use.116 */117 static inline void uhci_hc_fini(uhci_hc_t *instance) { /* TODO: implement*/ };118 119 /** Get and cast pointer to the driver data120 *121 * @param[in] fun DDF function pointer122 * @return cast pointer to driver_data123 */124 114 static inline uhci_hc_t * fun_to_uhci_hc(ddf_fun_t *fun) 125 115 { return (uhci_hc_t*)fun->driver_data; }
Note:
See TracChangeset
for help on using the changeset viewer.