2019-04-29 12:29:32 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_VDSC_H__
|
|
|
|
#define __INTEL_VDSC_H__
|
|
|
|
|
2019-12-10 10:50:51 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2021-09-13 14:44:31 +00:00
|
|
|
enum transcoder;
|
|
|
|
struct intel_crtc;
|
2019-04-29 12:29:32 +00:00
|
|
|
struct intel_crtc_state;
|
2021-09-13 14:44:31 +00:00
|
|
|
struct intel_encoder;
|
2019-04-29 12:29:32 +00:00
|
|
|
|
2020-11-17 19:47:07 +00:00
|
|
|
bool intel_dsc_source_support(const struct intel_crtc_state *crtc_state);
|
2021-05-14 15:37:07 +00:00
|
|
|
void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state);
|
2021-10-22 10:33:01 +00:00
|
|
|
void intel_dsc_enable(const struct intel_crtc_state *crtc_state);
|
2019-04-29 12:29:32 +00:00
|
|
|
void intel_dsc_disable(const struct intel_crtc_state *crtc_state);
|
2021-10-22 10:33:01 +00:00
|
|
|
int intel_dsc_compute_params(struct intel_crtc_state *pipe_config);
|
2020-11-17 19:47:07 +00:00
|
|
|
void intel_dsc_get_config(struct intel_crtc_state *crtc_state);
|
2019-04-29 12:29:32 +00:00
|
|
|
enum intel_display_power_domain
|
2021-09-13 14:44:31 +00:00
|
|
|
intel_dsc_power_domain(struct intel_crtc *crtc, enum transcoder cpu_transcoder);
|
2021-06-10 09:05:28 +00:00
|
|
|
struct intel_crtc *intel_dsc_get_bigjoiner_secondary(const struct intel_crtc *primary_crtc);
|
2021-10-22 10:33:01 +00:00
|
|
|
void intel_dsc_dsi_pps_write(struct intel_encoder *encoder,
|
|
|
|
const struct intel_crtc_state *crtc_state);
|
|
|
|
void intel_dsc_dp_pps_write(struct intel_encoder *encoder,
|
|
|
|
const struct intel_crtc_state *crtc_state);
|
2019-04-29 12:29:32 +00:00
|
|
|
|
|
|
|
#endif /* __INTEL_VDSC_H__ */
|