exynos_drm_crtc.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef _EXYNOS_DRM_CRTC_H_
  11. #define _EXYNOS_DRM_CRTC_H_
  12. #include "exynos_drm_drv.h"
  13. struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
  14. struct drm_plane *plane,
  15. enum exynos_drm_output_type out_type,
  16. const struct exynos_drm_crtc_ops *ops,
  17. void *context);
  18. void exynos_drm_crtc_wait_pending_update(struct exynos_drm_crtc *exynos_crtc);
  19. void exynos_drm_crtc_finish_update(struct exynos_drm_crtc *exynos_crtc,
  20. struct exynos_drm_plane *exynos_plane);
  21. /* This function gets crtc device matched with out_type. */
  22. struct exynos_drm_crtc *exynos_drm_crtc_get_by_type(struct drm_device *drm_dev,
  23. enum exynos_drm_output_type out_type);
  24. int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder,
  25. enum exynos_drm_output_type out_type);
  26. /*
  27. * This function calls the crtc device(manager)'s te_handler() callback
  28. * to trigger to transfer video image at the tearing effect synchronization
  29. * signal.
  30. */
  31. void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
  32. void exynos_crtc_handle_event(struct exynos_drm_crtc *exynos_crtc);
  33. #endif