blob: 4becb09975a457124489b9d6933b5e4829adc6b0 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +02002#ifndef __DRM_FB_CMA_HELPER_H__
3#define __DRM_FB_CMA_HELPER_H__
4
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +02005struct drm_framebuffer;
Marek Vasut196594e2016-11-15 11:55:29 +01006struct drm_plane_state;
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +02007
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +02008struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
9 unsigned int plane);
10
Yannick Fertre4636ce92017-04-14 12:13:32 +020011dma_addr_t drm_fb_cma_get_gem_addr(struct drm_framebuffer *fb,
12 struct drm_plane_state *state,
13 unsigned int plane);
14
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +020015#endif
16