Changeset 890af992 in mainline for uspace/drv/uhci-hcd/main.c


Ignore:
Timestamp:
2011-02-16T23:00:41Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
acce4fc
Parents:
2736b13e
Message:

Refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/main.c

    r2736b13e r890af992  
    8080        assert(device);
    8181        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);
    8383        assert(hc);
    8484        uhci_interrupt(hc);
     
    9696        int irq;
    9797
    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);
    100100
    101101        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",
    103104                    ret, device->handle);
    104105                return ret;
    105106        }
     107
     108        ret = register_interrupt_handler(device, irq, irq_handler, NULL);
     109        usb_log_error("registered interrupt handler %d.\n", ret);
    106110
    107111        usb_log_info("I/O regs at 0x%X (size %zu), IRQ %d.\n",
     
    136140        device->driver_data = uhci_hc;
    137141
    138         ret = register_interrupt_handler(device, irq, irq_handler, NULL);
    139         usb_log_error("registered interrupt handler %d.\n", ret);
    140 
    141142        return EOK;
    142143}
Note: See TracChangeset for help on using the changeset viewer.