xref: /linux/drivers/gpu/drm/i915/display/intel_display_driver.h (revision b7e1e969c887c897947fdc3754fe9b0c24acb155)
177316e75SJani Nikula /* SPDX-License-Identifier: MIT */
277316e75SJani Nikula /*
377316e75SJani Nikula  * Copyright © 2022-2023 Intel Corporation
477316e75SJani Nikula  */
577316e75SJani Nikula 
677316e75SJani Nikula #ifndef __INTEL_DISPLAY_DRIVER_H__
777316e75SJani Nikula #define __INTEL_DISPLAY_DRIVER_H__
877316e75SJani Nikula 
9ff2c80beSJani Nikula #include <linux/types.h>
1077316e75SJani Nikula 
113183b9ebSJani Nikula struct drm_atomic_state;
12ff2c80beSJani Nikula struct drm_i915_private;
133183b9ebSJani Nikula struct drm_modeset_acquire_ctx;
14ff2c80beSJani Nikula struct pci_dev;
15ff2c80beSJani Nikula 
1615e4f0b5SJani Nikula bool intel_display_driver_probe_defer(struct pci_dev *pdev);
1786a1758dSJani Nikula void intel_display_driver_init_hw(struct drm_i915_private *i915);
1862bb6b49SJani Nikula void intel_display_driver_early_probe(struct drm_i915_private *i915);
1986a1758dSJani Nikula int intel_display_driver_probe_noirq(struct drm_i915_private *i915);
2086a1758dSJani Nikula int intel_display_driver_probe_nogem(struct drm_i915_private *i915);
2186a1758dSJani Nikula int intel_display_driver_probe(struct drm_i915_private *i915);
2277316e75SJani Nikula void intel_display_driver_register(struct drm_i915_private *i915);
2386a1758dSJani Nikula void intel_display_driver_remove(struct drm_i915_private *i915);
2486a1758dSJani Nikula void intel_display_driver_remove_noirq(struct drm_i915_private *i915);
2586a1758dSJani Nikula void intel_display_driver_remove_nogem(struct drm_i915_private *i915);
2677316e75SJani Nikula void intel_display_driver_unregister(struct drm_i915_private *i915);
27cde4bd87SJani Nikula int intel_display_driver_suspend(struct drm_i915_private *i915);
28cde4bd87SJani Nikula void intel_display_driver_resume(struct drm_i915_private *i915);
293183b9ebSJani Nikula 
303183b9ebSJani Nikula /* interface for intel_display_reset.c */
31cde4bd87SJani Nikula int __intel_display_driver_resume(struct drm_i915_private *i915,
323183b9ebSJani Nikula 				  struct drm_atomic_state *state,
333183b9ebSJani Nikula 				  struct drm_modeset_acquire_ctx *ctx);
3477316e75SJani Nikula 
35*bd738d85SImre Deak void intel_display_driver_enable_user_access(struct drm_i915_private *i915);
36*bd738d85SImre Deak void intel_display_driver_disable_user_access(struct drm_i915_private *i915);
37*bd738d85SImre Deak void intel_display_driver_suspend_access(struct drm_i915_private *i915);
38*bd738d85SImre Deak void intel_display_driver_resume_access(struct drm_i915_private *i915);
39*bd738d85SImre Deak bool intel_display_driver_check_access(struct drm_i915_private *i915);
40*bd738d85SImre Deak 
4177316e75SJani Nikula #endif /* __INTEL_DISPLAY_DRIVER_H__ */
4277316e75SJani Nikula 
43