Changes in uspace/drv/uhci-hcd/pci.c [ea993d18:17ceb72] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/pci.c
rea993d18 r17ceb72 44 44 #include "pci.h" 45 45 46 /** Get I/Oaddress of registers and IRQ for given device.46 /** Get address of registers and IRQ for given device. 47 47 * 48 48 * @param[in] dev Device asking for the addresses. … … 53 53 */ 54 54 int pci_get_my_registers(ddf_dev_t *dev, 55 uintptr_t *io_reg_address, size_t *io_reg_size, int *irq_no) 55 uintptr_t *io_reg_address, size_t *io_reg_size, 56 int *irq_no) 56 57 { 57 58 assert(dev != NULL); 58 59 59 int parent_phone = 60 devman_parent_device_connect(dev->handle,IPC_FLAG_BLOCKING);60 int parent_phone = devman_parent_device_connect(dev->handle, 61 IPC_FLAG_BLOCKING); 61 62 if (parent_phone < 0) { 62 63 return parent_phone; 63 64 } 64 65 66 int rc; 65 67 hw_resource_list_t hw_resources; 66 intrc = hw_res_get_resource_list(parent_phone, &hw_resources);68 rc = hw_res_get_resource_list(parent_phone, &hw_resources); 67 69 if (rc != EOK) { 68 70 goto leave; … … 93 95 res->res.io_range.address, res->res.io_range.size); 94 96 io_found = true; 95 break;96 97 97 98 default: … … 112 113 leave: 113 114 async_hangup(parent_phone); 115 114 116 return rc; 115 117 } … … 143 145 } 144 146 145 /* See UHCI design guide for these values p.45,147 /* See UHCI design guide for these values, 146 148 * write all WC bits in USB legacy register */ 147 149 sysarg_t address = 0xc0;
Note:
See TracChangeset
for help on using the changeset viewer.