aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rio.h
diff options
context:
space:
mode:
authorAlexandre Bounine <alexandre.bounine@idt.com>2012-10-04 20:15:51 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:05:20 -0400
commited43f44f868045baa27bc140db0d4898e9695d07 (patch)
tree8cf6c5d9744e52f9d03f56fe9663cef4039b140b /include/linux/rio.h
parent7c4a6106d6451fc03c491e61df37c044505d843a (diff)
rapidio/tsi721: modify mport name assignment
Modify RapidIO mport device name assignment to include device name of PCIe side of Tsi721 bridge. The new name format is intended to provide definitive reference between RapidIO and PCIe sides of the bridge in systems with multiple Tsi721 bridges. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Matt Porter <mporter@kernel.crashing.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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/rio.h b/include/linux/rio.h
index a90ebadd9da0..1a7b6c7787a5 100644
--- a/include/linux/rio.h
+++ b/include/linux/rio.h
@@ -30,6 +30,7 @@
30#define RIO_MAX_MPORTS 8 30#define RIO_MAX_MPORTS 8
31#define RIO_MAX_MPORT_RESOURCES 16 31#define RIO_MAX_MPORT_RESOURCES 16
32#define RIO_MAX_DEV_RESOURCES 16 32#define RIO_MAX_DEV_RESOURCES 16
33#define RIO_MAX_MPORT_NAME 40
33 34
34#define RIO_GLOBAL_TABLE 0xff /* Indicates access of a switch's 35#define RIO_GLOBAL_TABLE 0xff /* Indicates access of a switch's
35 global routing table if it 36 global routing table if it
@@ -255,7 +256,7 @@ struct rio_mport {
255 */ 256 */
256 enum rio_phy_type phy_type; /* RapidIO phy type */ 257 enum rio_phy_type phy_type; /* RapidIO phy type */
257 u32 phys_efptr; 258 u32 phys_efptr;
258 unsigned char name[40]; 259 unsigned char name[RIO_MAX_MPORT_NAME];
259 void *priv; /* Master port private data */ 260 void *priv; /* Master port private data */
260#ifdef CONFIG_RAPIDIO_DMA_ENGINE 261#ifdef CONFIG_RAPIDIO_DMA_ENGINE
261 struct dma_device dma; 262 struct dma_device dma;