hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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
26
#ifndef DW_HDMI_CEC_H
#define DW_HDMI_CEC_H
 
struct dw_hdmi;
 
#define CEC_EN            BIT(0)
#define CEC_WAKE        BIT(1)
 
struct dw_hdmi_cec_ops {
   void (*write)(struct dw_hdmi *hdmi, u8 val, int offset);
   u8 (*read)(struct dw_hdmi *hdmi, int offset);
   void (*enable)(struct dw_hdmi *hdmi);
   void (*disable)(struct dw_hdmi *hdmi);
   void (*mod)(struct dw_hdmi *hdmi, u8 data, u8 mask, unsigned int reg);
};
 
struct dw_hdmi_cec_data {
   struct dw_hdmi *hdmi;
   const struct dw_hdmi_cec_ops *ops;
   int irq;
   int wake_irq;
};
 
void dw_hdmi_hpd_wake_up(struct platform_device *pdev);
 
#endif