Changeset 890af992 in mainline for uspace/drv/uhci-hcd/main.c
- Timestamp:
- 2011-02-16T23:00:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- acce4fc
- Parents:
- 2736b13e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/main.c
r2736b13e r890af992 80 80 assert(device); 81 81 uhci_t *hc = dev_to_uhci(device); 82 //usb_log_info("LOL HARDWARE INTERRUPT: %p.\n", hc);82 usb_log_info("LOL HARDWARE INTERRUPT: %p.\n", hc); 83 83 assert(hc); 84 84 uhci_interrupt(hc); … … 96 96 int irq; 97 97 98 int ret = pci_get_my_registers(device,99 &io_reg_base, &io_reg_size, &irq);98 int ret = 99 pci_get_my_registers(device, &io_reg_base, &io_reg_size, &irq); 100 100 101 101 if (ret != EOK) { 102 usb_log_error("Failed(%d) to get I/O registers addresses for device:.\n", 102 usb_log_error( 103 "Failed(%d) to get I/O registers addresses for device:.\n", 103 104 ret, device->handle); 104 105 return ret; 105 106 } 107 108 ret = register_interrupt_handler(device, irq, irq_handler, NULL); 109 usb_log_error("registered interrupt handler %d.\n", ret); 106 110 107 111 usb_log_info("I/O regs at 0x%X (size %zu), IRQ %d.\n", … … 136 140 device->driver_data = uhci_hc; 137 141 138 ret = register_interrupt_handler(device, irq, irq_handler, NULL);139 usb_log_error("registered interrupt handler %d.\n", ret);140 141 142 return EOK; 142 143 }
Note:
See TracChangeset
for help on using the changeset viewer.