xref: /linux/drivers/gpu/drm/omapdrm/omap_fb.h (revision 0ef5c4e4dbbfcebaa9b2eca18097b43016727dfe)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * omap_fb.h -- OMAP DRM Framebuffer
4  *
5  * Copyright (C) 2011 Texas Instruments
6  * Author: Rob Clark <rob@ti.com>
7  */
8 
9 #ifndef __OMAPDRM_FB_H__
10 #define __OMAPDRM_FB_H__
11 
12 struct drm_connector;
13 struct drm_device;
14 struct drm_file;
15 struct drm_framebuffer;
16 struct drm_format_info;
17 struct drm_gem_object;
18 struct drm_mode_fb_cmd2;
19 struct drm_plane_state;
20 struct omap_overlay_info;
21 struct seq_file;
22 
23 struct drm_framebuffer *omap_framebuffer_create(struct drm_device *dev,
24 		struct drm_file *file, const struct drm_format_info *info,
25 		const struct drm_mode_fb_cmd2 *mode_cmd);
26 struct drm_framebuffer *omap_framebuffer_init(struct drm_device *dev,
27 		const struct drm_format_info *info,
28 		const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
29 int omap_framebuffer_pin(struct drm_framebuffer *fb);
30 void omap_framebuffer_unpin(struct drm_framebuffer *fb);
31 void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
32 		struct drm_plane_state *state,
33 		struct omap_overlay_info *info,
34 		struct omap_overlay_info *r_info);
35 bool omap_framebuffer_supports_rotation(struct drm_framebuffer *fb);
36 void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m);
37 
38 #endif /* __OMAPDRM_FB_H__ */
39