Changeset ea991e84 in mainline
- Timestamp:
- 2011-01-28T17:12:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1879a7d
- Parents:
- 7a51d75
- Location:
- uspace/drv/uhci
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/Makefile
r7a51d75 rea991e84 34 34 SOURCES = \ 35 35 main.c \ 36 pci.c \ 36 37 transfers.c 37 38 -
uspace/drv/uhci/main.c
r7a51d75 rea991e84 30 30 #include <usb/debug.h> 31 31 #include <errno.h> 32 #include <str_error.h> 32 33 #include <driver.h> 33 34 #include "uhci.h" … … 55 56 usb_dprintf(NAME, 1, "uhci_add_device() called\n"); 56 57 device->ops = &uhci_ops; 58 59 uintptr_t io_reg_base; 60 size_t io_reg_size; 61 int irq; 62 63 int rc = pci_get_my_registers(device, 64 &io_reg_base, &io_reg_size, &irq); 65 66 if (rc != EOK) { 67 fprintf(stderr, 68 NAME ": failed to get I/O registers addresses: %s.\n", 69 str_error(rc)); 70 return rc; 71 } 72 73 usb_dprintf(NAME, 2, "I/O regs at 0x%X (size %zu), IRQ %d.\n", 74 io_reg_base, io_reg_size, irq); 57 75 58 76 /* -
uspace/drv/uhci/uhci.h
r7a51d75 rea991e84 27 27 */ 28 28 29 /** @addtogroup usb29 /** @addtogroup drvusbuhci 30 30 * @{ 31 31 */ … … 42 42 usbhc_iface_t uhci_iface; 43 43 44 int pci_get_my_registers(device_t *, uintptr_t *, size_t *, int *); 45 44 46 #endif 45 47 /**
Note:
See TracChangeset
for help on using the changeset viewer.