exynos_drm_crtc.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. struct drm_device;
  17. struct drm_crtc;
  18. struct exynos_drm_manager;
  19. struct exynos_drm_overlay;
  20. int exynos_drm_crtc_create(struct exynos_drm_manager *manager);
  21. int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe);
  22. void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe);
  23. void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe);
  24. void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb);
  25. void exynos_drm_crtc_plane_mode_set(struct drm_crtc *crtc,
  26. struct exynos_drm_overlay *overlay);
  27. void exynos_drm_crtc_plane_commit(struct drm_crtc *crtc, int zpos);
  28. void exynos_drm_crtc_plane_enable(struct drm_crtc *crtc, int zpos);
  29. void exynos_drm_crtc_plane_disable(struct drm_crtc *crtc, int zpos);
  30. /* This function gets pipe value to crtc device matched with out_type. */
  31. int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev,
  32. unsigned int out_type);
  33. /*
  34. * This function calls the crtc device(manager)'s te_handler() callback
  35. * to trigger to transfer video image at the tearing effect synchronization
  36. * signal.
  37. */
  38. void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
  39. #endif