drm_fb_cma_helper.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_fb_helper_surface_size;
  6. struct drm_framebuffer_funcs;
  7. struct drm_fb_helper_funcs;
  8. struct drm_framebuffer;
  9. struct drm_fb_helper;
  10. struct drm_device;
  11. struct drm_file;
  12. struct drm_mode_fb_cmd2;
  13. struct drm_fbdev_cma *drm_fbdev_cma_init_with_funcs(struct drm_device *dev,
  14. unsigned int preferred_bpp, unsigned int num_crtc,
  15. unsigned int max_conn_count, const struct drm_fb_helper_funcs *funcs);
  16. struct drm_fbdev_cma *drm_fbdev_cma_init(struct drm_device *dev,
  17. unsigned int preferred_bpp, unsigned int num_crtc,
  18. unsigned int max_conn_count);
  19. void drm_fbdev_cma_fini(struct drm_fbdev_cma *fbdev_cma);
  20. void drm_fbdev_cma_restore_mode(struct drm_fbdev_cma *fbdev_cma);
  21. void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma);
  22. void drm_fbdev_cma_set_suspend(struct drm_fbdev_cma *fbdev_cma, int state);
  23. int drm_fbdev_cma_create_with_funcs(struct drm_fb_helper *helper,
  24. struct drm_fb_helper_surface_size *sizes,
  25. const struct drm_framebuffer_funcs *funcs);
  26. void drm_fb_cma_destroy(struct drm_framebuffer *fb);
  27. int drm_fb_cma_create_handle(struct drm_framebuffer *fb,
  28. struct drm_file *file_priv, unsigned int *handle);
  29. struct drm_framebuffer *drm_fb_cma_create_with_funcs(struct drm_device *dev,
  30. struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd,
  31. const struct drm_framebuffer_funcs *funcs);
  32. struct drm_framebuffer *drm_fb_cma_create(struct drm_device *dev,
  33. struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd);
  34. struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
  35. unsigned int plane);
  36. #ifdef CONFIG_DEBUG_FS
  37. struct seq_file;
  38. int drm_fb_cma_debugfs_show(struct seq_file *m, void *arg);
  39. #endif
  40. #endif