drm_gem_framebuffer_helper.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __DRM_GEM_FB_HELPER_H__
  2. #define __DRM_GEM_FB_HELPER_H__
  3. struct drm_device;
  4. struct drm_fb_helper_surface_size;
  5. struct drm_file;
  6. struct drm_framebuffer;
  7. struct drm_framebuffer_funcs;
  8. struct drm_gem_object;
  9. struct drm_mode_fb_cmd2;
  10. struct drm_plane;
  11. struct drm_plane_state;
  12. struct drm_simple_display_pipe;
  13. struct drm_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb,
  14. unsigned int plane);
  15. void drm_gem_fb_destroy(struct drm_framebuffer *fb);
  16. int drm_gem_fb_create_handle(struct drm_framebuffer *fb, struct drm_file *file,
  17. unsigned int *handle);
  18. struct drm_framebuffer *
  19. drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file,
  20. const struct drm_mode_fb_cmd2 *mode_cmd,
  21. const struct drm_framebuffer_funcs *funcs);
  22. struct drm_framebuffer *
  23. drm_gem_fb_create(struct drm_device *dev, struct drm_file *file,
  24. const struct drm_mode_fb_cmd2 *mode_cmd);
  25. int drm_gem_fb_prepare_fb(struct drm_plane *plane,
  26. struct drm_plane_state *state);
  27. int drm_gem_fb_simple_display_pipe_prepare_fb(struct drm_simple_display_pipe *pipe,
  28. struct drm_plane_state *plane_state);
  29. struct drm_framebuffer *
  30. drm_gem_fbdev_fb_create(struct drm_device *dev,
  31. struct drm_fb_helper_surface_size *sizes,
  32. unsigned int pitch_align, struct drm_gem_object *obj,
  33. const struct drm_framebuffer_funcs *funcs);
  34. #endif