Changes in uspace/drv/bus/usb/ohci/ohci.c [7de1988c:507c6f3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci.c
r7de1988c r507c6f3 177 177 ddf_fun_set_ops(instance->rh_fun, &rh_ops); 178 178 179 addr_range_t regs; 179 uintptr_t reg_base = 0; 180 size_t reg_size = 0; 180 181 int irq = 0; 181 182 182 rc = get_my_registers(device, ® s, &irq);183 rc = get_my_registers(device, ®_base, ®_size, &irq); 183 184 if (rc != EOK) { 184 185 usb_log_error("Failed to get register memory addresses " … … 189 190 190 191 usb_log_debug("Memory mapped regs at %p (size %zu), IRQ %d.\n", 191 RNGABSPTR(regs), RNGSZ(regs), irq);192 193 rc = hc_register_irq_handler(device, ®s, irq, irq_handler);192 (void *) reg_base, reg_size, irq); 193 194 rc = hc_register_irq_handler(device, reg_base, reg_size, irq, irq_handler); 194 195 if (rc != EOK) { 195 196 usb_log_error("Failed to register interrupt handler: %s.\n", … … 214 215 } 215 216 216 rc = hc_init(&instance->hc, ®s, interrupts);217 rc = hc_init(&instance->hc, reg_base, reg_size, interrupts); 217 218 if (rc != EOK) { 218 219 usb_log_error("Failed to init ohci_hcd: %s.\n", str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.