summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tb.h
diff options
context:
space:
mode:
authorMika Westerberg2017-10-12 15:45:50 +0200
committerMika Westerberg2019-04-18 10:18:53 +0200
commite78db6f08b6a2a50eea9ed4146f019026491d63c (patch)
tree149d4dd58b84d74859d8721cb21fe9ba939656a5 /drivers/thunderbolt/tb.h
parentthunderbolt: Scan only valid NULL adapter ports in hotplug (diff)
downloadkernel-qcow2-linux-e78db6f08b6a2a50eea9ed4146f019026491d63c.tar.gz
kernel-qcow2-linux-e78db6f08b6a2a50eea9ed4146f019026491d63c.tar.xz
kernel-qcow2-linux-e78db6f08b6a2a50eea9ed4146f019026491d63c.zip
thunderbolt: Generalize port finding routines to support all port types
We will be needing these routines to find Display Port adapters as well so modify them to take port type as the second parameter. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r--drivers/thunderbolt/tb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index 260360ec59a9..e6040c9f68fa 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -576,6 +576,7 @@ struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end,
int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec);
int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap);
+bool tb_port_is_enabled(struct tb_port *port);
bool tb_pci_port_is_enabled(struct tb_port *port);
int tb_pci_port_enable(struct tb_port *port, bool enable);