Changeset 4687fcd4 in mainline for uspace/drv/uhci/main.c
- Timestamp:
- 2011-01-29T10:19:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 72e19f50
- Parents:
- 67a1b78 (diff), a09128c (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/main.c
r67a1b78 r4687fcd4 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 #include <driver.h> 29 #include <errno.h> 30 #include <str_error.h> 28 31 #include <usb_iface.h> 29 #include <errno.h>30 32 31 33 #include "debug.h" … … 57 59 device->ops = &uhci_ops; 58 60 59 // TODO: get this value out of pci driver 60 return uhci_init(device, (void*)0xc020); 61 uintptr_t io_reg_base; 62 size_t io_reg_size; 63 int irq; 64 65 int rc = pci_get_my_registers(device, 66 &io_reg_base, &io_reg_size, &irq); 67 68 if (rc != EOK) { 69 uhci_print_fatal("failed to get I/O registers addresses: %s.\n", 70 str_error(rc)); 71 return rc; 72 } 73 74 uhci_print_info("I/O regs at 0x%X (size %zu), IRQ %d.\n", 75 io_reg_base, io_reg_size, irq); 76 77 return uhci_init(device, (void*)io_reg_base, io_reg_size); 61 78 } 62 79
Note:
See TracChangeset
for help on using the changeset viewer.