Changeset 848e880f in mainline for uspace/lib
- Timestamp:
- 2018-06-10T19:30:53Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fe96085
- Parents:
- 121ee4fd
- Location:
- uspace/lib
- Files:
-
- 4 edited
-
c/generic/ddi.c (modified) (3 diffs)
-
c/include/ddi.h (modified) (1 diff)
-
virtio/virtio-pci.c (modified) (1 diff)
-
virtio/virtio-pci.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ddi.c
r121ee4fd r848e880f 224 224 * @param res Resources specifying the I/O range wrt. to the PIO window. 225 225 * @param[out] virt Virtual address for application's PIO operations. 226 * @param[out] phys If non-NULL, physical address of the resource 226 227 * @param[out] size If non-NULL, size of the enabled resource. 227 228 * … … 231 232 */ 232 233 errno_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) 234 235 { 235 236 uintptr_t addr; … … 259 260 } 260 261 262 if (phys) 263 *phys = addr; 261 264 if (size) 262 265 *size = sz; -
uspace/lib/c/include/ddi.h
r121ee4fd r848e880f 66 66 extern errno_t pio_enable_range(addr_range_t *, void **); 67 67 extern errno_t pio_enable_resource(pio_window_t *, hw_resource_t *, void **, 68 size_t *);68 uintptr_t *, size_t *); 69 69 extern errno_t pio_enable(void *, size_t, void **); 70 70 extern errno_t pio_disable(void *, size_t); -
uspace/lib/virtio/virtio-pci.c
r121ee4fd r848e880f 151 151 hw_resource_t *res = &hw_res.resources[j]; 152 152 rc = pio_enable_resource(&pio_window, res, 153 &vdev->bar[i].mapped_base, &vdev->bar[i].mapped_size); 153 &vdev->bar[i].mapped_base, &vdev->bar[i].phys_base, 154 &vdev->bar[i].mapped_size); 154 155 if (rc == EOK) 155 156 vdev->bar[i].mapped = true; -
uspace/lib/virtio/virtio-pci.h
r121ee4fd r848e880f 152 152 struct { 153 153 bool mapped; 154 uintptr_t phys_base; 154 155 void *mapped_base; 155 156 size_t mapped_size;
Note:
See TracChangeset
for help on using the changeset viewer.
