Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __DRM_FB_CMA_HELPER_H__
0003 #define __DRM_FB_CMA_HELPER_H__
0004 
0005 #include <linux/types.h>
0006 
0007 struct drm_device;
0008 struct drm_framebuffer;
0009 struct drm_plane_state;
0010 
0011 struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
0012     unsigned int plane);
0013 
0014 dma_addr_t drm_fb_cma_get_gem_addr(struct drm_framebuffer *fb,
0015                    struct drm_plane_state *state,
0016                    unsigned int plane);
0017 
0018 void drm_fb_cma_sync_non_coherent(struct drm_device *drm,
0019                   struct drm_plane_state *old_state,
0020                   struct drm_plane_state *state);
0021 
0022 #endif
0023