Merge branch 'akpm' (patches from Andrew)
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / display / intel_hotplug.h
blob087b5f57b32188a9b7e78ff99d424223dc3ebbc9
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Copyright © 2019 Intel Corporation
4 */
6 #ifndef __INTEL_HOTPLUG_H__
7 #define __INTEL_HOTPLUG_H__
9 #include <linux/types.h>
11 #include <drm/i915_drm.h>
13 struct drm_i915_private;
14 struct intel_connector;
15 struct intel_encoder;
16 enum port;
18 void intel_hpd_poll_init(struct drm_i915_private *dev_priv);
19 enum intel_hotplug_state intel_encoder_hotplug(struct intel_encoder *encoder,
20 struct intel_connector *connector,
21 bool irq_received);
22 void intel_hpd_irq_handler(struct drm_i915_private *dev_priv,
23 u32 pin_mask, u32 long_mask);
24 void intel_hpd_init(struct drm_i915_private *dev_priv);
25 void intel_hpd_init_work(struct drm_i915_private *dev_priv);
26 void intel_hpd_cancel_work(struct drm_i915_private *dev_priv);
27 enum hpd_pin intel_hpd_pin_default(struct drm_i915_private *dev_priv,
28 enum port port);
29 bool intel_hpd_disable(struct drm_i915_private *dev_priv, enum hpd_pin pin);
30 void intel_hpd_enable(struct drm_i915_private *dev_priv, enum hpd_pin pin);
32 #endif /* __INTEL_HOTPLUG_H__ */