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 | |
Sean Paul | 080be03d | 2014-02-19 21:02:55 +0900 | [diff] [blame] | 18 | struct drm_device; |
| 19 | struct drm_crtc; |
| 20 | struct exynos_drm_manager; |
| 21 | struct exynos_drm_overlay; |
| 22 | |
| 23 | int exynos_drm_crtc_create(struct exynos_drm_manager *manager); |
| 24 | int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe); |
| 25 | void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe); |
| 26 | void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe); |
| 27 | void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb); |
| 28 | |
| 29 | void exynos_drm_crtc_plane_mode_set(struct drm_crtc *crtc, |
| 30 | struct exynos_drm_overlay *overlay); |
| 31 | void exynos_drm_crtc_plane_commit(struct drm_crtc *crtc, int zpos); |
| 32 | void exynos_drm_crtc_plane_enable(struct drm_crtc *crtc, int zpos); |
| 33 | void exynos_drm_crtc_plane_disable(struct drm_crtc *crtc, int zpos); |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 34 | |
Inki Dae | f37cd5e | 2014-05-09 14:25:20 +0900 | [diff] [blame] | 35 | /* This function gets pipe value to crtc device matched with out_type. */ |
| 36 | int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev, |
| 37 | unsigned int out_type); |
| 38 | |
YoungJun Cho | 5595d4d | 2014-07-17 18:01:19 +0900 | [diff] [blame] | 39 | /* |
| 40 | * This function calls the crtc device(manager)'s te_handler() callback |
| 41 | * to trigger to transfer video image at the tearing effect synchronization |
| 42 | * signal. |
| 43 | */ |
| 44 | void exynos_drm_crtc_te_handler(struct drm_crtc *crtc); |
| 45 | |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 46 | #endif |