projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1bbc4b
)
radeon: add stub dma-buf mmap functionality
author
Dave Airlie
<airlied@redhat.com>
Tue, 29 May 2012 14:12:24 +0000
(15:12 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 31 May 2012 12:13:38 +0000
(13:13 +0100)
This just adds a stub until we have pieces in place to test
a correct one.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_prime.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_prime.c
b/drivers/gpu/drm/radeon/radeon_prime.c
index b8f835d8ecb4127a2c4b8771e1b74859f0561c5d..37ff6bfb8c729d8cb4975fa6aa5a42e4b1cdf4d4 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_prime.c
+++ b/
drivers/gpu/drm/radeon/radeon_prime.c
@@
-85,6
+85,11
@@
static void radeon_gem_kunmap(struct dma_buf *dma_buf, unsigned long page_num, v
}
+static int radeon_gem_prime_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)
+{
+ return -EINVAL;
+}
+
const static struct dma_buf_ops radeon_dmabuf_ops = {
.map_dma_buf = radeon_gem_map_dma_buf,
.unmap_dma_buf = radeon_gem_unmap_dma_buf,
@@
-93,6
+98,7
@@
const static struct dma_buf_ops radeon_dmabuf_ops = {
.kmap_atomic = radeon_gem_kmap_atomic,
.kunmap = radeon_gem_kunmap,
.kunmap_atomic = radeon_gem_kunmap_atomic,
+ .mmap = radeon_gem_prime_mmap,
};
static int radeon_prime_create(struct drm_device *dev,