diff options
Diffstat (limited to 'drivers/firewire/fw-topology.c')
-rw-r--r-- | drivers/firewire/fw-topology.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/firewire/fw-topology.c b/drivers/firewire/fw-topology.c index 6d0ea1bb7e23..fddf2b358936 100644 --- a/drivers/firewire/fw-topology.c +++ b/drivers/firewire/fw-topology.c | |||
@@ -20,6 +20,8 @@ | |||
20 | 20 | ||
21 | #include <linux/bug.h> | 21 | #include <linux/bug.h> |
22 | #include <linux/errno.h> | 22 | #include <linux/errno.h> |
23 | #include <linux/firewire.h> | ||
24 | #include <linux/firewire-constants.h> | ||
23 | #include <linux/jiffies.h> | 25 | #include <linux/jiffies.h> |
24 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
25 | #include <linux/list.h> | 27 | #include <linux/list.h> |
@@ -31,8 +33,7 @@ | |||
31 | #include <asm/atomic.h> | 33 | #include <asm/atomic.h> |
32 | #include <asm/system.h> | 34 | #include <asm/system.h> |
33 | 35 | ||
34 | #include "fw-topology.h" | 36 | #include "core.h" |
35 | #include "fw-transaction.h" | ||
36 | 37 | ||
37 | #define SELF_ID_PHY_ID(q) (((q) >> 24) & 0x3f) | 38 | #define SELF_ID_PHY_ID(q) (((q) >> 24) & 0x3f) |
38 | #define SELF_ID_EXTENDED(q) (((q) >> 23) & 0x01) | 39 | #define SELF_ID_EXTENDED(q) (((q) >> 23) & 0x01) |
@@ -45,6 +46,11 @@ | |||
45 | 46 | ||
46 | #define SELF_ID_EXT_SEQUENCE(q) (((q) >> 20) & 0x07) | 47 | #define SELF_ID_EXT_SEQUENCE(q) (((q) >> 20) & 0x07) |
47 | 48 | ||
49 | #define SELFID_PORT_CHILD 0x3 | ||
50 | #define SELFID_PORT_PARENT 0x2 | ||
51 | #define SELFID_PORT_NCONN 0x1 | ||
52 | #define SELFID_PORT_NONE 0x0 | ||
53 | |||
48 | static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count) | 54 | static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count) |
49 | { | 55 | { |
50 | u32 q; | 56 | u32 q; |