mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 11:53:53 +00:00
Add a CEC driver for the dw-hdmi hardware. Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Russell King <[email protected]> [hans.verkuil: unsigned -> unsigned int] [hans.verkuil: cec_transmit_done -> cec_transmit_attempt_done] [hans.verkuil: add missing CEC_CAP_PASSTHROUGH] Acked-by: Hans Verkuil <[email protected]> Tested-by: Hans Verkuil <[email protected]> Tested-by: Laurent Pinchart <[email protected]> Signed-off-by: Archit Taneja <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
20 lines
381 B
C
20 lines
381 B
C
#ifndef DW_HDMI_CEC_H
|
|
#define DW_HDMI_CEC_H
|
|
|
|
struct dw_hdmi;
|
|
|
|
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);
|
|
};
|
|
|
|
struct dw_hdmi_cec_data {
|
|
struct dw_hdmi *hdmi;
|
|
const struct dw_hdmi_cec_ops *ops;
|
|
int irq;
|
|
};
|
|
|
|
#endif
|