Changeset 848e880f in mainline for uspace/lib/c/generic/ddi.c


Ignore:
Timestamp:
2018-06-10T19:30:53Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fe96085
Parents:
121ee4fd
Message:

Let pio_enable_resource return physical address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ddi.c

    r121ee4fd r848e880f  
    224224 * @param res        Resources specifying the I/O range wrt. to the PIO window.
    225225 * @param[out] virt  Virtual address for application's PIO operations.
     226 * @param[out] phys  If non-NULL, physical address of the resource
    226227 * @param[out] size  If non-NULL, size of the enabled resource.
    227228 *
     
    231232 */
    232233errno_t pio_enable_resource(pio_window_t *win, hw_resource_t *res, void **virt,
    233     size_t *size)
     234    uintptr_t *phys, size_t *size)
    234235{
    235236        uintptr_t addr;
     
    259260        }
    260261
     262        if (phys)
     263                *phys = addr;
    261264        if (size)
    262265                *size = sz;
Note: See TracChangeset for help on using the changeset viewer.