]>
Commit | Line | Data |
---|---|---|
2e3b3c42 LPC |
1 | #ifndef __DRM_FB_CMA_HELPER_H__ |
2 | #define __DRM_FB_CMA_HELPER_H__ | |
3 | ||
4 | struct drm_fbdev_cma; | |
5 | struct drm_gem_cma_object; | |
6 | ||
199c7717 NT |
7 | struct drm_fb_helper_surface_size; |
8 | struct drm_framebuffer_funcs; | |
9 | struct drm_fb_helper_funcs; | |
2e3b3c42 | 10 | struct drm_framebuffer; |
199c7717 | 11 | struct drm_fb_helper; |
2e3b3c42 LPC |
12 | struct drm_device; |
13 | struct drm_file; | |
14 | struct drm_mode_fb_cmd2; | |
196594ef MV |
15 | struct drm_plane; |
16 | struct drm_plane_state; | |
2e3b3c42 | 17 | |
199c7717 NT |
18 | struct drm_fbdev_cma *drm_fbdev_cma_init_with_funcs(struct drm_device *dev, |
19 | unsigned int preferred_bpp, unsigned int num_crtc, | |
20 | unsigned int max_conn_count, const struct drm_fb_helper_funcs *funcs); | |
2e3b3c42 LPC |
21 | struct drm_fbdev_cma *drm_fbdev_cma_init(struct drm_device *dev, |
22 | unsigned int preferred_bpp, unsigned int num_crtc, | |
23 | unsigned int max_conn_count); | |
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); | |
917f4253 | 28 | void drm_fbdev_cma_set_suspend(struct drm_fbdev_cma *fbdev_cma, int state); |
199c7717 NT |
29 | int drm_fbdev_cma_create_with_funcs(struct drm_fb_helper *helper, |
30 | struct drm_fb_helper_surface_size *sizes, | |
fdce1846 | 31 | const struct drm_framebuffer_funcs *funcs); |
199c7717 NT |
32 | |
33 | void drm_fb_cma_destroy(struct drm_framebuffer *fb); | |
34 | int drm_fb_cma_create_handle(struct drm_framebuffer *fb, | |
35 | struct drm_file *file_priv, unsigned int *handle); | |
2e3b3c42 | 36 | |
3995b395 NT |
37 | struct drm_framebuffer *drm_fb_cma_create_with_funcs(struct drm_device *dev, |
38 | struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd, | |
39 | const struct drm_framebuffer_funcs *funcs); | |
2e3b3c42 | 40 | struct drm_framebuffer *drm_fb_cma_create(struct drm_device *dev, |
1eb83451 | 41 | struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd); |
2e3b3c42 LPC |
42 | |
43 | struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb, | |
44 | unsigned int plane); | |
45 | ||
14d7f96f MV |
46 | int drm_fb_cma_prepare_fb(struct drm_plane *plane, |
47 | struct drm_plane_state *state); | |
48 | ||
6f646095 | 49 | #ifdef CONFIG_DEBUG_FS |
80588a86 MR |
50 | struct seq_file; |
51 | ||
6f646095 RC |
52 | int drm_fb_cma_debugfs_show(struct seq_file *m, void *arg); |
53 | #endif | |
54 | ||
2e3b3c42 LPC |
55 | #endif |
56 |