Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/res.c

    r5b89d43b r56fd7cf  
    4646 *
    4747 * @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.
    4950 * @param[out] irq_no IRQ assigned to the device.
    5051 * @return Error code.
    5152 */
    52 int get_my_registers(ddf_dev_t *dev, addr_range_t *io_regs_p, int *irq_no)
     53int get_my_registers(ddf_dev_t *dev,
     54    uintptr_t *io_reg_address, size_t *io_reg_size, int *irq_no)
    5355{
    5456        assert(dev);
     
    6264        hw_res_list_parsed_t hw_res;
    6365        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);
    6567        async_hangup(parent_sess);
    6668        if (ret != EOK) {
     
    7476        }
    7577
    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;
    7882        if (irq_no)
    7983                *irq_no = hw_res.irqs.irqs[0];
Note: See TracChangeset for help on using the changeset viewer.