Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / media / platform / mtk-mdp / mtk_mdp_vpu.h
blob5a1020508446d983ed97aacd190ed515c09cfc34
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2015-2016 MediaTek Inc.
4 * Author: Houlong Wei <houlong.wei@mediatek.com>
5 * Ming Hsiu Tsai <minghsiu.tsai@mediatek.com>
6 */
8 #ifndef __MTK_MDP_VPU_H__
9 #define __MTK_MDP_VPU_H__
11 #include "mtk_mdp_ipi.h"
14 /**
15 * struct mtk_mdp_vpu - VPU instance for MDP
16 * @pdev : pointer to the VPU platform device
17 * @inst_addr : VPU MDP instance address
18 * @failure : VPU execution result status
19 * @vsi : VPU shared information
21 struct mtk_mdp_vpu {
22 struct platform_device *pdev;
23 uint32_t inst_addr;
24 int32_t failure;
25 struct mdp_process_vsi *vsi;
28 int mtk_mdp_vpu_register(struct platform_device *pdev);
29 int mtk_mdp_vpu_init(struct mtk_mdp_vpu *vpu);
30 int mtk_mdp_vpu_deinit(struct mtk_mdp_vpu *vpu);
31 int mtk_mdp_vpu_process(struct mtk_mdp_vpu *vpu);
33 #endif /* __MTK_MDP_VPU_H__ */