From 83db801ce8c644edee49f4364c7ebdfef1657762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 26 Jan 2007 00:37:50 -0500 Subject: firewire: Implement gap count optimization. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter --- drivers/firewire/fw-topology.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'drivers/firewire/fw-topology.h') diff --git a/drivers/firewire/fw-topology.h b/drivers/firewire/fw-topology.h index ab03059a0da..f2a575e05ae 100644 --- a/drivers/firewire/fw-topology.h +++ b/drivers/firewire/fw-topology.h @@ -22,6 +22,12 @@ #ifndef __fw_topology_h #define __fw_topology_h +enum { + FW_TOPOLOGY_A = 0x01, + FW_TOPOLOGY_B = 0x02, + FW_TOPOLOGY_MIXED = 0x03, +}; + enum { FW_NODE_CREATED = 0x00, FW_NODE_UPDATED = 0x01, @@ -42,10 +48,11 @@ struct fw_node { unsigned link_on : 1; unsigned initiated_reset : 1; unsigned b_path : 1; - u8 phy_speed; /* As in the self ID packet. */ - u8 max_speed; /* Minimum of all phy-speeds and port speeds on - * the path from the local node to this node. */ - + u8 phy_speed : 3; /* As in the self ID packet. */ + u8 max_speed : 5; /* Minimum of all phy-speeds and port speeds on + * the path from the local node to this node. */ + u8 max_depth : 4; /* Maximum depth to any leaf node */ + u8 max_hops : 4; /* Max hops in this sub tree */ atomic_t ref_count; /* For serializing node topology into a list. */ -- cgit v1.2.3