Changeset d1df381 in mainline
- Timestamp:
- 2013-12-31T23:20:40Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7813516
- Parents:
- ba4a03a5
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci.c
rba4a03a5 rd1df381 95 95 } 96 96 addr_range_t regs = hw_res.mem_ranges.ranges[0]; 97 const int irq = hw_res.irqs.irqs[0];98 97 99 98 /* Initialize generic HCD driver */ … … 117 116 /* Try to enable interrupts */ 118 117 bool interrupts = false; 119 ret= hcd_ddf_setup_interrupts(device, &hw_res, irq_handler,118 const int irq = hcd_ddf_setup_interrupts(device, &hw_res, irq_handler, 120 119 hc_gen_irq_code); 121 if ( ret != EOK) {120 if (irq < 0) { 122 121 usb_log_warning("Failed to enable interrupts: %s." 123 " Falling back to polling\n", str_error( ret));122 " Falling back to polling\n", str_error(irq)); 124 123 } else { 125 124 usb_log_debug("Hw interrupts enabled.\n"); -
uspace/drv/bus/usb/ohci/ohci.c
rba4a03a5 rd1df381 95 95 } 96 96 addr_range_t regs = hw_res.mem_ranges.ranges[0]; 97 const int irq = hw_res.irqs.irqs[0];98 97 99 98 /* Initialize generic HCD driver */ … … 117 116 /* Try to enable interrupts */ 118 117 bool interrupts = false; 119 ret= hcd_ddf_setup_interrupts(device, &hw_res, irq_handler,118 const int irq = hcd_ddf_setup_interrupts(device, &hw_res, irq_handler, 120 119 hc_gen_irq_code); 121 if ( ret != EOK) {120 if (irq < 0) { 122 121 usb_log_warning("Failed to enable interrupts: %s." 123 " Falling back to polling\n", str_error( ret));122 " Falling back to polling\n", str_error(irq)); 124 123 } else { 125 124 usb_log_debug("Hw interrupts enabled.\n"); -
uspace/drv/bus/usb/uhci/uhci.c
rba4a03a5 rd1df381 97 97 } 98 98 addr_range_t regs = hw_res.io_ranges.ranges[0]; 99 const int irq = hw_res.irqs.irqs[0];100 99 101 100 ret = hcd_ddf_setup_hc(device, USB_SPEED_FULL, … … 116 115 117 116 bool interrupts = false; 118 ret= hcd_ddf_setup_interrupts(device, &hw_res, irq_handler,117 const int irq = hcd_ddf_setup_interrupts(device, &hw_res, irq_handler, 119 118 hc_gen_irq_code); 120 if ( ret != EOK) {119 if (irq < 0) { 121 120 usb_log_warning("Failed to enable interrupts: %s." 122 " Falling back to polling.\n", str_error( ret));121 " Falling back to polling.\n", str_error(irq)); 123 122 } else { 124 123 usb_log_debug("Hw interrupts enabled.\n"); -
uspace/lib/usbhost/src/ddf_helpers.c
rba4a03a5 rd1df381 725 725 irq_code_t irq_code = {0}; 726 726 727 int irq = gen_irq_code(&irq_code, hw_res);727 const int irq = gen_irq_code(&irq_code, hw_res); 728 728 if (irq < 0) { 729 729 usb_log_error("Failed to generate IRQ code: %s.\n", … … 749 749 return ret; 750 750 } 751 752 return EOK;751 assert(irq > 0); 752 return irq; 753 753 } 754 754 /**
Note:
See TracChangeset
for help on using the changeset viewer.