mtk_writeback.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2017 MediaTek Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef MTK_WRITEBACK_H
  14. #define MTK_WRITEBACK_H
  15. #include "mtk_drm_crtc.h"
  16. int mtk_wb_connector_init(struct drm_device *drm_dev,
  17. struct mtk_drm_crtc *mtk_crtc);
  18. void mtk_wb_remove_comp_from_path(struct mtk_drm_crtc *mtk_crtc);
  19. int mtk_wb_set_possible_crtcs(struct drm_device *drm_dev,
  20. struct mtk_drm_crtc *mtk_crtc,
  21. unsigned long possible_crtc);
  22. #ifdef CONFIG_MTK_DISPLAY_CMDQ
  23. void mtk_wb_atomic_commit(struct mtk_drm_crtc *mtk_crtc, unsigned int v,
  24. unsigned int h, void *cmdq_handle);
  25. #else
  26. void mtk_wb_atomic_commit(struct mtk_drm_crtc *mtk_crtc);
  27. #endif
  28. #endif