1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2022 MediaTek Inc.
4 * Author: Ping-Hsun Wu <ping-hsun.wu@mediatek.com>
7 #ifndef __MTK_MDP3_CMDQ_H__
8 #define __MTK_MDP3_CMDQ_H__
10 #include <linux/platform_device.h>
11 #include <linux/videodev2.h>
12 #include <linux/soc/mediatek/mtk-cmdq.h>
13 #include "mtk-img-ipi.h"
15 struct platform_device *mdp_get_plat_device(struct platform_device *pdev);
17 struct mdp_cmdq_param {
18 struct img_config *config;
19 struct img_ipi_frameparam *param;
20 const struct v4l2_rect *composes[IMG_MAX_HW_OUTPUTS];
22 void (*cmdq_cb)(struct cmdq_cb_data data);
28 struct work_struct auto_release_work;
32 void (*user_cmdq_cb)(struct cmdq_cb_data data);
34 struct mdp_comp *comps;
41 int mdp_cmdq_send(struct mdp_dev *mdp, struct mdp_cmdq_param *param);
43 #endif /* __MTK_MDP3_CMDQ_H__ */