Changeset 00aece0 in mainline for uspace/drv/bus/usb/uhci/hc.h
- Timestamp:
- 2012-02-18T16:47:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4449c6c
- Parents:
- bd5f3b7 (diff), f943dd3 (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
rbd5f3b7 r00aece0 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 123 size_t hc_irq_pio_range_count(void); 126 124 size_t hc_irq_cmd_count(void); 127 int hc_get_irq_commands( 128 irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size); 125 int hc_get_irq_code(irq_pio_range_t [], size_t, irq_cmd_t [], size_t, uintptr_t, 126 size_t); 127 void hc_interrupt(hc_t *instance, uint16_t status); 129 128 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 129 133 130 /** Safely dispose host controller internal structures … … 135 132 * @param[in] instance Host controller structure to use. 136 133 */ 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 } 134 static inline void hc_fini(hc_t *instance) {} /* TODO: implement*/ 149 135 #endif 150 136 /**
Note:
See TracChangeset
for help on using the changeset viewer.