-/* -*- c-basic-offset: 8 -*-
- *
- * fw-topology.h -- Incremental bus scan, based on bus topology
- *
+/*
* Copyright (C) 2003-2006 Kristian Hoegsberg <krh@bitplanet.net>
*
* This program is free software; you can redistribute it and/or modify
#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,
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. */
static inline struct fw_node *
fw_node(struct list_head *l)
{
- return list_entry (l, struct fw_node, link);
+ return list_entry(l, struct fw_node, link);
}
static inline struct fw_node *
void
fw_destroy_nodes(struct fw_card *card);
+int
+fw_compute_block_crc(u32 *block);
+
+
#endif /* __fw_topology_h */