Loading...
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/* exynos_drm_crtc.h
3 *
4 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
5 * Authors:
6 * Inki Dae <inki.dae@samsung.com>
7 * Joonyoung Shim <jy0922.shim@samsung.com>
8 * Seung-Woo Kim <sw0312.kim@samsung.com>
9 */
10
11#ifndef _EXYNOS_DRM_CRTC_H_
12#define _EXYNOS_DRM_CRTC_H_
13
14
15#include "exynos_drm_drv.h"
16
17struct 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,
21 void *context);
22
23/* This function gets crtc device matched with out_type. */
24struct exynos_drm_crtc *exynos_drm_crtc_get_by_type(struct drm_device *drm_dev,
25 enum exynos_drm_output_type out_type);
26
27int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder,
28 enum exynos_drm_output_type out_type);
29
30/*
31 * This function calls the crtc device(manager)'s te_handler() callback
32 * to trigger to transfer video image at the tearing effect synchronization
33 * signal.
34 */
35void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
36
37void exynos_crtc_handle_event(struct exynos_drm_crtc *exynos_crtc);
38
39#endif
1/* exynos_drm_crtc.h
2 *
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * Authors:
5 * Inki Dae <inki.dae@samsung.com>
6 * Joonyoung Shim <jy0922.shim@samsung.com>
7 * Seung-Woo Kim <sw0312.kim@samsung.com>
8 *
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
13 */
14
15#ifndef _EXYNOS_DRM_CRTC_H_
16#define _EXYNOS_DRM_CRTC_H_
17
18struct drm_device;
19struct drm_crtc;
20struct exynos_drm_manager;
21struct exynos_drm_overlay;
22
23int exynos_drm_crtc_create(struct exynos_drm_manager *manager);
24int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe);
25void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe);
26void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe);
27void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb);
28
29void exynos_drm_crtc_plane_mode_set(struct drm_crtc *crtc,
30 struct exynos_drm_overlay *overlay);
31void exynos_drm_crtc_plane_commit(struct drm_crtc *crtc, int zpos);
32void exynos_drm_crtc_plane_enable(struct drm_crtc *crtc, int zpos);
33void exynos_drm_crtc_plane_disable(struct drm_crtc *crtc, int zpos);
34
35#endif