diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rio.h | 4 | ||||
-rw-r--r-- | include/linux/rio_regs.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/rio.h b/include/linux/rio.h index 84c9f8c5fb23..ffdfe5ad43bf 100644 --- a/include/linux/rio.h +++ b/include/linux/rio.h | |||
@@ -112,7 +112,7 @@ struct rio_dev { | |||
112 | u16 asm_rev; | 112 | u16 asm_rev; |
113 | u16 efptr; | 113 | u16 efptr; |
114 | u32 pef; | 114 | u32 pef; |
115 | u32 swpinfo; /* Only used for switches */ | 115 | u32 swpinfo; |
116 | u32 src_ops; | 116 | u32 src_ops; |
117 | u32 dst_ops; | 117 | u32 dst_ops; |
118 | u32 comp_tag; | 118 | u32 comp_tag; |
@@ -219,6 +219,7 @@ struct rio_net { | |||
219 | /** | 219 | /** |
220 | * struct rio_switch - RIO switch info | 220 | * struct rio_switch - RIO switch info |
221 | * @node: Node in global list of switches | 221 | * @node: Node in global list of switches |
222 | * @rdev: Associated RIO device structure | ||
222 | * @switchid: Switch ID that is unique across a network | 223 | * @switchid: Switch ID that is unique across a network |
223 | * @hopcount: Hopcount to this switch | 224 | * @hopcount: Hopcount to this switch |
224 | * @destid: Associated destid in the path | 225 | * @destid: Associated destid in the path |
@@ -234,6 +235,7 @@ struct rio_net { | |||
234 | */ | 235 | */ |
235 | struct rio_switch { | 236 | struct rio_switch { |
236 | struct list_head node; | 237 | struct list_head node; |
238 | struct rio_dev *rdev; | ||
237 | u16 switchid; | 239 | u16 switchid; |
238 | u16 hopcount; | 240 | u16 hopcount; |
239 | u16 destid; | 241 | u16 destid; |
diff --git a/include/linux/rio_regs.h b/include/linux/rio_regs.h index aedee0489fb4..be80b1b21815 100644 --- a/include/linux/rio_regs.h +++ b/include/linux/rio_regs.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #define RIO_PEF_MEMORY 0x40000000 /* [I] MMIO */ | 33 | #define RIO_PEF_MEMORY 0x40000000 /* [I] MMIO */ |
34 | #define RIO_PEF_PROCESSOR 0x20000000 /* [I] Processor */ | 34 | #define RIO_PEF_PROCESSOR 0x20000000 /* [I] Processor */ |
35 | #define RIO_PEF_SWITCH 0x10000000 /* [I] Switch */ | 35 | #define RIO_PEF_SWITCH 0x10000000 /* [I] Switch */ |
36 | #define RIO_PEF_MULTIPORT 0x08000000 /* [VI, 2.1] Multiport */ | ||
36 | #define RIO_PEF_INB_MBOX 0x00f00000 /* [II] Mailboxes */ | 37 | #define RIO_PEF_INB_MBOX 0x00f00000 /* [II] Mailboxes */ |
37 | #define RIO_PEF_INB_MBOX0 0x00800000 /* [II] Mailbox 0 */ | 38 | #define RIO_PEF_INB_MBOX0 0x00800000 /* [II] Mailbox 0 */ |
38 | #define RIO_PEF_INB_MBOX1 0x00400000 /* [II] Mailbox 1 */ | 39 | #define RIO_PEF_INB_MBOX1 0x00400000 /* [II] Mailbox 1 */ |
@@ -51,6 +52,7 @@ | |||
51 | #define RIO_SWP_INFO_PORT_TOTAL_MASK 0x0000ff00 /* [I] Total number of ports */ | 52 | #define RIO_SWP_INFO_PORT_TOTAL_MASK 0x0000ff00 /* [I] Total number of ports */ |
52 | #define RIO_SWP_INFO_PORT_NUM_MASK 0x000000ff /* [I] Maintenance transaction port number */ | 53 | #define RIO_SWP_INFO_PORT_NUM_MASK 0x000000ff /* [I] Maintenance transaction port number */ |
53 | #define RIO_GET_TOTAL_PORTS(x) ((x & RIO_SWP_INFO_PORT_TOTAL_MASK) >> 8) | 54 | #define RIO_GET_TOTAL_PORTS(x) ((x & RIO_SWP_INFO_PORT_TOTAL_MASK) >> 8) |
55 | #define RIO_GET_PORT_NUM(x) (x & RIO_SWP_INFO_PORT_NUM_MASK) | ||
54 | 56 | ||
55 | #define RIO_SRC_OPS_CAR 0x18 /* [I] Source Operations CAR */ | 57 | #define RIO_SRC_OPS_CAR 0x18 /* [I] Source Operations CAR */ |
56 | #define RIO_SRC_OPS_READ 0x00008000 /* [I] Read op */ | 58 | #define RIO_SRC_OPS_READ 0x00008000 /* [I] Read op */ |