Changeset 32fb6bce in mainline for uspace/drv/bus/usb/uhci/hc.h
- Timestamp:
- 2017-12-18T22:50:21Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7f70d1c
- Parents:
- 1ea0bbf
- git-author:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:04:50)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:50:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.h
r1ea0bbf r32fb6bce 100 100 /** Main UHCI driver structure */ 101 101 typedef struct hc { 102 /* Common hc_device header */ 103 hc_device_t base; 104 102 105 uhci_rh_t rh; 103 106 usb2_bus_t bus; … … 119 122 /** Pointer table to the above lists, helps during scheduling */ 120 123 transfer_list_t *transfers[2][4]; 121 /** Indicator of hw interrupts availability */122 bool hw_interrupts;123 124 124 125 /** Number of hw failures detected. */ … … 126 127 } hc_t; 127 128 128 extern int hc_init(hc_t *, hcd_t *, const hw_res_list_parsed_t *); 129 extern void hc_start(hc_t *); 130 extern void hc_fini(hc_t *); 129 static inline hc_t *hcd_to_hc(hc_device_t *hcd) 130 { 131 assert(hcd); 132 return (hc_t *) hcd; 133 } 131 134 132 extern int uhci_hc_gen_irq_code(irq_code_t *, hcd_t *,const hw_res_list_parsed_t *); 135 static inline hc_t *bus_to_hc(bus_t *bus) 136 { 137 assert(bus); 138 return member_to_inst(bus, hc_t, bus); 139 } 133 140 134 extern void uhci_hc_interrupt(hcd_t *, uint32_t); 135 extern int uhci_hc_status(hcd_t *, uint32_t *); 136 extern int uhci_hc_schedule(hcd_t *, usb_transfer_batch_t *); 141 extern int hc_add(hc_device_t *, const hw_res_list_parsed_t *); 142 extern int hc_gen_irq_code(irq_code_t *, hc_device_t *, const hw_res_list_parsed_t *); 143 extern int hc_start(hc_device_t *); 144 extern int hc_gone(hc_device_t *); 137 145 138 146 #endif
Note:
See TracChangeset
for help on using the changeset viewer.