Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / display / intel_lspcon.h
blobb03dcb7076d84383142c70b5b08dc52e2288d24a
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Copyright © 2019 Intel Corporation
4 */
6 #ifndef __INTEL_LSPCON_H__
7 #define __INTEL_LSPCON_H__
9 #include <linux/types.h>
11 struct drm_connector;
12 struct drm_connector_state;
13 struct intel_crtc_state;
14 struct intel_digital_port;
15 struct intel_encoder;
16 struct intel_lspcon;
18 void lspcon_resume(struct intel_digital_port *dig_port);
19 void lspcon_wait_pcon_mode(struct intel_lspcon *lspcon);
20 void lspcon_write_infoframe(struct intel_encoder *encoder,
21 const struct intel_crtc_state *crtc_state,
22 unsigned int type,
23 const void *buf, ssize_t len);
24 void lspcon_read_infoframe(struct intel_encoder *encoder,
25 const struct intel_crtc_state *crtc_state,
26 unsigned int type,
27 void *frame, ssize_t len);
28 void lspcon_set_infoframes(struct intel_encoder *encoder,
29 bool enable,
30 const struct intel_crtc_state *crtc_state,
31 const struct drm_connector_state *conn_state);
32 u32 lspcon_infoframes_enabled(struct intel_encoder *encoder,
33 const struct intel_crtc_state *pipe_config);
35 #endif /* __INTEL_LSPCON_H__ */