aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/gem.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-02-07 18:45:55 +0100
committerThierry Reding <treding@nvidia.com>2018-03-08 14:38:30 +0100
commit04c0746663bd3ae3cce5e02d5b32c8ade2a833b8 (patch)
tree178b216a4bd526ff3080d1a8083ed6857ffeb760 /drivers/gpu/drm/tegra/gem.h
parentdrm/tegra: gem: Reshuffle declarations (diff)
downloadlinux-dev-04c0746663bd3ae3cce5e02d5b32c8ade2a833b8.tar.xz
linux-dev-04c0746663bd3ae3cce5e02d5b32c8ade2a833b8.zip
drm/tegra: gem: Make __tegra_gem_mmap() available more widely
This function allows mapping a GEM object into a virtual memory address space, which makes it useful outside of the GEM code. While at it, rename the function so it doesn't clash with the function that implements the DRM_TEGRA_GEM_MMAP IOCTL. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/gem.h')
-rw-r--r--drivers/gpu/drm/tegra/gem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/gem.h b/drivers/gpu/drm/tegra/gem.h
index 1fcf94dce45c..6bd7dd7e55b4 100644
--- a/drivers/gpu/drm/tegra/gem.h
+++ b/drivers/gpu/drm/tegra/gem.h
@@ -70,6 +70,7 @@ int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm,
extern const struct vm_operations_struct tegra_bo_vm_ops;
+int __tegra_gem_mmap(struct drm_gem_object *gem, struct vm_area_struct *vma);
int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma);
struct dma_buf *tegra_gem_prime_export(struct drm_device *drm,