blob: 795aea1d0a25803a1a0fae67c115cb3a6ab171bf [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
Benjamin Gaignard9d10fc22019-11-19 11:57:53 +01005#include <linux/types.h>
6
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +02007struct drm_framebuffer;
Marek Vasut196594e2016-11-15 11:55:29 +01008struct drm_plane_state;
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +02009
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +020010struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
11 unsigned int plane);
12
Yannick Fertre4636ce92017-04-14 12:13:32 +020013dma_addr_t drm_fb_cma_get_gem_addr(struct drm_framebuffer *fb,
14 struct drm_plane_state *state,
15 unsigned int plane);
16
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +020017#endif
18