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 11 enum drm_connector_status; 12 struct drm_connector; 13 struct drm_connector_state; 14 struct drm_display_mode; 15 struct drm_i915_private; 16 struct intel_connector; 17 struct intel_crtc_state; 18 struct intel_panel; 19 20 int intel_panel_init(struct intel_panel *panel, 21 struct drm_display_mode *fixed_mode, 22 struct drm_display_mode *downclock_mode); 23 void intel_panel_fini(struct intel_panel *panel); 24 enum drm_connector_status 25 intel_panel_detect(struct drm_connector *connector, bool force); 26 void intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode, 27 struct drm_display_mode *adjusted_mode); 28 int intel_pch_panel_fitting(struct intel_crtc_state *crtc_state, 29 const struct drm_connector_state *conn_state); 30 int intel_gmch_panel_fitting(struct intel_crtc_state *crtc_state, 31 const struct drm_connector_state *conn_state); 32 struct drm_display_mode * 33 intel_panel_edid_downclock_mode(struct intel_connector *connector, 34 const struct drm_display_mode *fixed_mode); 35 struct drm_display_mode * 36 intel_panel_edid_fixed_mode(struct intel_connector *connector); 37 struct drm_display_mode * 38 intel_panel_vbt_fixed_mode(struct intel_connector *connector); 39 40 #endif /* __INTEL_PANEL_H__ */ 41