1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (c) 2015 MediaTek Inc. 4 */ 5 6#ifndef MTK_DRM_DDP_H 7#define MTK_DRM_DDP_H 8 9#include "mtk_drm_ddp_comp.h" 10 11struct regmap; 12struct device; 13struct mtk_disp_mutex; 14 15struct mtk_disp_mutex *mtk_disp_mutex_get(struct device *dev, unsigned int id); 16int mtk_disp_mutex_prepare(struct mtk_disp_mutex *mutex); 17void mtk_disp_mutex_add_comp(struct mtk_disp_mutex *mutex, 18 enum mtk_ddp_comp_id id); 19void mtk_disp_mutex_enable(struct mtk_disp_mutex *mutex); 20void mtk_disp_mutex_disable(struct mtk_disp_mutex *mutex); 21void mtk_disp_mutex_remove_comp(struct mtk_disp_mutex *mutex, 22 enum mtk_ddp_comp_id id); 23void mtk_disp_mutex_unprepare(struct mtk_disp_mutex *mutex); 24void mtk_disp_mutex_put(struct mtk_disp_mutex *mutex); 25void mtk_disp_mutex_acquire(struct mtk_disp_mutex *mutex); 26void mtk_disp_mutex_release(struct mtk_disp_mutex *mutex); 27 28#endif /* MTK_DRM_DDP_H */ 29