Merge tag 'upstream-4.7-rc1' of git://git.infradead.org/linux-ubifs
[deliverable/linux.git] / include / drm / drm_fb_cma_helper.h
CommitLineData
2e3b3c42
LPC
1#ifndef __DRM_FB_CMA_HELPER_H__
2#define __DRM_FB_CMA_HELPER_H__
3
4struct drm_fbdev_cma;
5struct drm_gem_cma_object;
6
199c7717
NT
7struct drm_fb_helper_surface_size;
8struct drm_framebuffer_funcs;
9struct drm_fb_helper_funcs;
2e3b3c42 10struct drm_framebuffer;
199c7717 11struct drm_fb_helper;
2e3b3c42
LPC
12struct drm_device;
13struct drm_file;
14struct drm_mode_fb_cmd2;
15
199c7717
NT
16struct drm_fbdev_cma *drm_fbdev_cma_init_with_funcs(struct drm_device *dev,
17 unsigned int preferred_bpp, unsigned int num_crtc,
18 unsigned int max_conn_count, const struct drm_fb_helper_funcs *funcs);
2e3b3c42
LPC
19struct drm_fbdev_cma *drm_fbdev_cma_init(struct drm_device *dev,
20 unsigned int preferred_bpp, unsigned int num_crtc,
21 unsigned int max_conn_count);
22void drm_fbdev_cma_fini(struct drm_fbdev_cma *fbdev_cma);
23
24void drm_fbdev_cma_restore_mode(struct drm_fbdev_cma *fbdev_cma);
25void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma);
199c7717
NT
26int drm_fbdev_cma_create_with_funcs(struct drm_fb_helper *helper,
27 struct drm_fb_helper_surface_size *sizes,
fdce1846 28 const struct drm_framebuffer_funcs *funcs);
199c7717
NT
29
30void drm_fb_cma_destroy(struct drm_framebuffer *fb);
31int drm_fb_cma_create_handle(struct drm_framebuffer *fb,
32 struct drm_file *file_priv, unsigned int *handle);
2e3b3c42 33
3995b395
NT
34struct drm_framebuffer *drm_fb_cma_create_with_funcs(struct drm_device *dev,
35 struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd,
36 const struct drm_framebuffer_funcs *funcs);
2e3b3c42 37struct drm_framebuffer *drm_fb_cma_create(struct drm_device *dev,
1eb83451 38 struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd);
2e3b3c42
LPC
39
40struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
41 unsigned int plane);
42
6f646095 43#ifdef CONFIG_DEBUG_FS
80588a86
MR
44struct seq_file;
45
6f646095
RC
46int drm_fb_cma_debugfs_show(struct seq_file *m, void *arg);
47#endif
48
2e3b3c42
LPC
49#endif
50
This page took 0.184903 seconds and 5 git commands to generate.