drm_fb_cma_helper.h 1.7 KB

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