Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
imx-drm.h
Go to the documentation of this file.
1 #ifndef _IMX_DRM_H_
2 #define _IMX_DRM_H_
3 
4 struct imx_drm_crtc;
5 struct drm_fbdev_cma;
6 
10  int (*set_interface_pix_fmt)(struct drm_crtc *crtc, u32 encoder_type,
11  u32 pix_fmt);
13  const struct drm_crtc_funcs *crtc_funcs;
14 };
15 
16 int imx_drm_add_crtc(struct drm_crtc *crtc,
17  struct imx_drm_crtc **new_crtc,
18  const struct imx_drm_crtc_helper_funcs *imx_helper_funcs,
19  struct module *owner, void *cookie, int id);
20 int imx_drm_remove_crtc(struct imx_drm_crtc *);
21 int imx_drm_init_drm(struct platform_device *pdev,
22  int preferred_bpp);
23 int imx_drm_exit_drm(void);
24 
28 
29 struct imx_drm_encoder;
31  struct imx_drm_encoder **new_enc,
32  struct module *owner);
34 
35 struct imx_drm_connector;
37  struct imx_drm_connector **new_con,
38  struct module *owner);
40 
41 void imx_drm_mode_config_init(struct drm_device *drm);
42 
44 
45 struct drm_device *imx_drm_device_get(void);
46 void imx_drm_device_put(void);
47 int imx_drm_crtc_panel_format(struct drm_crtc *crtc, u32 encoder_type,
48  u32 interface_pix_fmt);
49 void imx_drm_fb_helper_set(struct drm_fbdev_cma *fbdev_helper);
50 
51 struct device_node;
52 
54  struct drm_crtc *crtc);
56  struct device_node *np);
57 
58 #endif /* _IMX_DRM_H_ */