0001
0002
0003
0004
0005
0006 #ifndef __INTEL_LSPCON_H__
0007 #define __INTEL_LSPCON_H__
0008
0009 #include <linux/types.h>
0010
0011 struct drm_connector;
0012 struct drm_connector_state;
0013 struct intel_crtc_state;
0014 struct intel_digital_port;
0015 struct intel_encoder;
0016 struct intel_lspcon;
0017
0018 bool lspcon_init(struct intel_digital_port *dig_port);
0019 void lspcon_detect_hdr_capability(struct intel_lspcon *lspcon);
0020 void lspcon_resume(struct intel_digital_port *dig_port);
0021 void lspcon_wait_pcon_mode(struct intel_lspcon *lspcon);
0022 void lspcon_write_infoframe(struct intel_encoder *encoder,
0023 const struct intel_crtc_state *crtc_state,
0024 unsigned int type,
0025 const void *buf, ssize_t len);
0026 void lspcon_read_infoframe(struct intel_encoder *encoder,
0027 const struct intel_crtc_state *crtc_state,
0028 unsigned int type,
0029 void *frame, ssize_t len);
0030 void lspcon_set_infoframes(struct intel_encoder *encoder,
0031 bool enable,
0032 const struct intel_crtc_state *crtc_state,
0033 const struct drm_connector_state *conn_state);
0034 u32 lspcon_infoframes_enabled(struct intel_encoder *encoder,
0035 const struct intel_crtc_state *pipe_config);
0036 u32 intel_lspcon_infoframes_enabled(struct intel_encoder *encoder,
0037 const struct intel_crtc_state *pipe_config);
0038 void hsw_write_infoframe(struct intel_encoder *encoder,
0039 const struct intel_crtc_state *crtc_state,
0040 unsigned int type,
0041 const void *frame, ssize_t len);
0042 void hsw_read_infoframe(struct intel_encoder *encoder,
0043 const struct intel_crtc_state *crtc_state,
0044 unsigned int type,
0045 void *frame, ssize_t len);
0046
0047 #endif