summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-04-09 09:18:44 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-21 19:12:22 +0900
commit493d0a4938882c948968a7e237664ea7de5acf4e (patch)
tree87804e40345029837fb2d6b4870c3ad8ddb6a714 /include
parent59f7058275c07ded236024dcc9e949c79e613e33 (diff)
downloadlinux-3.10-493d0a4938882c948968a7e237664ea7de5acf4e.tar.gz
linux-3.10-493d0a4938882c948968a7e237664ea7de5acf4e.tar.bz2
linux-3.10-493d0a4938882c948968a7e237664ea7de5acf4e.zip
drm: add unpin function to prime helpers
Prevents buffers from being pinned forever. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Conflicts: drivers/gpu/drm/drm_prime.c Change-Id: I220c7924a9b08a13646fcc43c80cd9c031dd2d79
Diffstat (limited to 'include')
-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 63d17ee9eb4..a6128a6513b 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -933,6 +933,7 @@ struct drm_driver {
struct dma_buf *dma_buf);
/* low-level interface used by drm_gem_prime_{import,export} */
int (*gem_prime_pin)(struct drm_gem_object *obj);
+ void (*gem_prime_unpin)(struct drm_gem_object *obj);
struct sg_table *(*gem_prime_get_sg_table)(struct drm_gem_object *obj);
struct drm_gem_object *(*gem_prime_import_sg_table)(
struct drm_device *dev, size_t size,