#include <linux/bug.h>
#include <linux/errno.h>
#include <linux/firewire.h>
#include <linux/firewire-constants.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include <asm/byteorder.h>
#include "core.h"
#include "phy-packet-definitions.h"
#include <trace/events/firewire.h>
static struct fw_node *fw_node_create(u32 sid, int port_count, int color)
{ … }
static void update_hop_count(struct fw_node *node)
{ … }
static inline struct fw_node *fw_node(struct list_head *l)
{ … }
static struct fw_node *build_tree(struct fw_card *card, const u32 *sid, int self_id_count,
unsigned int generation)
{ … }
fw_node_callback_t;
static void for_each_fw_node(struct fw_card *card, struct fw_node *root,
fw_node_callback_t callback)
{ … }
static void report_lost_node(struct fw_card *card,
struct fw_node *node, struct fw_node *parent)
{ … }
static void report_found_node(struct fw_card *card,
struct fw_node *node, struct fw_node *parent)
{ … }
void fw_destroy_nodes(struct fw_card *card)
{ … }
static void move_tree(struct fw_node *node0, struct fw_node *node1, int port)
{ … }
static void update_tree(struct fw_card *card, struct fw_node *root)
{ … }
static void update_topology_map(struct fw_card *card,
u32 *self_ids, int self_id_count)
{ … }
void fw_core_handle_bus_reset(struct fw_card *card, int node_id, int generation,
int self_id_count, u32 *self_ids, bool bm_abdicate)
{ … }
EXPORT_SYMBOL(…);