diff options
Diffstat (limited to 'drivers/firewire/fw-topology.h')
-rw-r--r-- | drivers/firewire/fw-topology.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/drivers/firewire/fw-topology.h b/drivers/firewire/fw-topology.h index 363b6cbcd0b3..1b56b4ac7fb2 100644 --- a/drivers/firewire/fw-topology.h +++ b/drivers/firewire/fw-topology.h | |||
@@ -20,12 +20,6 @@ | |||
20 | #define __fw_topology_h | 20 | #define __fw_topology_h |
21 | 21 | ||
22 | enum { | 22 | enum { |
23 | FW_TOPOLOGY_A = 0x01, | ||
24 | FW_TOPOLOGY_B = 0x02, | ||
25 | FW_TOPOLOGY_MIXED = 0x03, | ||
26 | }; | ||
27 | |||
28 | enum { | ||
29 | FW_NODE_CREATED = 0x00, | 23 | FW_NODE_CREATED = 0x00, |
30 | FW_NODE_UPDATED = 0x01, | 24 | FW_NODE_UPDATED = 0x01, |
31 | FW_NODE_DESTROYED = 0x02, | 25 | FW_NODE_DESTROYED = 0x02, |
@@ -33,21 +27,16 @@ enum { | |||
33 | FW_NODE_LINK_OFF = 0x04, | 27 | FW_NODE_LINK_OFF = 0x04, |
34 | }; | 28 | }; |
35 | 29 | ||
36 | struct fw_port { | ||
37 | struct fw_node *node; | ||
38 | unsigned speed : 3; /* S100, S200, ... S3200 */ | ||
39 | }; | ||
40 | |||
41 | struct fw_node { | 30 | struct fw_node { |
42 | u16 node_id; | 31 | u16 node_id; |
43 | u8 color; | 32 | u8 color; |
44 | u8 port_count; | 33 | u8 port_count; |
45 | unsigned link_on : 1; | 34 | u8 link_on : 1; |
46 | unsigned initiated_reset : 1; | 35 | u8 initiated_reset : 1; |
47 | unsigned b_path : 1; | 36 | u8 b_path : 1; |
48 | u8 phy_speed : 3; /* As in the self ID packet. */ | 37 | u8 phy_speed : 2; /* As in the self ID packet. */ |
49 | u8 max_speed : 5; /* Minimum of all phy-speeds and port speeds on | 38 | u8 max_speed : 2; /* Minimum of all phy-speeds on the path from the |
50 | * the path from the local node to this node. */ | 39 | * local node to this node. */ |
51 | u8 max_depth : 4; /* Maximum depth to any leaf node */ | 40 | u8 max_depth : 4; /* Maximum depth to any leaf node */ |
52 | u8 max_hops : 4; /* Max hops in this sub tree */ | 41 | u8 max_hops : 4; /* Max hops in this sub tree */ |
53 | atomic_t ref_count; | 42 | atomic_t ref_count; |
@@ -58,7 +47,7 @@ struct fw_node { | |||
58 | /* Upper layer specific data. */ | 47 | /* Upper layer specific data. */ |
59 | void *data; | 48 | void *data; |
60 | 49 | ||
61 | struct fw_port ports[0]; | 50 | struct fw_node *ports[0]; |
62 | }; | 51 | }; |
63 | 52 | ||
64 | static inline struct fw_node * | 53 | static inline struct fw_node * |