diff options
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r-- | drivers/thunderbolt/tb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h index 70a66fef0177..661f1828527a 100644 --- a/drivers/thunderbolt/tb.h +++ b/drivers/thunderbolt/tb.h | |||
@@ -20,6 +20,7 @@ struct tb_switch { | |||
20 | struct tb_port *ports; | 20 | struct tb_port *ports; |
21 | struct tb *tb; | 21 | struct tb *tb; |
22 | int cap_plug_events; /* offset, zero if not found */ | 22 | int cap_plug_events; /* offset, zero if not found */ |
23 | bool is_unplugged; /* unplugged, will go away */ | ||
23 | }; | 24 | }; |
24 | 25 | ||
25 | /** | 26 | /** |
@@ -160,6 +161,8 @@ void thunderbolt_shutdown_and_free(struct tb *tb); | |||
160 | 161 | ||
161 | struct tb_switch *tb_switch_alloc(struct tb *tb, u64 route); | 162 | struct tb_switch *tb_switch_alloc(struct tb *tb, u64 route); |
162 | void tb_switch_free(struct tb_switch *sw); | 163 | void tb_switch_free(struct tb_switch *sw); |
164 | void tb_sw_set_unpplugged(struct tb_switch *sw); | ||
165 | struct tb_switch *get_switch_at_route(struct tb_switch *sw, u64 route); | ||
163 | 166 | ||
164 | int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged); | 167 | int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged); |
165 | 168 | ||