Changes in / [c113056:1879a7d] in mainline


Ignore:
Location:
uspace
Files:
4 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/Makefile

    rc113056 r1879a7d  
    3434SOURCES = \
    3535        main.c \
     36        pci.c \
    3637        transfers.c
    3738
  • uspace/drv/uhci/main.c

    rc113056 r1879a7d  
    3030#include <usb/debug.h>
    3131#include <errno.h>
     32#include <str_error.h>
    3233#include <driver.h>
    3334#include "uhci.h"
     
    5556        usb_dprintf(NAME, 1, "uhci_add_device() called\n");
    5657        device->ops = &uhci_ops;
     58
     59        uintptr_t io_reg_base;
     60        size_t io_reg_size;
     61        int irq;
     62
     63        int rc = pci_get_my_registers(device,
     64            &io_reg_base, &io_reg_size, &irq);
     65
     66        if (rc != EOK) {
     67                fprintf(stderr,
     68                    NAME ": failed to get I/O registers addresses: %s.\n",
     69                    str_error(rc));
     70                return rc;
     71        }
     72
     73        usb_dprintf(NAME, 2, "I/O regs at 0x%X (size %zu), IRQ %d.\n",
     74            io_reg_base, io_reg_size, irq);
    5775
    5876        /*
  • uspace/drv/uhci/uhci.h

    rc113056 r1879a7d  
    2727 */
    2828
    29 /** @addtogroup usb
     29/** @addtogroup drvusbuhci
    3030 * @{
    3131 */
     
    4242usbhc_iface_t uhci_iface;
    4343
     44int pci_get_my_registers(device_t *, uintptr_t *, size_t *, int *);
     45
    4446#endif
    4547/**
Note: See TracChangeset for help on using the changeset viewer.