summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2013-08-07 13:41:23 -0400
committerDave Airlie <airlied@redhat.com>2013-08-19 10:34:43 +1000
commit367bbd49202dd256dce1217c2f7cd0d5d1916f7b (patch)
tree945aeb6b78881d4567b1064182e38a9b1227cfb1 /include/drm
parent5833bd2fe1c7d9e2650a11a8785b848bbd0d0188 (diff)
downloadop-kernel-dev-367bbd49202dd256dce1217c2f7cd0d5d1916f7b.zip
op-kernel-dev-367bbd49202dd256dce1217c2f7cd0d5d1916f7b.tar.gz
drm/gem: add drm_gem_create_mmap_offset_size()
Variant of drm_gem_create_mmap_offset() which doesn't make the assumption that virtual size and physical size (obj->size) are the same. This is needed in omapdrm to deal with tiled buffers. And lets us get rid of a duplicated and slightly modified version of drm_gem_create_mmap_offset() in omapdrm. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 6a0918e..d6d9a28 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1614,6 +1614,7 @@ drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj)
void drm_gem_free_mmap_offset(struct drm_gem_object *obj);
int drm_gem_create_mmap_offset(struct drm_gem_object *obj);
+int drm_gem_create_mmap_offset_size(struct drm_gem_object *obj, size_t size);
struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev,
struct drm_file *filp,
OpenPOWER on IntegriCloud