Changeset a8ac368 in mainline for uspace/drv/uhci-hcd/uhci.c


Ignore:
Timestamp:
2011-03-29T20:08:53Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fc883bb
Parents:
0d92638 (diff), 51e5608 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

development changes

File:
1 edited

Legend:

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

    r0d92638 ra8ac368  
    4444#include "pci.h"
    4545
    46 
    4746/** IRQ handling callback, identifies device
    4847 *
     
    108107/*----------------------------------------------------------------------------*/
    109108static ddf_dev_ops_t hc_ops = {
    110         .interfaces[USB_DEV_IFACE] = &usb_iface,
     109//      .interfaces[USB_DEV_IFACE] = &usb_iface,
    111110        .interfaces[USBHC_DEV_IFACE] = &hc_iface, /* see iface.h/c */
    112111};
     
    175174
    176175        bool interrupts = false;
     176#ifdef CONFIG_USBHC_NO_INTERRUPTS
     177        usb_log_warning("Interrupts disabled in OS config, " \
     178            "falling back to polling.\n");
     179#else
    177180        ret = pci_enable_interrupts(device);
    178181        if (ret != EOK) {
    179                 usb_log_warning(
    180                     "Failed(%d) to enable interrupts, fall back to polling.\n",
    181                     ret);
     182                usb_log_warning("Failed to enable interrupts: %s.\n",
     183                    str_error(ret));
     184                usb_log_info("HW interrupts not available, " \
     185                    "falling back to polling.\n");
    182186        } else {
    183187                usb_log_debug("Hw interrupts enabled.\n");
    184188                interrupts = true;
    185189        }
     190#endif
    186191
    187192        instance->hc_fun = ddf_fun_create(device, fun_exposed, "uhci-hc");
Note: See TracChangeset for help on using the changeset viewer.