Changeset f1d16663 in mainline
- Timestamp:
- 2011-05-07T08:45:37Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bba0dc20
- Parents:
- 9350e837
- Location:
- uspace/drv/ohci
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hc.c
r9350e837 rf1d16663 49 49 static int interrupt_emulator(hc_t *instance); 50 50 static void hc_gain_control(hc_t *instance); 51 static void hc_init_hw(hc_t *instance);52 51 static int hc_init_transfer_lists(hc_t *instance); 53 52 static int hc_init_memory(hc_t *instance); … … 121 120 CHECK_RET_RETURN(ret, "Failed to create OHCI memory structures: %s.\n", 122 121 str_error(ret)); 123 hc_init_hw(instance);122 // hc_init_hw(instance); 124 123 fibril_mutex_initialize(&instance->guard); 125 124 … … 375 374 } 376 375 /*----------------------------------------------------------------------------*/ 377 void hc_ init_hw(hc_t *instance)376 void hc_start_hw(hc_t *instance) 378 377 { 379 378 /* OHCI guide page 42 */ -
uspace/drv/ohci/hc.h
r9350e837 rf1d16663 80 80 uintptr_t regs, size_t reg_size, bool interrupts); 81 81 82 void hc_start_hw(hc_t *instance); 83 82 84 /** Safely dispose host controller internal structures 83 85 * -
uspace/drv/ohci/main.c
r9350e837 rf1d16663 93 93 { 94 94 usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME); 95 sleep(5);96 95 return ddf_driver_main(&ohci_driver); 97 96 } -
uspace/drv/ohci/ohci.c
r9350e837 rf1d16663 152 152 usb_log_debug("Memory mapped regs at %p (size %zu), IRQ %d.\n", 153 153 (void *) mem_reg_base, mem_reg_size, irq); 154 155 ret = pci_disable_legacy(device);156 CHECK_RET_DEST_FUN_RETURN(ret,157 "Failed(%d) to disable legacy USB: %s.\n", ret, str_error(ret));158 154 159 155 bool interrupts = false; … … 220 216 "Failed(%d) to register OHCI root hub.\n", ret); 221 217 218 hc_start_hw(&instance->hc); 222 219 return EOK; 223 220 #undef CHECK_RET_FINI_RETURN -
uspace/drv/ohci/pci.c
r9350e837 rf1d16663 136 136 return enabled ? EOK : EIO; 137 137 } 138 /*----------------------------------------------------------------------------*/139 /** Implements BIOS handoff routine as decribed in OHCI spec140 *141 * @param[in] device Device asking for interrupts142 * @return Error code.143 */144 int pci_disable_legacy(ddf_dev_t *device)145 {146 /* TODO: implement */147 return EOK;148 }149 /*----------------------------------------------------------------------------*/150 138 /** 151 139 * @}
Note:
See TracChangeset
for help on using the changeset viewer.