Changeset a8ac368 in mainline for uspace/drv/uhci-hcd/uhci.c
- Timestamp:
- 2011-03-29T20:08:53Z (14 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci.c
r0d92638 ra8ac368 44 44 #include "pci.h" 45 45 46 47 46 /** IRQ handling callback, identifies device 48 47 * … … 108 107 /*----------------------------------------------------------------------------*/ 109 108 static ddf_dev_ops_t hc_ops = { 110 .interfaces[USB_DEV_IFACE] = &usb_iface,109 // .interfaces[USB_DEV_IFACE] = &usb_iface, 111 110 .interfaces[USBHC_DEV_IFACE] = &hc_iface, /* see iface.h/c */ 112 111 }; … … 175 174 176 175 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 177 180 ret = pci_enable_interrupts(device); 178 181 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"); 182 186 } else { 183 187 usb_log_debug("Hw interrupts enabled.\n"); 184 188 interrupts = true; 185 189 } 190 #endif 186 191 187 192 instance->hc_fun = ddf_fun_create(device, fun_exposed, "uhci-hc");
Note:
See TracChangeset
for help on using the changeset viewer.