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 */ 7 8 #ifndef __MTK_MDP_VPU_H__ 9 #define __MTK_MDP_VPU_H__ 10 11 #include "mtk_mdp_ipi.h" 12 13 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 20 */ 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; 26 }; 27 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); 32 33 #endif /* __MTK_MDP_VPU_H__ */ 34