diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2013-06-28 14:24:53 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-21 19:12:23 +0900 |
commit | 409dab234bc53888679581a0df968638f3ff90ba (patch) | |
tree | 2b138611d81848e6c65539780c934a6356b83f7e /include | |
parent | 8423b4dac06cd2f2e12601af7cf9af1c6edd7022 (diff) | |
download | linux-3.10-409dab234bc53888679581a0df968638f3ff90ba.tar.gz linux-3.10-409dab234bc53888679581a0df968638f3ff90ba.tar.bz2 linux-3.10-409dab234bc53888679581a0df968638f3ff90ba.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 a6128a6513b..c3f97ada401 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -940,6 +940,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); |