Changeset ff34e5a in mainline for uspace/drv/uhci-hcd/uhci.c
- Timestamp:
- 2011-03-14T14:04:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9370884
- Parents:
- 6298d80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci.c
r6298d80 rff34e5a 174 174 "Failed(%d) to disable legacy USB: %s.\n", ret, str_error(ret)); 175 175 176 #if 0 176 bool interrupts = false; 177 177 ret = pci_enable_interrupts(device); 178 178 if (ret != EOK) { … … 180 180 "Failed(%d) to enable interrupts, fall back to polling.\n", 181 181 ret); 182 } else { 183 usb_log_debug("Hw interrupts enabled.\n"); 184 interrupts = true; 182 185 } 183 #endif184 186 185 187 instance->hc_fun = ddf_fun_create(device, fun_exposed, "uhci-hc"); 186 188 ret = (instance->hc_fun == NULL) ? ENOMEM : EOK; 187 CHECK_RET_DEST_FUN_RETURN(ret, "Failed(%d) to create HC function.\n", ret); 188 189 ret = uhci_hc_init( 190 &instance->hc, instance->hc_fun, (void*)io_reg_base, io_reg_size); 189 CHECK_RET_DEST_FUN_RETURN(ret, 190 "Failed(%d) to create HC function.\n", ret); 191 192 ret = uhci_hc_init(&instance->hc, instance->hc_fun, 193 (void*)io_reg_base, io_reg_size, interrupts); 191 194 CHECK_RET_DEST_FUN_RETURN(ret, "Failed(%d) to init uhci-hcd.\n", ret); 192 195 instance->hc_fun->ops = &uhci_hc_ops; … … 234 237 #undef CHECK_RET_FINI_RETURN 235 238 } 236 237 239 /** 238 240 * @}
Note:
See TracChangeset
for help on using the changeset viewer.