aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rio.h
diff options
context:
space:
mode:
authorAlexandre Bounine <alexandre.bounine@idt.com>2010-10-27 18:34:29 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-27 21:03:15 -0400
commitae05cbd5adef897d405ce8f90484c1239f79e086 (patch)
tree1b235d02a42e40ae2071f2ce0983de1f0feadaf1 /include/linux/rio.h
parent93e2cbd24e71f5eedf6e49e075973fda9b2135e8 (diff)
rapidio: use stored ingress port number instead of register read
The switch port information is obtained and stored during RIO device setup. Therefore repeated reads from Switch Port Information CAR may be removed. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Thomas Moll <thomas.moll@sysgo.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Li Yang <leoli@freescale.com> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Micha Nelissen <micha@neli.hopto.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rio.h')
-rw-r--r--include/linux/rio.h4
1 files changed, 3 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 */
235struct rio_switch { 236struct 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;