diff options
author | 2013-02-17 01:57:30 +0100 | |
---|---|---|
committer | 2013-06-08 09:14:05 +0200 | |
commit | 71d7282a0f1abb488e5be4d154893579624bc683 (patch) | |
tree | 73b0d225ea22cec962cd543b1fc2ed22e3ebf7e9 /include/drm/drm_gem_cma_helper.h | |
parent | drm: GEM CMA: Split object mapping into GEM mapping and CMA mapping (diff) | |
download | linux-71d7282a0f1abb488e5be4d154893579624bc683.tar.gz linux-71d7282a0f1abb488e5be4d154893579624bc683.tar.bz2 linux-71d7282a0f1abb488e5be4d154893579624bc683.zip |
drm: GEM CMA: Add DRM PRIME support
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'include/drm/drm_gem_cma_helper.h')
-rw-r--r-- | include/drm/drm_gem_cma_helper.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/drm/drm_gem_cma_helper.h b/include/drm/drm_gem_cma_helper.h index 63397ced9254..6e17251e9b28 100644 --- a/include/drm/drm_gem_cma_helper.h +++ b/include/drm/drm_gem_cma_helper.h @@ -4,6 +4,9 @@ struct drm_gem_cma_object { struct drm_gem_object base; dma_addr_t paddr; + struct sg_table *sgt; + + /* For objects with DMA memory allocated by GEM CMA */ void *vaddr; }; @@ -45,4 +48,10 @@ extern const struct vm_operations_struct drm_gem_cma_vm_ops; void drm_gem_cma_describe(struct drm_gem_cma_object *obj, struct seq_file *m); #endif +struct dma_buf *drm_gem_cma_dmabuf_export(struct drm_device *drm_dev, + struct drm_gem_object *obj, + int flags); +struct drm_gem_object *drm_gem_cma_dmabuf_import(struct drm_device *drm_dev, + struct dma_buf *dma_buf); + #endif /* __DRM_GEM_CMA_HELPER_H__ */ |