projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dad9d4
)
nouveau: add stub dma-buf mmap functionality.
author
Dave Airlie
<airlied@redhat.com>
Tue, 29 May 2012 14:11:55 +0000
(15:11 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 31 May 2012 12:13:37 +0000
(13:13 +0100)
This just adds a stub until we have some users in place to test
this with.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_prime.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_prime.c
b/drivers/gpu/drm/nouveau/nouveau_prime.c
index c58aab7370c575949a41113014120b252548169c..e2bcd4e54654c24e7edfbcd11cbabb650f247eb4 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_prime.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_prime.c
@@
-61,6
+61,11
@@
static void nouveau_gem_kunmap(struct dma_buf *dma_buf, unsigned long page_num,
}
+static int nouveau_gem_prime_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)
+{
+ return -EINVAL;
+}
+
static const struct dma_buf_ops nouveau_dmabuf_ops = {
.map_dma_buf = nouveau_gem_map_dma_buf,
.unmap_dma_buf = nouveau_gem_unmap_dma_buf,
@@
-69,6
+74,7
@@
static const struct dma_buf_ops nouveau_dmabuf_ops = {
.kmap_atomic = nouveau_gem_kmap_atomic,
.kunmap = nouveau_gem_kunmap,
.kunmap_atomic = nouveau_gem_kunmap_atomic,
+ .mmap = nouveau_gem_prime_mmap,
};
static int