aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tb.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r--drivers/thunderbolt/tb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index 63e89d01047c..18ade5e33ae9 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -22,6 +22,7 @@ struct tb_switch {
22 u64 uid; 22 u64 uid;
23 int cap_plug_events; /* offset, zero if not found */ 23 int cap_plug_events; /* offset, zero if not found */
24 bool is_unplugged; /* unplugged, will go away */ 24 bool is_unplugged; /* unplugged, will go away */
25 u8 *drom;
25}; 26};
26 27
27/** 28/**
@@ -33,6 +34,9 @@ struct tb_port {
33 struct tb_port *remote; /* remote port, NULL if not connected */ 34 struct tb_port *remote; /* remote port, NULL if not connected */
34 int cap_phy; /* offset, zero if not found */ 35 int cap_phy; /* offset, zero if not found */
35 u8 port; /* port number on switch */ 36 u8 port; /* port number on switch */
37 bool disabled; /* disabled by eeprom */
38 struct tb_port *dual_link_port;
39 u8 link_nr:1;
36}; 40};
37 41
38/** 42/**
@@ -237,7 +241,8 @@ int tb_path_activate(struct tb_path *path);
237void tb_path_deactivate(struct tb_path *path); 241void tb_path_deactivate(struct tb_path *path);
238bool tb_path_is_invalid(struct tb_path *path); 242bool tb_path_is_invalid(struct tb_path *path);
239 243
240int tb_eeprom_read_uid(struct tb_switch *sw, u64 *uid); 244int tb_drom_read(struct tb_switch *sw);
245int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid);
241 246
242 247
243static inline int tb_route_length(u64 route) 248static inline int tb_route_length(u64 route)