aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_gem_cma_helper.h
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-01-09 05:03:14 -0500
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-09-30 08:04:00 -0400
commitb5e9c1a25fcf8a0d664606251a53b5caa6a19d08 (patch)
tree5cb0d5645e575253779965ecf326b578fa1ce9ca /include/drm/drm_gem_cma_helper.h
parent15a996bbb6978ae21c497aeadfe20deca6ddd07a (diff)
drm: Pass dma-buf as argument to gem_prime_import_sg_table
Allows importing dma_reservation_objects from a dma-buf. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'include/drm/drm_gem_cma_helper.h')
-rw-r--r--include/drm/drm_gem_cma_helper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_gem_cma_helper.h b/include/drm/drm_gem_cma_helper.h
index 42f11f3a8d39..2ff35f3de9c5 100644
--- a/include/drm/drm_gem_cma_helper.h
+++ b/include/drm/drm_gem_cma_helper.h
@@ -45,7 +45,8 @@ void drm_gem_cma_describe(struct drm_gem_cma_object *obj, struct seq_file *m);
45 45
46struct sg_table *drm_gem_cma_prime_get_sg_table(struct drm_gem_object *obj); 46struct sg_table *drm_gem_cma_prime_get_sg_table(struct drm_gem_object *obj);
47struct drm_gem_object * 47struct drm_gem_object *
48drm_gem_cma_prime_import_sg_table(struct drm_device *dev, size_t size, 48drm_gem_cma_prime_import_sg_table(struct drm_device *dev,
49 struct dma_buf_attachment *attach,
49 struct sg_table *sgt); 50 struct sg_table *sgt);
50int drm_gem_cma_prime_mmap(struct drm_gem_object *obj, 51int drm_gem_cma_prime_mmap(struct drm_gem_object *obj,
51 struct vm_area_struct *vma); 52 struct vm_area_struct *vma);