diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2013-06-28 14:24:53 +0900 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-05 15:44:44 +1000 |
commit | 7c397cd97b8f46659698396b420bd48c3e6703e6 (patch) | |
tree | 9125dd69b151ae14c47fa4f3b9e11c27b626821a /include | |
parent | f9d8a1294d37449f3f1b842ffb275e2ca41f5cf4 (diff) | |
download | linux-stable-7c397cd97b8f46659698396b420bd48c3e6703e6.tar.gz linux-stable-7c397cd97b8f46659698396b420bd48c3e6703e6.tar.bz2 linux-stable-7c397cd97b8f46659698396b420bd48c3e6703e6.zip |
drm: add mmap function to prime helpers
This adds to call low-level mmap() from prime helpers.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 82670ac0d774..12083dc862a9 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -937,6 +937,8 @@ struct drm_driver { struct sg_table *sgt); void *(*gem_prime_vmap)(struct drm_gem_object *obj); void (*gem_prime_vunmap)(struct drm_gem_object *obj, void *vaddr); + int (*gem_prime_mmap)(struct drm_gem_object *obj, + struct vm_area_struct *vma); /* vga arb irq handler */ void (*vgaarb_irq)(struct drm_device *dev, bool state); |