Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 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 | * |
Inki Dae | d81aecb | 2012-12-18 02:30:17 +0900 | [diff] [blame] | 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. |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef _EXYNOS_DRM_CRTC_H_ |
| 16 | #define _EXYNOS_DRM_CRTC_H_ |
| 17 | |
Gustavo Padovan | cc2d861 | 2014-11-13 17:24:06 +0900 | [diff] [blame] | 18 | #include "exynos_drm_drv.h" |
Sean Paul | 080be03d | 2014-02-19 21:02:55 +0900 | [diff] [blame] | 19 | |
Gustavo Padovan | 93bca24 | 2015-01-18 18:16:23 +0900 | [diff] [blame] | 20 | struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev, |
Krzysztof Kozlowski | f3aaf76 | 2015-05-07 09:04:45 +0900 | [diff] [blame] | 21 | struct drm_plane *plane, |
| 22 | int pipe, |
| 23 | enum exynos_drm_output_type type, |
| 24 | const struct exynos_drm_crtc_ops *ops, |
| 25 | void *context); |
Thierry Reding | 88e7271 | 2015-09-24 18:35:31 +0200 | [diff] [blame] | 26 | int exynos_drm_crtc_enable_vblank(struct drm_device *dev, unsigned int pipe); |
| 27 | void exynos_drm_crtc_disable_vblank(struct drm_device *dev, unsigned int pipe); |
Gustavo Padovan | c453366 | 2015-08-15 13:26:18 -0300 | [diff] [blame] | 28 | void exynos_drm_crtc_wait_pending_update(struct exynos_drm_crtc *exynos_crtc); |
Gustavo Padovan | 822f6df | 2015-08-15 13:26:14 -0300 | [diff] [blame] | 29 | void exynos_drm_crtc_finish_update(struct exynos_drm_crtc *exynos_crtc, |
| 30 | struct exynos_drm_plane *exynos_plane); |
Sean Paul | 080be03d | 2014-02-19 21:02:55 +0900 | [diff] [blame] | 31 | void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb); |
| 32 | |
Inki Dae | f37cd5e | 2014-05-09 14:25:20 +0900 | [diff] [blame] | 33 | /* This function gets pipe value to crtc device matched with out_type. */ |
| 34 | int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev, |
Gustavo Padovan | cf67cc9 | 2015-08-11 17:38:06 +0900 | [diff] [blame] | 35 | enum exynos_drm_output_type out_type); |
Inki Dae | f37cd5e | 2014-05-09 14:25:20 +0900 | [diff] [blame] | 36 | |
YoungJun Cho | 5595d4d | 2014-07-17 18:01:19 +0900 | [diff] [blame] | 37 | /* |
| 38 | * This function calls the crtc device(manager)'s te_handler() callback |
| 39 | * to trigger to transfer video image at the tearing effect synchronization |
| 40 | * signal. |
| 41 | */ |
| 42 | void exynos_drm_crtc_te_handler(struct drm_crtc *crtc); |
| 43 | |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 44 | #endif |