intel_tc.h (1509B)
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6#ifndef __INTEL_TC_H__ 7#define __INTEL_TC_H__ 8 9#include <linux/mutex.h> 10#include <linux/types.h> 11 12struct intel_digital_port; 13struct intel_encoder; 14 15bool intel_tc_port_in_tbt_alt_mode(struct intel_digital_port *dig_port); 16bool intel_tc_port_in_dp_alt_mode(struct intel_digital_port *dig_port); 17bool intel_tc_port_in_legacy_mode(struct intel_digital_port *dig_port); 18 19bool intel_tc_port_connected(struct intel_encoder *encoder); 20 21u32 intel_tc_port_get_lane_mask(struct intel_digital_port *dig_port); 22u32 intel_tc_port_get_pin_assignment_mask(struct intel_digital_port *dig_port); 23int intel_tc_port_fia_max_lane_count(struct intel_digital_port *dig_port); 24void intel_tc_port_set_fia_lane_count(struct intel_digital_port *dig_port, 25 int required_lanes); 26 27void intel_tc_port_sanitize(struct intel_digital_port *dig_port); 28void intel_tc_port_lock(struct intel_digital_port *dig_port); 29void intel_tc_port_unlock(struct intel_digital_port *dig_port); 30void intel_tc_port_flush_work(struct intel_digital_port *dig_port); 31void intel_tc_port_get_link(struct intel_digital_port *dig_port, 32 int required_lanes); 33void intel_tc_port_put_link(struct intel_digital_port *dig_port); 34bool intel_tc_port_ref_held(struct intel_digital_port *dig_port); 35 36void intel_tc_port_init(struct intel_digital_port *dig_port, bool is_legacy); 37 38bool intel_tc_cold_requires_aux_pw(struct intel_digital_port *dig_port); 39 40#endif /* __INTEL_TC_H__ */