1 #ifndef __DRM_GEM_FB_HELPER_H__
2 #define __DRM_GEM_FB_HELPER_H__
5 struct drm_fb_helper_surface_size
;
7 struct drm_framebuffer
;
8 struct drm_framebuffer_funcs
;
10 struct drm_mode_fb_cmd2
;
12 struct drm_plane_state
;
14 struct drm_gem_object
*drm_gem_fb_get_obj(struct drm_framebuffer
*fb
,
16 void drm_gem_fb_destroy(struct drm_framebuffer
*fb
);
17 int drm_gem_fb_create_handle(struct drm_framebuffer
*fb
, struct drm_file
*file
,
18 unsigned int *handle
);
20 struct drm_framebuffer
*
21 drm_gem_fb_create_with_funcs(struct drm_device
*dev
, struct drm_file
*file
,
22 const struct drm_mode_fb_cmd2
*mode_cmd
,
23 const struct drm_framebuffer_funcs
*funcs
);
24 struct drm_framebuffer
*
25 drm_gem_fb_create(struct drm_device
*dev
, struct drm_file
*file
,
26 const struct drm_mode_fb_cmd2
*mode_cmd
);
28 int drm_gem_fb_prepare_fb(struct drm_plane
*plane
,
29 struct drm_plane_state
*state
);
31 struct drm_framebuffer
*
32 drm_gem_fbdev_fb_create(struct drm_device
*dev
,
33 struct drm_fb_helper_surface_size
*sizes
,
34 unsigned int pitch_align
, struct drm_gem_object
*obj
,
35 const struct drm_framebuffer_funcs
*funcs
);