.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Tegra host1x GEM implementation |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2012-2013, NVIDIA Corporation. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | #ifndef __HOST1X_GEM_H |
---|
.. | .. |
---|
14 | 11 | #include <linux/host1x.h> |
---|
15 | 12 | |
---|
16 | 13 | #include <drm/drm.h> |
---|
17 | | -#include <drm/drmP.h> |
---|
18 | 14 | #include <drm/drm_gem.h> |
---|
19 | 15 | |
---|
20 | 16 | #define TEGRA_BO_BOTTOM_UP (1 << 0) |
---|
.. | .. |
---|
35 | 31 | struct host1x_bo base; |
---|
36 | 32 | unsigned long flags; |
---|
37 | 33 | struct sg_table *sgt; |
---|
38 | | - dma_addr_t paddr; |
---|
| 34 | + dma_addr_t iova; |
---|
39 | 35 | void *vaddr; |
---|
40 | 36 | |
---|
41 | 37 | struct drm_mm_node *mm; |
---|
.. | .. |
---|
73 | 69 | int __tegra_gem_mmap(struct drm_gem_object *gem, struct vm_area_struct *vma); |
---|
74 | 70 | int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma); |
---|
75 | 71 | |
---|
76 | | -struct dma_buf *tegra_gem_prime_export(struct drm_device *drm, |
---|
77 | | - struct drm_gem_object *gem, |
---|
| 72 | +struct dma_buf *tegra_gem_prime_export(struct drm_gem_object *gem, |
---|
78 | 73 | int flags); |
---|
79 | 74 | struct drm_gem_object *tegra_gem_prime_import(struct drm_device *drm, |
---|
80 | 75 | struct dma_buf *buf); |
---|