7 struct imx_drm_crtc_helper_funcs
{
8 int (*enable_vblank
)(struct drm_crtc
*crtc
);
9 void (*disable_vblank
)(struct drm_crtc
*crtc
);
10 int (*set_interface_pix_fmt
)(struct drm_crtc
*crtc
, u32 encoder_type
,
12 const struct drm_crtc_helper_funcs
*crtc_helper_funcs
;
13 const struct drm_crtc_funcs
*crtc_funcs
;
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
,
23 int imx_drm_exit_drm(void);
25 int imx_drm_crtc_vblank_get(struct imx_drm_crtc
*imx_drm_crtc
);
26 void imx_drm_crtc_vblank_put(struct imx_drm_crtc
*imx_drm_crtc
);
27 void imx_drm_handle_vblank(struct imx_drm_crtc
*imx_drm_crtc
);
29 struct imx_drm_encoder
;
30 int imx_drm_add_encoder(struct drm_encoder
*encoder
,
31 struct imx_drm_encoder
**new_enc
,
32 struct module
*owner
);
33 int imx_drm_remove_encoder(struct imx_drm_encoder
*);
35 struct imx_drm_connector
;
36 int imx_drm_add_connector(struct drm_connector
*connector
,
37 struct imx_drm_connector
**new_con
,
38 struct module
*owner
);
39 int imx_drm_remove_connector(struct imx_drm_connector
*);
41 void imx_drm_mode_config_init(struct drm_device
*drm
);
43 struct drm_gem_cma_object
*imx_drm_fb_get_obj(struct drm_framebuffer
*fb
);
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
);
53 int imx_drm_encoder_get_mux_id(struct imx_drm_encoder
*imx_drm_encoder
,
54 struct drm_crtc
*crtc
);
55 int imx_drm_encoder_add_possible_crtcs(struct imx_drm_encoder
*imx_drm_encoder
,
56 struct device_node
*np
);
58 #endif /* _IMX_DRM_H_ */