1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __DRM_FB_DMA_HELPER_H__
3 #define __DRM_FB_DMA_HELPER_H__
4 
5 #include <linux/types.h>
6 
7 struct drm_device;
8 struct drm_framebuffer;
9 struct drm_plane;
10 struct drm_plane_state;
11 struct drm_scanout_buffer;
12 
13 struct drm_gem_dma_object *drm_fb_dma_get_gem_obj(struct drm_framebuffer *fb,
14 	unsigned int plane);
15 
16 dma_addr_t drm_fb_dma_get_gem_addr(struct drm_framebuffer *fb,
17 				   struct drm_plane_state *state,
18 				   unsigned int plane);
19 
20 void drm_fb_dma_sync_non_coherent(struct drm_device *drm,
21 				  struct drm_plane_state *old_state,
22 				  struct drm_plane_state *state);
23 
24 int drm_fb_dma_get_scanout_buffer(struct drm_plane *plane,
25 				  struct drm_scanout_buffer *sb);
26 
27 #endif
28 
29