xref: /openbmc/linux/drivers/gpu/drm/mediatek/mtk_cec.h (revision 8730046c)
1 /*
2  * Copyright (c) 2014 MediaTek Inc.
3  * Author: Jie Qiu <jie.qiu@mediatek.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  */
14 #ifndef _MTK_CEC_H
15 #define _MTK_CEC_H
16 
17 #include <linux/types.h>
18 
19 struct device;
20 
21 void mtk_cec_set_hpd_event(struct device *dev,
22 			   void (*hotplug_event)(bool hpd, struct device *dev),
23 			   struct device *hdmi_dev);
24 bool mtk_cec_hpd_high(struct device *dev);
25 
26 #endif /* _MTK_CEC_H */
27