Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Lars-Peter Clausen | 2e3b3c4 | 2012-07-02 16:37:47 +0200 | [diff] [blame] | 2 | #ifndef __DRM_FB_CMA_HELPER_H__ |
| 3 | #define __DRM_FB_CMA_HELPER_H__ |
| 4 | |
Benjamin Gaignard | 9d10fc2 | 2019-11-19 11:57:53 +0100 | [diff] [blame] | 5 | #include <linux/types.h> |
| 6 | |
Lars-Peter Clausen | 2e3b3c4 | 2012-07-02 16:37:47 +0200 | [diff] [blame] | 7 | struct drm_framebuffer; |
Marek Vasut | 196594e | 2016-11-15 11:55:29 +0100 | [diff] [blame] | 8 | struct drm_plane_state; |
Lars-Peter Clausen | 2e3b3c4 | 2012-07-02 16:37:47 +0200 | [diff] [blame] | 9 | |
Lars-Peter Clausen | 2e3b3c4 | 2012-07-02 16:37:47 +0200 | [diff] [blame] | 10 | struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb, |
| 11 | unsigned int plane); |
| 12 | |
Yannick Fertre | 4636ce9 | 2017-04-14 12:13:32 +0200 | [diff] [blame] | 13 | dma_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 Clausen | 2e3b3c4 | 2012-07-02 16:37:47 +0200 | [diff] [blame] | 17 | #endif |
| 18 | |