Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/pci.c

    rea993d18 r17ceb72  
    4444#include "pci.h"
    4545
    46 /** Get I/O address of registers and IRQ for given device.
     46/** Get address of registers and IRQ for given device.
    4747 *
    4848 * @param[in] dev Device asking for the addresses.
     
    5353 */
    5454int 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)
    5657{
    5758        assert(dev != NULL);
    5859
    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);
    6162        if (parent_phone < 0) {
    6263                return parent_phone;
    6364        }
    6465
     66        int rc;
    6567        hw_resource_list_t hw_resources;
    66         int rc = hw_res_get_resource_list(parent_phone, &hw_resources);
     68        rc = hw_res_get_resource_list(parent_phone, &hw_resources);
    6769        if (rc != EOK) {
    6870                goto leave;
     
    9395                            res->res.io_range.address, res->res.io_range.size);
    9496                        io_found = true;
    95                         break;
    9697
    9798                default:
     
    112113leave:
    113114        async_hangup(parent_phone);
     115
    114116        return rc;
    115117}
     
    143145        }
    144146
    145         /* See UHCI design guide for these values p.45,
     147        /* See UHCI design guide for these values,
    146148         * write all WC bits in USB legacy register */
    147149        sysarg_t address = 0xc0;
Note: See TracChangeset for help on using the changeset viewer.