diff options
author | Dave Airlie <airlied@redhat.com> | 2012-05-29 10:11:55 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-31 08:13:37 -0400 |
commit | e1bbc4bff928ed152a1aef2a4b80a65eccc0ce63 (patch) | |
tree | b9642c7a07ad6e179737399836c720208be8a596 /drivers | |
parent | 2dad9d4d057a080a4ad59c705b3e388af6794576 (diff) |
nouveau: add stub dma-buf mmap functionality.
This just adds a stub until we have some users in place to test
this with.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_prime.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_prime.c b/drivers/gpu/drm/nouveau/nouveau_prime.c index c58aab7370c5..e2bcd4e54654 100644 --- 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, | |||
61 | 61 | ||
62 | } | 62 | } |
63 | 63 | ||
64 | static int nouveau_gem_prime_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma) | ||
65 | { | ||
66 | return -EINVAL; | ||
67 | } | ||
68 | |||
64 | static const struct dma_buf_ops nouveau_dmabuf_ops = { | 69 | static const struct dma_buf_ops nouveau_dmabuf_ops = { |
65 | .map_dma_buf = nouveau_gem_map_dma_buf, | 70 | .map_dma_buf = nouveau_gem_map_dma_buf, |
66 | .unmap_dma_buf = nouveau_gem_unmap_dma_buf, | 71 | .unmap_dma_buf = nouveau_gem_unmap_dma_buf, |
@@ -69,6 +74,7 @@ static const struct dma_buf_ops nouveau_dmabuf_ops = { | |||
69 | .kmap_atomic = nouveau_gem_kmap_atomic, | 74 | .kmap_atomic = nouveau_gem_kmap_atomic, |
70 | .kunmap = nouveau_gem_kunmap, | 75 | .kunmap = nouveau_gem_kunmap, |
71 | .kunmap_atomic = nouveau_gem_kunmap_atomic, | 76 | .kunmap_atomic = nouveau_gem_kunmap_atomic, |
77 | .mmap = nouveau_gem_prime_mmap, | ||
72 | }; | 78 | }; |
73 | 79 | ||
74 | static int | 80 | static int |