162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2015 MediaTek Inc.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef MTK_DRM_CRTC_H
762306a36Sopenharmony_ci#define MTK_DRM_CRTC_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#include <drm/drm_crtc.h>
1062306a36Sopenharmony_ci#include "mtk_drm_ddp_comp.h"
1162306a36Sopenharmony_ci#include "mtk_drm_plane.h"
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define MTK_LUT_SIZE	512
1462306a36Sopenharmony_ci#define MTK_MAX_BPC	10
1562306a36Sopenharmony_ci#define MTK_MIN_BPC	3
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_civoid mtk_drm_crtc_commit(struct drm_crtc *crtc);
1862306a36Sopenharmony_ciint mtk_drm_crtc_create(struct drm_device *drm_dev,
1962306a36Sopenharmony_ci			const unsigned int *path,
2062306a36Sopenharmony_ci			unsigned int path_len,
2162306a36Sopenharmony_ci			int priv_data_index);
2262306a36Sopenharmony_ciint mtk_drm_crtc_plane_check(struct drm_crtc *crtc, struct drm_plane *plane,
2362306a36Sopenharmony_ci			     struct mtk_plane_state *state);
2462306a36Sopenharmony_civoid mtk_drm_crtc_async_update(struct drm_crtc *crtc, struct drm_plane *plane,
2562306a36Sopenharmony_ci			       struct drm_atomic_state *plane_state);
2662306a36Sopenharmony_cistruct device *mtk_drm_crtc_dma_dev_get(struct drm_crtc *crtc);
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif /* MTK_DRM_CRTC_H */
29