| 1 | /* SPDX-License-Identifier: MIT */ |
|---|---|
| 2 | /* |
| 3 | * Copyright © 2019 Intel Corporation |
| 4 | */ |
| 5 | |
| 6 | #ifndef __INTEL_VDSC_H__ |
| 7 | #define __INTEL_VDSC_H__ |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | |
| 11 | struct drm_printer; |
| 12 | |
| 13 | enum transcoder; |
| 14 | struct intel_crtc; |
| 15 | struct intel_crtc_state; |
| 16 | struct intel_encoder; |
| 17 | |
| 18 | bool intel_dsc_source_support(const struct intel_crtc_state *crtc_state); |
| 19 | void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state); |
| 20 | void intel_dsc_enable(const struct intel_crtc_state *crtc_state); |
| 21 | void intel_dsc_disable(const struct intel_crtc_state *crtc_state); |
| 22 | int intel_dsc_compute_params(struct intel_crtc_state *pipe_config); |
| 23 | void intel_dsc_enable_on_crtc(struct intel_crtc_state *crtc_state); |
| 24 | bool intel_dsc_enabled_on_link(const struct intel_crtc_state *crtc_state); |
| 25 | void intel_dsc_get_config(struct intel_crtc_state *crtc_state); |
| 26 | enum intel_display_power_domain |
| 27 | intel_dsc_power_domain(struct intel_crtc *crtc, enum transcoder cpu_transcoder); |
| 28 | struct intel_crtc *intel_dsc_get_bigjoiner_secondary(const struct intel_crtc *primary_crtc); |
| 29 | int intel_dsc_get_num_vdsc_instances(const struct intel_crtc_state *crtc_state); |
| 30 | void intel_dsc_dsi_pps_write(struct intel_encoder *encoder, |
| 31 | const struct intel_crtc_state *crtc_state); |
| 32 | void intel_dsc_dp_pps_write(struct intel_encoder *encoder, |
| 33 | const struct intel_crtc_state *crtc_state); |
| 34 | void intel_vdsc_state_dump(struct drm_printer *p, int indent, |
| 35 | const struct intel_crtc_state *crtc_state); |
| 36 | int intel_vdsc_min_cdclk(const struct intel_crtc_state *crtc_state); |
| 37 | unsigned int intel_vdsc_prefill_lines(const struct intel_crtc_state *crtc_state); |
| 38 | |
| 39 | #endif /* __INTEL_VDSC_H__ */ |
| 40 |
