aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYannick Fertre <[email protected]>2017-04-14 12:13:32 +0200
committerEric Anholt <[email protected]>2017-04-14 11:30:28 -0700
commit4636ce93d5b25632c2cdbeccebef912e1c990c8e (patch)
tree02a2a10c7d75c18b3092e0867fc522eb3152a70f /include
parent97bf3a9aa60f0d25541738feeb28e39decc41b76 (diff)
drm/fb-cma-helper: Add drm_fb_cma_get_gem_addr()
Add function drm_fb_cma_get_gem_addr() which return the physical address of framebuffer (1st pixel). This function will usually be called by plane callback (atomic_update). Signed-off-by: Yannick Fertre <[email protected]> Signed-off-by: Eric Anholt <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Neil Armstrong <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_fb_cma_helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_fb_cma_helper.h b/include/drm/drm_fb_cma_helper.h
index a5ecc0a58260..199a63f48659 100644
--- a/include/drm/drm_fb_cma_helper.h
+++ b/include/drm/drm_fb_cma_helper.h
@@ -41,6 +41,10 @@ struct drm_framebuffer *drm_fb_cma_create(struct drm_device *dev,
struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
unsigned int plane);
+dma_addr_t drm_fb_cma_get_gem_addr(struct drm_framebuffer *fb,
+ struct drm_plane_state *state,
+ unsigned int plane);
+
int drm_fb_cma_prepare_fb(struct drm_plane *plane,
struct drm_plane_state *state);