Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / mediatek / mtk_drm_ddp.h
blob6b691a57be4a9366d92f11afe9f1a0682b15d59d
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2015 MediaTek Inc.
4 */
6 #ifndef MTK_DRM_DDP_H
7 #define MTK_DRM_DDP_H
9 #include "mtk_drm_ddp_comp.h"
11 struct regmap;
12 struct device;
13 struct mtk_disp_mutex;
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);
28 #endif /* MTK_DRM_DDP_H */