drm_fb_dma_helper.h 575 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __DRM_FB_DMA_HELPER_H__
  3. #define __DRM_FB_DMA_HELPER_H__
  4. #include <linux/types.h>
  5. struct drm_device;
  6. struct drm_framebuffer;
  7. struct drm_plane_state;
  8. struct drm_gem_dma_object *drm_fb_dma_get_gem_obj(struct drm_framebuffer *fb,
  9. unsigned int plane);
  10. dma_addr_t drm_fb_dma_get_gem_addr(struct drm_framebuffer *fb,
  11. struct drm_plane_state *state,
  12. unsigned int plane);
  13. void drm_fb_dma_sync_non_coherent(struct drm_device *drm,
  14. struct drm_plane_state *old_state,
  15. struct drm_plane_state *state);
  16. #endif