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