drm_gem_framebuffer_helper.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __DRM_GEM_FB_HELPER_H__
  2. #define __DRM_GEM_FB_HELPER_H__
  3. struct drm_device;
  4. struct drm_file;
  5. struct drm_fb_helper_surface_size;
  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_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb,
  13. unsigned int plane);
  14. void drm_gem_fb_destroy(struct drm_framebuffer *fb);
  15. int drm_gem_fb_create_handle(struct drm_framebuffer *fb, struct drm_file *file,
  16. unsigned int *handle);
  17. struct drm_framebuffer *
  18. drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file,
  19. const struct drm_mode_fb_cmd2 *mode_cmd,
  20. const struct drm_framebuffer_funcs *funcs);
  21. struct drm_framebuffer *
  22. drm_gem_fb_create(struct drm_device *dev, struct drm_file *file,
  23. const struct drm_mode_fb_cmd2 *mode_cmd);
  24. int drm_gem_fb_prepare_fb(struct drm_plane *plane,
  25. struct drm_plane_state *state);
  26. struct drm_framebuffer *
  27. drm_gem_fbdev_fb_create(struct drm_device *dev,
  28. struct drm_fb_helper_surface_size *sizes,
  29. unsigned int pitch_align, struct drm_gem_object *obj,
  30. const struct drm_framebuffer_funcs *funcs);
  31. #endif