aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-topology.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@localhost.localdomain>2007-01-26 00:37:50 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-09 16:02:44 -0500
commit83db801ce8c644edee49f4364c7ebdfef1657762 (patch)
tree8180198c618d78ce7b774951ffa4e1a6d553a7e1 /drivers/firewire/fw-topology.h
parentcfb01381f4ffcd05aefe76c74911ba6bc996e8ba (diff)
firewire: Implement gap count optimization.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-topology.h')
-rw-r--r--drivers/firewire/fw-topology.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/firewire/fw-topology.h b/drivers/firewire/fw-topology.h
index ab03059a0da1..f2a575e05ae1 100644
--- a/drivers/firewire/fw-topology.h
+++ b/drivers/firewire/fw-topology.h
@@ -23,6 +23,12 @@
23#define __fw_topology_h 23#define __fw_topology_h
24 24
25enum { 25enum {
26 FW_TOPOLOGY_A = 0x01,
27 FW_TOPOLOGY_B = 0x02,
28 FW_TOPOLOGY_MIXED = 0x03,
29};
30
31enum {
26 FW_NODE_CREATED = 0x00, 32 FW_NODE_CREATED = 0x00,
27 FW_NODE_UPDATED = 0x01, 33 FW_NODE_UPDATED = 0x01,
28 FW_NODE_DESTROYED = 0x02, 34 FW_NODE_DESTROYED = 0x02,
@@ -42,10 +48,11 @@ struct fw_node {
42 unsigned link_on : 1; 48 unsigned link_on : 1;
43 unsigned initiated_reset : 1; 49 unsigned initiated_reset : 1;
44 unsigned b_path : 1; 50 unsigned b_path : 1;
45 u8 phy_speed; /* As in the self ID packet. */ 51 u8 phy_speed : 3; /* As in the self ID packet. */
46 u8 max_speed; /* Minimum of all phy-speeds and port speeds on 52 u8 max_speed : 5; /* Minimum of all phy-speeds and port speeds on
47 * the path from the local node to this node. */ 53 * the path from the local node to this node. */
48 54 u8 max_depth : 4; /* Maximum depth to any leaf node */
55 u8 max_hops : 4; /* Max hops in this sub tree */
49 atomic_t ref_count; 56 atomic_t ref_count;
50 57
51 /* For serializing node topology into a list. */ 58 /* For serializing node topology into a list. */