]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - drivers/gpu/drm/mediatek/mtk_drm_ddp.h
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[mirror_ubuntu-jammy-kernel.git] / drivers / gpu / drm / mediatek / mtk_drm_ddp.h
CommitLineData
1802d0be 1/* SPDX-License-Identifier: GPL-2.0-only */
119f5173
CH
2/*
3 * Copyright (c) 2015 MediaTek Inc.
119f5173
CH
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
15void mtk_ddp_add_comp_to_path(void __iomem *config_regs,
16 enum mtk_ddp_comp_id cur,
17 enum mtk_ddp_comp_id next);
18void mtk_ddp_remove_comp_from_path(void __iomem *config_regs,
19 enum mtk_ddp_comp_id cur,
20 enum mtk_ddp_comp_id next);
21
22struct mtk_disp_mutex *mtk_disp_mutex_get(struct device *dev, unsigned int id);
23int mtk_disp_mutex_prepare(struct mtk_disp_mutex *mutex);
24void mtk_disp_mutex_add_comp(struct mtk_disp_mutex *mutex,
25 enum mtk_ddp_comp_id id);
26void mtk_disp_mutex_enable(struct mtk_disp_mutex *mutex);
27void mtk_disp_mutex_disable(struct mtk_disp_mutex *mutex);
28void mtk_disp_mutex_remove_comp(struct mtk_disp_mutex *mutex,
29 enum mtk_ddp_comp_id id);
30void mtk_disp_mutex_unprepare(struct mtk_disp_mutex *mutex);
31void mtk_disp_mutex_put(struct mtk_disp_mutex *mutex);
9dc84e98 32void mtk_disp_mutex_acquire(struct mtk_disp_mutex *mutex);
33void mtk_disp_mutex_release(struct mtk_disp_mutex *mutex);
119f5173
CH
34
35#endif /* MTK_DRM_DDP_H */