Changeset bba0dc20 in mainline
- Timestamp:
- 2011-05-07T10:25:36Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5d07f54
- Parents:
- f1d16663
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hc.c
rf1d16663 rbba0dc20 110 110 ret, str_error(ret)); 111 111 112 list_initialize(&instance->pending_batches); 112 113 usb_device_keeper_init(&instance->manager); 113 114 ret = usb_endpoint_manager_init(&instance->ep_manager, … … 116 117 str_error(ret)); 117 118 118 hc_gain_control(instance);119 119 ret = hc_init_memory(instance); 120 120 CHECK_RET_RETURN(ret, "Failed to create OHCI memory structures: %s.\n", 121 121 str_error(ret)); 122 #undef CHECK_RET_RETURN 123 124 122 125 // hc_init_hw(instance); 126 hc_gain_control(instance); 123 127 fibril_mutex_initialize(&instance->guard); 124 128 … … 131 135 } 132 136 133 list_initialize(&instance->pending_batches);134 #undef CHECK_RET_RETURN135 137 return EOK; 136 138 } … … 338 340 (uint32_t*)((char*)instance->registers + 0x100); 339 341 usb_log_debug("OHCI legacy register %p: %x.\n", 340 ohci_emulation_reg, *ohci_emulation_reg); 341 *ohci_emulation_reg &= ~0x1; 342 ohci_emulation_reg, *ohci_emulation_reg); 343 /* Do not change A20 state */ 344 *ohci_emulation_reg &= 0x100; 345 usb_log_debug("OHCI legacy register %p: %x.\n", 346 ohci_emulation_reg, *ohci_emulation_reg); 342 347 343 348 /* Interrupt routing enabled => smm driver is active */
Note:
See TracChangeset
for help on using the changeset viewer.