Thomas Gleixner | caab277 | 2019-06-03 07:44:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 2 | /* |
| 3 | * omap_fb.h -- OMAP DRM Framebuffer |
| 4 | * |
| 5 | * Copyright (C) 2011 Texas Instruments |
| 6 | * Author: Rob Clark <rob@ti.com> |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 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_mode_fb_cmd2 *mode_cmd); |
| 24 | struct drm_framebuffer *omap_framebuffer_init(struct drm_device *dev, |
| 25 | const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos); |
| 26 | int omap_framebuffer_pin(struct drm_framebuffer *fb); |
| 27 | void omap_framebuffer_unpin(struct drm_framebuffer *fb); |
| 28 | void omap_framebuffer_update_scanout(struct drm_framebuffer *fb, |
| 29 | struct drm_plane_state *state, struct omap_overlay_info *info); |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 30 | bool omap_framebuffer_supports_rotation(struct drm_framebuffer *fb); |
| 31 | void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m); |
| 32 | |
| 33 | #endif /* __OMAPDRM_FB_H__ */ |