1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2021 MediaTek Inc.
4  */
5 
6 #ifndef __MTK_ETHDR_H__
7 #define __MTK_ETHDR_H__
8 
9 void mtk_ethdr_start(struct device *dev);
10 void mtk_ethdr_stop(struct device *dev);
11 int mtk_ethdr_clk_enable(struct device *dev);
12 void mtk_ethdr_clk_disable(struct device *dev);
13 void mtk_ethdr_config(struct device *dev, unsigned int w,
14 		      unsigned int h, unsigned int vrefresh,
15 		      unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
16 void mtk_ethdr_layer_config(struct device *dev, unsigned int idx,
17 			    struct mtk_plane_state *state,
18 			    struct cmdq_pkt *cmdq_pkt);
19 void mtk_ethdr_register_vblank_cb(struct device *dev,
20 				  void (*vblank_cb)(void *),
21 				  void *vblank_cb_data);
22 void mtk_ethdr_unregister_vblank_cb(struct device *dev);
23 void mtk_ethdr_enable_vblank(struct device *dev);
24 void mtk_ethdr_disable_vblank(struct device *dev);
25 #endif
26