Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __DRM_FB_CMA_HELPER_H__
3#define __DRM_FB_CMA_HELPER_H__
4
5struct drm_fbdev_cma;
6struct drm_gem_cma_object;
7
8struct drm_fb_helper_surface_size;
9struct drm_framebuffer_funcs;
10struct drm_fb_helper_funcs;
11struct drm_framebuffer;
12struct drm_fb_helper;
13struct drm_device;
14struct drm_file;
15struct drm_mode_fb_cmd2;
16struct drm_plane;
17struct drm_plane_state;
18
19int drm_fb_cma_fbdev_init(struct drm_device *dev, unsigned int preferred_bpp,
20 unsigned int max_conn_count);
21void drm_fb_cma_fbdev_fini(struct drm_device *dev);
22
23struct drm_fbdev_cma *drm_fbdev_cma_init(struct drm_device *dev,
24 unsigned int preferred_bpp, unsigned int max_conn_count);
25void drm_fbdev_cma_fini(struct drm_fbdev_cma *fbdev_cma);
26
27void drm_fbdev_cma_restore_mode(struct drm_fbdev_cma *fbdev_cma);
28void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma);
29void drm_fbdev_cma_set_suspend_unlocked(struct drm_fbdev_cma *fbdev_cma,
30 bool state);
31
32struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
33 unsigned int plane);
34
35dma_addr_t drm_fb_cma_get_gem_addr(struct drm_framebuffer *fb,
36 struct drm_plane_state *state,
37 unsigned int plane);
38
39#endif
40