1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2021 MediaTek Inc.
6 #ifndef __MTK_ETHDR_H__
7 #define __MTK_ETHDR_H__
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 u32
mtk_ethdr_get_blend_modes(struct device
*dev
);
17 void mtk_ethdr_layer_config(struct device
*dev
, unsigned int idx
,
18 struct mtk_plane_state
*state
,
19 struct cmdq_pkt
*cmdq_pkt
);
20 void mtk_ethdr_register_vblank_cb(struct device
*dev
,
21 void (*vblank_cb
)(void *),
22 void *vblank_cb_data
);
23 void mtk_ethdr_unregister_vblank_cb(struct device
*dev
);
24 void mtk_ethdr_enable_vblank(struct device
*dev
);
25 void mtk_ethdr_disable_vblank(struct device
*dev
);