1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) Rockchip Electronics Co.Ltd 4 * Author: 5 * Algea Cao <algea.cao@rock-chips.com> 6 */ 7 #ifndef DW_HDMI_QP_CEC_H 8 #define DW_HDMI_QP_CEC_H 9 10 struct dw_hdmi_qp; 11 12 struct dw_hdmi_qp_cec_ops { 13 void (*enable)(struct dw_hdmi_qp *hdmi); 14 void (*disable)(struct dw_hdmi_qp *hdmi); 15 void (*write)(struct dw_hdmi_qp *hdmi, u32 val, int offset); 16 u32 (*read)(struct dw_hdmi_qp *hdmi, int offset); 17 }; 18 19 struct dw_hdmi_qp_cec_data { 20 struct dw_hdmi_qp *hdmi; 21 const struct dw_hdmi_qp_cec_ops *ops; 22 int irq; 23 }; 24 25 #endif 26