]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2e3b3c42 LPC |
2 | #ifndef __DRM_FB_CMA_HELPER_H__ |
3 | #define __DRM_FB_CMA_HELPER_H__ | |
4 | ||
5 | struct drm_fbdev_cma; | |
6 | struct drm_gem_cma_object; | |
7 | ||
199c7717 NT |
8 | struct drm_fb_helper_surface_size; |
9 | struct drm_framebuffer_funcs; | |
10 | struct drm_fb_helper_funcs; | |
2e3b3c42 | 11 | struct drm_framebuffer; |
199c7717 | 12 | struct drm_fb_helper; |
2e3b3c42 LPC |
13 | struct drm_device; |
14 | struct drm_file; | |
15 | struct drm_mode_fb_cmd2; | |
196594ef MV |
16 | struct drm_plane; |
17 | struct drm_plane_state; | |
2e3b3c42 | 18 | |
199c7717 | 19 | struct drm_fbdev_cma *drm_fbdev_cma_init_with_funcs(struct drm_device *dev, |
e4563f6b GKB |
20 | unsigned int preferred_bpp, unsigned int max_conn_count, |
21 | const struct drm_framebuffer_funcs *funcs); | |
2e3b3c42 | 22 | struct drm_fbdev_cma *drm_fbdev_cma_init(struct drm_device *dev, |
e4563f6b | 23 | unsigned int preferred_bpp, unsigned int max_conn_count); |
2e3b3c42 LPC |
24 | void drm_fbdev_cma_fini(struct drm_fbdev_cma *fbdev_cma); |
25 | ||
26 | void drm_fbdev_cma_restore_mode(struct drm_fbdev_cma *fbdev_cma); | |
27 | void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma); | |
d0a29878 | 28 | void drm_fbdev_cma_set_suspend(struct drm_fbdev_cma *fbdev_cma, bool state); |
a4405b56 | 29 | void drm_fbdev_cma_set_suspend_unlocked(struct drm_fbdev_cma *fbdev_cma, |
d0a29878 | 30 | bool state); |
199c7717 | 31 | |
2e3b3c42 LPC |
32 | struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb, |
33 | unsigned int plane); | |
34 | ||
4636ce93 YF |
35 | dma_addr_t drm_fb_cma_get_gem_addr(struct drm_framebuffer *fb, |
36 | struct drm_plane_state *state, | |
37 | unsigned int plane); | |
38 | ||
6f646095 | 39 | #ifdef CONFIG_DEBUG_FS |
80588a86 MR |
40 | struct seq_file; |
41 | ||
6f646095 RC |
42 | int drm_fb_cma_debugfs_show(struct seq_file *m, void *arg); |
43 | #endif | |
44 | ||
2e3b3c42 LPC |
45 | #endif |
46 |