• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
11 struct regmap;
12 struct device;
13 struct mtk_disp_mutex;
14 
15 struct mtk_disp_mutex *mtk_disp_mutex_get(struct device *dev, unsigned int id);
16 int mtk_disp_mutex_prepare(struct mtk_disp_mutex *mutex);
17 void mtk_disp_mutex_add_comp(struct mtk_disp_mutex *mutex,
18 			     enum mtk_ddp_comp_id id);
19 void mtk_disp_mutex_enable(struct mtk_disp_mutex *mutex);
20 void mtk_disp_mutex_disable(struct mtk_disp_mutex *mutex);
21 void mtk_disp_mutex_remove_comp(struct mtk_disp_mutex *mutex,
22 				enum mtk_ddp_comp_id id);
23 void mtk_disp_mutex_unprepare(struct mtk_disp_mutex *mutex);
24 void mtk_disp_mutex_put(struct mtk_disp_mutex *mutex);
25 void mtk_disp_mutex_acquire(struct mtk_disp_mutex *mutex);
26 void mtk_disp_mutex_release(struct mtk_disp_mutex *mutex);
27 
28 #endif /* MTK_DRM_DDP_H */
29