Changes in uspace/drv/bus/usb/uhci/res.c [5b89d43b:56fd7cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/res.c
r5b89d43b r56fd7cf 46 46 * 47 47 * @param[in] dev Device asking for the addresses. 48 * @param[out] io_regs_p Pointer to register I/O range. 48 * @param[out] io_reg_address Base address of the I/O range. 49 * @param[out] io_reg_size Size of the I/O range. 49 50 * @param[out] irq_no IRQ assigned to the device. 50 51 * @return Error code. 51 52 */ 52 int get_my_registers(ddf_dev_t *dev, addr_range_t *io_regs_p, int *irq_no) 53 int get_my_registers(ddf_dev_t *dev, 54 uintptr_t *io_reg_address, size_t *io_reg_size, int *irq_no) 53 55 { 54 56 assert(dev); … … 62 64 hw_res_list_parsed_t hw_res; 63 65 hw_res_list_parsed_init(&hw_res); 64 const int ret = hw_res_get_list_parsed(parent_sess, &hw_res, 0);66 const int ret = hw_res_get_list_parsed(parent_sess, &hw_res, 0); 65 67 async_hangup(parent_sess); 66 68 if (ret != EOK) { … … 74 76 } 75 77 76 if (io_regs_p) 77 *io_regs_p = hw_res.io_ranges.ranges[0]; 78 if (io_reg_address) 79 *io_reg_address = hw_res.io_ranges.ranges[0].address; 80 if (io_reg_size) 81 *io_reg_size = hw_res.io_ranges.ranges[0].size; 78 82 if (irq_no) 79 83 *irq_no = hw_res.irqs.irqs[0];
Note:
See TracChangeset
for help on using the changeset viewer.