1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
11 #ifndef _EXYNOS_DRM_CRTC_H_
12 #define _EXYNOS_DRM_CRTC_H_
15 #include "exynos_drm_drv.h"
17 struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
18 struct drm_plane *plane,
19 enum exynos_drm_output_type out_type,
20 const struct exynos_drm_crtc_ops *ops,
23 /* This function gets crtc device matched with out_type. */
24 struct exynos_drm_crtc *exynos_drm_crtc_get_by_type(struct drm_device *drm_dev,
25 enum exynos_drm_output_type out_type);
27 int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder,
28 enum exynos_drm_output_type out_type);
31 * This function calls the crtc device(manager)'s te_handler() callback
32 * to trigger to transfer video image at the tearing effect synchronization
35 void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
37 void exynos_crtc_handle_event(struct exynos_drm_crtc *exynos_crtc);