xref: /linux/drivers/gpu/drm/omapdrm/omap_fb.h (revision 260f6f4fda93c8485c8037865c941b42b9cba5d2)
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_gem_object;
17 struct drm_mode_fb_cmd2;
18 struct drm_plane_state;
19 struct omap_overlay_info;
20 struct seq_file;
21 
22 struct drm_framebuffer *omap_framebuffer_create(struct drm_device *dev,
23 		struct drm_file *file, const struct drm_format_info *info,
24 		const struct drm_mode_fb_cmd2 *mode_cmd);
25 struct drm_framebuffer *omap_framebuffer_init(struct drm_device *dev,
26 		const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
27 int omap_framebuffer_pin(struct drm_framebuffer *fb);
28 void omap_framebuffer_unpin(struct drm_framebuffer *fb);
29 void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
30 		struct drm_plane_state *state,
31 		struct omap_overlay_info *info,
32 		struct omap_overlay_info *r_info);
33 bool omap_framebuffer_supports_rotation(struct drm_framebuffer *fb);
34 void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m);
35 
36 #endif /* __OMAPDRM_FB_H__ */
37