Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / display / intel_tc.h
blobb619e4736f8550645e396dff6b43cb3f95f6e582
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Copyright © 2019 Intel Corporation
4 */
6 #ifndef __INTEL_TC_H__
7 #define __INTEL_TC_H__
9 #include <linux/mutex.h>
10 #include <linux/types.h>
12 struct intel_digital_port;
13 struct intel_encoder;
15 bool intel_tc_port_connected(struct intel_encoder *encoder);
16 u32 intel_tc_port_get_lane_mask(struct intel_digital_port *dig_port);
17 u32 intel_tc_port_get_pin_assignment_mask(struct intel_digital_port *dig_port);
18 int intel_tc_port_fia_max_lane_count(struct intel_digital_port *dig_port);
19 void intel_tc_port_set_fia_lane_count(struct intel_digital_port *dig_port,
20 int required_lanes);
22 void intel_tc_port_sanitize(struct intel_digital_port *dig_port);
23 void intel_tc_port_lock(struct intel_digital_port *dig_port);
24 void intel_tc_port_unlock(struct intel_digital_port *dig_port);
25 void intel_tc_port_get_link(struct intel_digital_port *dig_port,
26 int required_lanes);
27 void intel_tc_port_put_link(struct intel_digital_port *dig_port);
28 bool intel_tc_port_ref_held(struct intel_digital_port *dig_port);
30 void intel_tc_port_init(struct intel_digital_port *dig_port, bool is_legacy);
32 #endif /* __INTEL_TC_H__ */