diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2018-11-10 15:56:44 +0100 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2018-11-20 14:54:53 +0100 |
commit | 7698799f9554deeb0f3abb22857c3deb41c10db8 (patch) | |
tree | e2c6d1d4e3342694a61d1d47651b4d69c72d8976 /include/drm/drm_prime.h | |
parent | drm/driver: Add defaults for .gem_prime_export/import callbacks (diff) | |
download | linux-7698799f9554deeb0f3abb22857c3deb41c10db8.tar.xz linux-7698799f9554deeb0f3abb22857c3deb41c10db8.zip |
drm/prime: Add drm_gem_prime_mmap()
Add a generic PRIME GEM mmap function.
v2: Fix link in docs (Daniel Vetter)
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181110145647.17580-3-noralf@tronnes.org
Diffstat (limited to '')
-rw-r--r-- | include/drm/drm_prime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_prime.h b/include/drm/drm_prime.h index e2032fbc0f08..b03731a3f079 100644 --- a/include/drm/drm_prime.h +++ b/include/drm/drm_prime.h @@ -70,6 +70,7 @@ struct dma_buf *drm_gem_prime_export(struct drm_device *dev, int drm_gem_prime_handle_to_fd(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd); +int drm_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma); struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf); |