diff options
author | Dave Airlie <airlied@redhat.com> | 2012-05-29 10:12:24 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-31 08:13:38 -0400 |
commit | 946c7491b37704016cdbba60915d1de2c79c3b57 (patch) | |
tree | b2bc462d55b2e81b21544fe47676b4642eca8d28 /drivers | |
parent | e1bbc4bff928ed152a1aef2a4b80a65eccc0ce63 (diff) |
radeon: add stub dma-buf mmap functionality
This just adds a stub until we have pieces in place to test
a correct one.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_prime.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_prime.c b/drivers/gpu/drm/radeon/radeon_prime.c index b8f835d8ecb4..37ff6bfb8c72 100644 --- 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 | |||
85 | 85 | ||
86 | } | 86 | } |
87 | 87 | ||
88 | static int radeon_gem_prime_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma) | ||
89 | { | ||
90 | return -EINVAL; | ||
91 | } | ||
92 | |||
88 | const static struct dma_buf_ops radeon_dmabuf_ops = { | 93 | const static struct dma_buf_ops radeon_dmabuf_ops = { |
89 | .map_dma_buf = radeon_gem_map_dma_buf, | 94 | .map_dma_buf = radeon_gem_map_dma_buf, |
90 | .unmap_dma_buf = radeon_gem_unmap_dma_buf, | 95 | .unmap_dma_buf = radeon_gem_unmap_dma_buf, |
@@ -93,6 +98,7 @@ const static struct dma_buf_ops radeon_dmabuf_ops = { | |||
93 | .kmap_atomic = radeon_gem_kmap_atomic, | 98 | .kmap_atomic = radeon_gem_kmap_atomic, |
94 | .kunmap = radeon_gem_kunmap, | 99 | .kunmap = radeon_gem_kunmap, |
95 | .kunmap_atomic = radeon_gem_kunmap_atomic, | 100 | .kunmap_atomic = radeon_gem_kunmap_atomic, |
101 | .mmap = radeon_gem_prime_mmap, | ||
96 | }; | 102 | }; |
97 | 103 | ||
98 | static int radeon_prime_create(struct drm_device *dev, | 104 | static int radeon_prime_create(struct drm_device *dev, |