aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2015-06-19 09:52:29 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-06-19 11:50:05 -0400
commitffc5fbdb77e125a5923e3c0ba3fe465b1ebb2c54 (patch)
tree2dd1c6117033889e8b4c5609159fc2cedbff76a7
parentafcd950cafea6e27b739fe7772cbbeed37d05b8b (diff)
drm: prime: Document gem_prime_mmap
gem_prime_map is not currently described in the DRM manual, lets document it. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/drm_prime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c
index 162dd29b2451..9f935f55d74c 100644
--- a/drivers/gpu/drm/drm_prime.c
+++ b/drivers/gpu/drm/drm_prime.c
@@ -309,7 +309,7 @@ static const struct dma_buf_ops drm_gem_prime_dmabuf_ops = {
309 * Drivers can implement @gem_prime_export and @gem_prime_import in terms of 309 * Drivers can implement @gem_prime_export and @gem_prime_import in terms of
310 * simpler APIs by using the helper functions @drm_gem_prime_export and 310 * simpler APIs by using the helper functions @drm_gem_prime_export and
311 * @drm_gem_prime_import. These functions implement dma-buf support in terms of 311 * @drm_gem_prime_import. These functions implement dma-buf support in terms of
312 * five lower-level driver callbacks: 312 * six lower-level driver callbacks:
313 * 313 *
314 * Export callbacks: 314 * Export callbacks:
315 * 315 *
@@ -321,6 +321,8 @@ static const struct dma_buf_ops drm_gem_prime_dmabuf_ops = {
321 * 321 *
322 * - @gem_prime_vunmap: vunmap a buffer exported by your driver 322 * - @gem_prime_vunmap: vunmap a buffer exported by your driver
323 * 323 *
324 * - @gem_prime_mmap (optional): mmap a buffer exported by your driver
325 *
324 * Import callback: 326 * Import callback:
325 * 327 *
326 * - @gem_prime_import_sg_table (import): produce a GEM object from another 328 * - @gem_prime_import_sg_table (import): produce a GEM object from another