drm_fb_cma_helper.h 874 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __DRM_FB_CMA_HELPER_H__
  2. #define __DRM_FB_CMA_HELPER_H__
  3. struct drm_fbdev_cma;
  4. struct drm_gem_cma_object;
  5. struct drm_framebuffer;
  6. struct drm_device;
  7. struct drm_file;
  8. struct drm_mode_fb_cmd2;
  9. struct drm_fbdev_cma *drm_fbdev_cma_init(struct drm_device *dev,
  10. unsigned int preferred_bpp, unsigned int num_crtc,
  11. unsigned int max_conn_count);
  12. void drm_fbdev_cma_fini(struct drm_fbdev_cma *fbdev_cma);
  13. void drm_fbdev_cma_restore_mode(struct drm_fbdev_cma *fbdev_cma);
  14. void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma);
  15. struct drm_framebuffer *drm_fb_cma_create(struct drm_device *dev,
  16. struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd);
  17. struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
  18. unsigned int plane);
  19. #ifdef CONFIG_DEBUG_FS
  20. int drm_fb_cma_debugfs_show(struct seq_file *m, void *arg);
  21. #endif
  22. #endif