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