mirror of https://gitee.com/openkylin/linux.git
drm/exynos: add dummy support for dmabuf-mmap
This patch adds a stub function for DMABUF mmap. This allows to export a DMABUF. Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
parent
e25e1b6654
commit
b716d46e00
|
@ -163,6 +163,12 @@ static void exynos_gem_dmabuf_kunmap(struct dma_buf *dma_buf,
|
||||||
/* TODO */
|
/* TODO */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int exynos_gem_dmabuf_mmap(struct dma_buf *dma_buf,
|
||||||
|
struct vm_area_struct *vma)
|
||||||
|
{
|
||||||
|
return -ENOTTY;
|
||||||
|
}
|
||||||
|
|
||||||
static struct dma_buf_ops exynos_dmabuf_ops = {
|
static struct dma_buf_ops exynos_dmabuf_ops = {
|
||||||
.map_dma_buf = exynos_gem_map_dma_buf,
|
.map_dma_buf = exynos_gem_map_dma_buf,
|
||||||
.unmap_dma_buf = exynos_gem_unmap_dma_buf,
|
.unmap_dma_buf = exynos_gem_unmap_dma_buf,
|
||||||
|
@ -170,6 +176,7 @@ static struct dma_buf_ops exynos_dmabuf_ops = {
|
||||||
.kmap_atomic = exynos_gem_dmabuf_kmap_atomic,
|
.kmap_atomic = exynos_gem_dmabuf_kmap_atomic,
|
||||||
.kunmap = exynos_gem_dmabuf_kunmap,
|
.kunmap = exynos_gem_dmabuf_kunmap,
|
||||||
.kunmap_atomic = exynos_gem_dmabuf_kunmap_atomic,
|
.kunmap_atomic = exynos_gem_dmabuf_kunmap_atomic,
|
||||||
|
.mmap = exynos_gem_dmabuf_mmap,
|
||||||
.release = exynos_dmabuf_release,
|
.release = exynos_dmabuf_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue