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