Changeset 68e5406 in mainline for uspace/drv/bus
- Timestamp:
- 2017-12-10T21:08:11Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4c6de4f
- Parents:
- dd8ab1c
- Location:
- uspace/drv/bus/usb
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/hc.c
rdd8ab1c r68e5406 96 96 * @param[in] hw_res Device's resources. 97 97 * 98 * @param[out] irq 99 * 98 100 * @return Error code. 99 101 */ 100 int ehci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res )102 int ehci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res, int *irq) 101 103 { 102 104 assert(code); … … 146 148 RNGABSPTR(regs), RNGSZ(regs), hw_res->irqs.irqs[0]); 147 149 148 return hw_res->irqs.irqs[0]; 150 *irq = hw_res->irqs.irqs[0]; 151 return EOK; 149 152 } 150 153 -
uspace/drv/bus/usb/ehci/hc.h
rdd8ab1c r68e5406 88 88 void hc_dequeue_endpoint(hc_t *instance, const endpoint_t *ep); 89 89 90 int ehci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res );90 int ehci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res, int *irq); 91 91 92 92 void ehci_hc_interrupt(hcd_t *hcd, uint32_t status); -
uspace/drv/bus/usb/ohci/hc.c
rdd8ab1c r68e5406 103 103 * @return Error code. 104 104 */ 105 int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res )105 int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res, int *irq) 106 106 { 107 107 assert(code); … … 141 141 RNGABSPTR(regs), RNGSZ(regs), hw_res->irqs.irqs[0]); 142 142 143 return hw_res->irqs.irqs[0]; 143 *irq = hw_res->irqs.irqs[0]; 144 return EOK; 144 145 } 145 146 -
uspace/drv/bus/usb/ohci/hc.h
rdd8ab1c r68e5406 86 86 extern void hc_dequeue_endpoint(hc_t *, const endpoint_t *); 87 87 88 int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res );88 int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res, int *irq); 89 89 90 90 extern void ohci_hc_interrupt(hcd_t *, uint32_t); -
uspace/drv/bus/usb/uhci/hc.c
rdd8ab1c r68e5406 103 103 * @param[out] code IRQ code structure. 104 104 * @param[in] hw_res Device's resources. 105 * @param[out] irq 105 106 * 106 107 * @return Error code. 107 108 */ 108 int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res )109 int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res, int *irq) 109 110 { 110 111 assert(code); … … 142 143 RNGABSPTR(regs), RNGSZ(regs), hw_res->irqs.irqs[0]); 143 144 144 return hw_res->irqs.irqs[0]; 145 *irq = hw_res->irqs.irqs[0]; 146 return EOK; 145 147 } 146 148 -
uspace/drv/bus/usb/uhci/hc.h
rdd8ab1c r68e5406 127 127 extern void hc_fini(hc_t *); 128 128 129 extern int uhci_hc_gen_irq_code(irq_code_t *, const hw_res_list_parsed_t * );129 extern int uhci_hc_gen_irq_code(irq_code_t *, const hw_res_list_parsed_t *, int *); 130 130 131 131 extern void uhci_hc_interrupt(hcd_t *, uint32_t);
Note:
See TracChangeset
for help on using the changeset viewer.
