exynos_drm_crtc.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ifndef _EXYNOS_DRM_CRTC_H_
  15. #define _EXYNOS_DRM_CRTC_H_
  16. #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. int pipe,
  20. enum exynos_drm_output_type type,
  21. const struct exynos_drm_crtc_ops *ops,
  22. void *context);
  23. int exynos_drm_crtc_enable_vblank(struct drm_device *dev, unsigned int pipe);
  24. void exynos_drm_crtc_disable_vblank(struct drm_device *dev, unsigned int pipe);
  25. void exynos_drm_crtc_wait_pending_update(struct exynos_drm_crtc *exynos_crtc);
  26. void exynos_drm_crtc_finish_update(struct exynos_drm_crtc *exynos_crtc,
  27. struct exynos_drm_plane *exynos_plane);
  28. void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb);
  29. /* This function gets pipe value to crtc device matched with out_type. */
  30. int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev,
  31. enum exynos_drm_output_type out_type);
  32. /*
  33. * This function calls the crtc device(manager)'s te_handler() callback
  34. * to trigger to transfer video image at the tearing effect synchronization
  35. * signal.
  36. */
  37. void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
  38. #endif