cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

intel_hdmi.h (2305B)


      1/* SPDX-License-Identifier: MIT */
      2/*
      3 * Copyright © 2019 Intel Corporation
      4 */
      5
      6#ifndef __INTEL_HDMI_H__
      7#define __INTEL_HDMI_H__
      8
      9#include <linux/hdmi.h>
     10#include <linux/types.h>
     11
     12struct drm_connector;
     13struct drm_encoder;
     14struct drm_i915_private;
     15struct intel_connector;
     16struct intel_digital_port;
     17struct intel_encoder;
     18struct intel_crtc_state;
     19struct intel_hdmi;
     20struct drm_connector_state;
     21union hdmi_infoframe;
     22enum port;
     23
     24void intel_hdmi_init_connector(struct intel_digital_port *dig_port,
     25			       struct intel_connector *intel_connector);
     26int intel_hdmi_compute_config(struct intel_encoder *encoder,
     27			      struct intel_crtc_state *pipe_config,
     28			      struct drm_connector_state *conn_state);
     29void intel_hdmi_encoder_shutdown(struct intel_encoder *encoder);
     30bool intel_hdmi_handle_sink_scrambling(struct intel_encoder *encoder,
     31				       struct drm_connector *connector,
     32				       bool high_tmds_clock_ratio,
     33				       bool scrambling);
     34void intel_dp_dual_mode_set_tmds_output(struct intel_hdmi *hdmi, bool enable);
     35void intel_infoframe_init(struct intel_digital_port *dig_port);
     36u32 intel_hdmi_infoframes_enabled(struct intel_encoder *encoder,
     37				  const struct intel_crtc_state *crtc_state);
     38u32 intel_hdmi_infoframe_enable(unsigned int type);
     39void intel_hdmi_read_gcp_infoframe(struct intel_encoder *encoder,
     40				   struct intel_crtc_state *crtc_state);
     41void intel_read_infoframe(struct intel_encoder *encoder,
     42			  const struct intel_crtc_state *crtc_state,
     43			  enum hdmi_infoframe_type type,
     44			  union hdmi_infoframe *frame);
     45bool intel_hdmi_limited_color_range(const struct intel_crtc_state *crtc_state,
     46				    const struct drm_connector_state *conn_state);
     47bool intel_hdmi_bpc_possible(const struct intel_crtc_state *crtc_state,
     48			     int bpc, bool has_hdmi_sink, bool ycbcr420_output);
     49int intel_hdmi_tmds_clock(int clock, int bpc, bool ycbcr420_output);
     50int intel_hdmi_dsc_get_bpp(int src_fractional_bpp, int slice_width,
     51			   int num_slices, int output_format, bool hdmi_all_bpp,
     52			   int hdmi_max_chunk_bytes);
     53int intel_hdmi_dsc_get_num_slices(const struct intel_crtc_state *crtc_state,
     54				  int src_max_slices, int src_max_slice_width,
     55				  int hdmi_max_slices, int hdmi_throughput);
     56int intel_hdmi_dsc_get_slice_height(int vactive);
     57
     58#endif /* __INTEL_HDMI_H__ */