1
2
3
4
5
6#ifndef __INTEL_LSPCON_H__
7#define __INTEL_LSPCON_H__
8
9#include <linux/types.h>
10
11struct drm_connector;
12struct drm_connector_state;
13struct intel_crtc_state;
14struct intel_digital_port;
15struct intel_encoder;
16struct intel_lspcon;
17
18bool lspcon_init(struct intel_digital_port *intel_dig_port);
19void lspcon_resume(struct intel_lspcon *lspcon);
20void lspcon_wait_pcon_mode(struct intel_lspcon *lspcon);
21void lspcon_write_infoframe(struct intel_encoder *encoder,
22 const struct intel_crtc_state *crtc_state,
23 unsigned int type,
24 const void *buf, ssize_t len);
25void lspcon_read_infoframe(struct intel_encoder *encoder,
26 const struct intel_crtc_state *crtc_state,
27 unsigned int type,
28 void *frame, ssize_t len);
29void lspcon_set_infoframes(struct intel_encoder *encoder,
30 bool enable,
31 const struct intel_crtc_state *crtc_state,
32 const struct drm_connector_state *conn_state);
33u32 lspcon_infoframes_enabled(struct intel_encoder *encoder,
34 const struct intel_crtc_state *pipe_config);
35void lspcon_ycbcr420_config(struct drm_connector *connector,
36 struct intel_crtc_state *crtc_state);
37
38#endif
39