diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-04-16 08:14:52 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-06-08 03:14:03 -0400 |
commit | 1c5aafa6eee2d5712f774676d407e5ab6dae9a1b (patch) | |
tree | 5cb8d947cca86c336977ad86a5e0f76eac0e0533 /include/drm | |
parent | 328a4719b6a0930721b5f8d5c69993d3b6e3913f (diff) |
drm/gem: Split drm_gem_mmap() into object search and object mapping
The drm_gem_mmap() function first finds the GEM object to be mapped
based on the fake mmap offset and then maps the object. Split the object
mapping code into a standalone drm_gem_mmap_obj() function that can be
used to implement dma-buf mmap() operations.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'include/drm')
-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 b06f5afe10ce..79fb4c7b6c72 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1616,6 +1616,8 @@ int drm_gem_private_object_init(struct drm_device *dev, | |||
1616 | void drm_gem_object_handle_free(struct drm_gem_object *obj); | 1616 | void drm_gem_object_handle_free(struct drm_gem_object *obj); |
1617 | void drm_gem_vm_open(struct vm_area_struct *vma); | 1617 | void drm_gem_vm_open(struct vm_area_struct *vma); |
1618 | void drm_gem_vm_close(struct vm_area_struct *vma); | 1618 | void drm_gem_vm_close(struct vm_area_struct *vma); |
1619 | int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size, | ||
1620 | struct vm_area_struct *vma); | ||
1619 | int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma); | 1621 | int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma); |
1620 | 1622 | ||
1621 | #include <drm/drm_global.h> | 1623 | #include <drm/drm_global.h> |