mtk_mdp_vpu.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2015-2016 MediaTek Inc.
  3. * Author: Houlong Wei <houlong.wei@mediatek.com>
  4. * Ming Hsiu Tsai <minghsiu.tsai@mediatek.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef __MTK_MDP_VPU_H__
  16. #define __MTK_MDP_VPU_H__
  17. #include "mtk_mdp_ipi.h"
  18. /**
  19. * struct mtk_mdp_vpu - VPU instance for MDP
  20. * @pdev : pointer to the VPU platform device
  21. * @inst_addr : VPU MDP instance address
  22. * @failure : VPU execution result status
  23. * @vsi : VPU shared information
  24. */
  25. struct mtk_mdp_vpu {
  26. struct platform_device *pdev;
  27. uint32_t inst_addr;
  28. int32_t failure;
  29. struct mdp_process_vsi *vsi;
  30. };
  31. int mtk_mdp_vpu_register(struct platform_device *pdev);
  32. int mtk_mdp_vpu_init(struct mtk_mdp_vpu *vpu);
  33. int mtk_mdp_vpu_deinit(struct mtk_mdp_vpu *vpu);
  34. int mtk_mdp_vpu_process(struct mtk_mdp_vpu *vpu);
  35. #endif /* __MTK_MDP_VPU_H__ */