xref: /linux/drivers/gpu/drm/i915/display/intel_hotplug.h (revision e47a324d6f07c9ef252cfce1f14cfa5110cbed99)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_HOTPLUG_H__
7 #define __INTEL_HOTPLUG_H__
8 
9 #include <linux/types.h>
10 
11 enum port;
12 struct intel_connector;
13 struct intel_digital_port;
14 struct intel_display;
15 struct intel_encoder;
16 
17 void intel_hpd_poll_enable(struct intel_display *display);
18 void intel_hpd_poll_disable(struct intel_display *display);
19 void intel_hpd_poll_fini(struct intel_display *display);
20 enum intel_hotplug_state intel_encoder_hotplug(struct intel_encoder *encoder,
21 					       struct intel_connector *connector);
22 void intel_hpd_irq_handler(struct intel_display *display,
23 			   u32 pin_mask, u32 long_mask);
24 void intel_hpd_trigger_irq(struct intel_digital_port *dig_port);
25 void intel_hpd_init(struct intel_display *display);
26 void intel_hpd_init_early(struct intel_display *display);
27 void intel_hpd_cancel_work(struct intel_display *display);
28 enum hpd_pin intel_hpd_pin_default(enum port port);
29 void intel_hpd_block(struct intel_encoder *encoder);
30 void intel_hpd_unblock(struct intel_encoder *encoder);
31 void intel_hpd_clear_and_unblock(struct intel_encoder *encoder);
32 void intel_hpd_debugfs_register(struct intel_display *display);
33 
34 void intel_hpd_enable_detection_work(struct intel_display *display);
35 void intel_hpd_disable_detection_work(struct intel_display *display);
36 bool intel_hpd_schedule_detection(struct intel_display *display);
37 
38 #endif /* __INTEL_HOTPLUG_H__ */
39