Changeset 3afb758 in mainline for uspace/drv/bus/usb/uhci/hc.h
- Timestamp:
- 2011-08-24T15:23:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a02517
- Parents:
- 5fe0a69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.h
r5fe0a69 r3afb758 39 39 #include <ddi.h> 40 40 41 #include <usb/host/device_keeper.h>42 #include <usb/host/usb_endpoint_manager.h>43 41 #include <usb/host/batch.h> 44 42 #include <usb/host/hcd.h> … … 95 93 /** Main UHCI driver structure */ 96 94 typedef struct hc { 95 /** Generic HCD driver structure */ 97 96 hcd_t generic; 98 /** USB bus driver, devices and addresses */99 usb_device_keeper_t manager;100 /** USB bus driver, endpoints */101 usb_endpoint_manager_t ep_manager;102 97 103 98 /** Addresses of I/O registers */ … … 126 121 unsigned hw_failures; 127 122 } hc_t; 123 128 124 size_t hc_irq_cmd_count(void); 129 125 int hc_get_irq_commands( 130 126 irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size); 127 void hc_interrupt(hc_t *instance, uint16_t status); 131 128 int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts); 132 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);133 void hc_interrupt(hc_t *instance, uint16_t status);134 129 135 130 /** Safely dispose host controller internal structures … … 137 132 * @param[in] instance Host controller structure to use. 138 133 */ 139 static inline void hc_fini(hc_t *instance) { /* TODO: implement*/ }; 140 141 /** Get and cast pointer to the driver data 142 * 143 * @param[in] fun DDF function pointer 144 * @return cast pointer to driver_data 145 */ 146 static inline hc_t * fun_to_hc(ddf_fun_t *fun) 147 { 148 assert(fun); 149 return fun->driver_data; 150 } 134 static inline void hc_fini(hc_t *instance) {} /* TODO: implement*/ 151 135 #endif 152 136 /**
Note:
See TracChangeset
for help on using the changeset viewer.