diff options
author | Andreas Noever <andreas.noever@gmail.com> | 2014-06-03 22:04:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-19 23:07:47 +0200 |
commit | e2b8785ed312dad3a18279a3e88435fc269658c1 (patch) | |
tree | 37c6e5742227564f30e5e87c608a891fc7bc6971 /drivers/thunderbolt/tb.h | |
parent | thunderbolt: Initialize root switch and ports (diff) | |
download | linux-e2b8785ed312dad3a18279a3e88435fc269658c1.tar.xz linux-e2b8785ed312dad3a18279a3e88435fc269658c1.zip |
thunderbolt: Add thunderbolt capability handling
Thunderbolt config areas contain capability lists similar to those found
on pci devices. This patch introduces a tb_find_cap utility method to
search for capabilities.
Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/thunderbolt/tb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h index 389dbb405c5f..38e4c23c10fd 100644 --- a/drivers/thunderbolt/tb.h +++ b/drivers/thunderbolt/tb.h @@ -159,6 +159,8 @@ void thunderbolt_shutdown_and_free(struct tb *tb); struct tb_switch *tb_switch_alloc(struct tb *tb, u64 route); void tb_switch_free(struct tb_switch *sw); +int tb_find_cap(struct tb_port *port, enum tb_cfg_space space, u32 value); + static inline int tb_route_length(u64 route) { |