Changeset 925a21e in mainline for uspace/drv/bus/usb/uhci/hc.h
- Timestamp:
- 2011-09-24T14:20:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5bf76c1
- Parents:
- 867e2555 (diff), 1ab4aca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.h
r867e2555 r925a21e 39 39 #include <ddi.h> 40 40 41 #include <usb/host/device_keeper.h> 42 #include <usb/host/usb_endpoint_manager.h> 43 #include <usb/host/batch.h> 41 #include <usb/host/hcd.h> 44 42 45 43 #include "transfer_list.h" … … 94 92 /** Main UHCI driver structure */ 95 93 typedef struct hc { 96 /** USB bus driver, devices and addresses */ 97 usb_device_keeper_t manager; 98 /** USB bus driver, endpoints */ 99 usb_endpoint_manager_t ep_manager; 94 /** Generic HCD driver structure */ 95 hcd_t generic; 100 96 101 97 /** Addresses of I/O registers */ … … 124 120 unsigned hw_failures; 125 121 } hc_t; 122 126 123 size_t hc_irq_cmd_count(void); 127 124 int hc_get_irq_commands( 128 125 irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size); 126 void hc_interrupt(hc_t *instance, uint16_t status); 129 127 int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts); 130 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);131 void hc_interrupt(hc_t *instance, uint16_t status);132 128 133 129 /** Safely dispose host controller internal structures … … 135 131 * @param[in] instance Host controller structure to use. 136 132 */ 137 static inline void hc_fini(hc_t *instance) { /* TODO: implement*/ }; 138 139 /** Get and cast pointer to the driver data 140 * 141 * @param[in] fun DDF function pointer 142 * @return cast pointer to driver_data 143 */ 144 static inline hc_t * fun_to_hc(ddf_fun_t *fun) 145 { 146 assert(fun); 147 return fun->driver_data; 148 } 133 static inline void hc_fini(hc_t *instance) {} /* TODO: implement*/ 149 134 #endif 150 135 /**
Note:
See TracChangeset
for help on using the changeset viewer.