intel_panel.h (1899B)
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6#ifndef __INTEL_PANEL_H__ 7#define __INTEL_PANEL_H__ 8 9#include <linux/types.h> 10 11enum drm_connector_status; 12enum drrs_type; 13struct drm_connector; 14struct drm_connector_state; 15struct drm_display_mode; 16struct drm_i915_private; 17struct intel_connector; 18struct intel_crtc_state; 19struct intel_encoder; 20 21int intel_panel_init(struct intel_connector *connector); 22void intel_panel_fini(struct intel_connector *connector); 23enum drm_connector_status 24intel_panel_detect(struct drm_connector *connector, bool force); 25bool intel_panel_use_ssc(struct drm_i915_private *i915); 26const struct drm_display_mode * 27intel_panel_preferred_fixed_mode(struct intel_connector *connector); 28const struct drm_display_mode * 29intel_panel_fixed_mode(struct intel_connector *connector, 30 const struct drm_display_mode *mode); 31const struct drm_display_mode * 32intel_panel_downclock_mode(struct intel_connector *connector, 33 const struct drm_display_mode *adjusted_mode); 34int intel_panel_get_modes(struct intel_connector *connector); 35enum drrs_type intel_panel_drrs_type(struct intel_connector *connector); 36enum drm_mode_status 37intel_panel_mode_valid(struct intel_connector *connector, 38 const struct drm_display_mode *mode); 39int intel_panel_fitting(struct intel_crtc_state *crtc_state, 40 const struct drm_connector_state *conn_state); 41int intel_panel_compute_config(struct intel_connector *connector, 42 struct drm_display_mode *adjusted_mode); 43void intel_panel_add_edid_fixed_modes(struct intel_connector *connector, bool has_drrs); 44void intel_panel_add_vbt_lfp_fixed_mode(struct intel_connector *connector); 45void intel_panel_add_vbt_sdvo_fixed_mode(struct intel_connector *connector); 46void intel_panel_add_encoder_fixed_mode(struct intel_connector *connector, 47 struct intel_encoder *encoder); 48 49#endif /* __INTEL_PANEL_H__ */