diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-04-09 03:18:44 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-10 17:51:11 -0400 |
commit | 102d6dba306c825cd5c310f73868b130931f47aa (patch) | |
tree | 75346aaa4f291511fa64a94132813678f9cefd09 /include/drm/drmP.h | |
parent | 328a4719b6a0930721b5f8d5c69993d3b6e3913f (diff) |
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>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index b06f5afe10ce..57f60a743da0 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -930,6 +930,7 @@ struct drm_driver { | |||
930 | struct dma_buf *dma_buf); | 930 | struct dma_buf *dma_buf); |
931 | /* low-level interface used by drm_gem_prime_{import,export} */ | 931 | /* low-level interface used by drm_gem_prime_{import,export} */ |
932 | int (*gem_prime_pin)(struct drm_gem_object *obj); | 932 | int (*gem_prime_pin)(struct drm_gem_object *obj); |
933 | void (*gem_prime_unpin)(struct drm_gem_object *obj); | ||
933 | struct sg_table *(*gem_prime_get_sg_table)(struct drm_gem_object *obj); | 934 | struct sg_table *(*gem_prime_get_sg_table)(struct drm_gem_object *obj); |
934 | struct drm_gem_object *(*gem_prime_import_sg_table)( | 935 | struct drm_gem_object *(*gem_prime_import_sg_table)( |
935 | struct drm_device *dev, size_t size, | 936 | struct drm_device *dev, size_t size, |