Skip to content

Commit 48618fb

Browse files
Alexandre Bouninetorvalds
authored andcommitted
RapidIO: add mport driver for Tsi721 bridge
Add RapidIO mport driver for IDT TSI721 PCI Express-to-SRIO bridge device. The driver provides full set of callback functions defined for mport devices in RapidIO subsystem. It also is compatible with current version of RIONET driver (Ethernet over RapidIO messaging services). This patch is applicable to kernel versions starting from 2.6.39. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Signed-off-by: Chul Kim <chul.kim@idt.com> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Li Yang <leoli@freescale.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e80dd9a commit 48618fb

8 files changed

Lines changed: 3196 additions & 2 deletions

File tree

‎Documentation/rapidio/tsi721.txt‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
RapidIO subsystem mport driver for IDT Tsi721 PCI Express-to-SRIO bridge.
2+
=========================================================================
3+
4+
I. Overview
5+
6+
This driver implements all currently defined RapidIO mport callback functions.
7+
It supports maintenance read and write operations, inbound and outbound RapidIO
8+
doorbells, inbound maintenance port-writes and RapidIO messaging.
9+
10+
To generate SRIO maintenance transactions this driver uses one of Tsi721 DMA
11+
channels. This mechanism provides access to larger range of hop counts and
12+
destination IDs without need for changes in outbound window translation.
13+
14+
RapidIO messaging support uses dedicated messaging channels for each mailbox.
15+
For inbound messages this driver uses destination ID matching to forward messages
16+
into the corresponding message queue. Messaging callbacks are implemented to be
17+
fully compatible with RIONET driver (Ethernet over RapidIO messaging services).
18+
19+
II. Known problems
20+
21+
None.
22+
23+
III. To do
24+
25+
Add DMA data transfers (non-messaging).
26+
Add inbound region (SRIO-to-PCIe) mapping.
27+
28+
IV. Version History
29+
30+
1.0.0 - Initial driver release.
31+
32+
V. License
33+
-----------------------------------------------
34+
35+
Copyright(c) 2011 Integrated Device Technology, Inc. All rights reserved.
36+
37+
This program is free software; you can redistribute it and/or modify it
38+
under the terms of the GNU General Public License as published by the Free
39+
Software Foundation; either version 2 of the License, or (at your option)
40+
any later version.
41+
42+
This program is distributed in the hope that it will be useful, but WITHOUT
43+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
44+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
45+
more details.
46+
47+
You should have received a copy of the GNU General Public License along with
48+
this program; if not, write to the Free Software Foundation, Inc.,
49+
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

‎drivers/rapidio/Kconfig‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#
22
# RapidIO configuration
33
#
4+
source "drivers/rapidio/devices/Kconfig"
5+
46
config RAPIDIO_DISC_TIMEOUT
57
int "Discovery timeout duration (seconds)"
68
depends on RAPIDIO
@@ -20,8 +22,6 @@ config RAPIDIO_ENABLE_RX_TX_PORTS
2022
ports for Input/Output direction to allow other traffic
2123
than Maintenance transfers.
2224

23-
source "drivers/rapidio/switches/Kconfig"
24-
2525
config RAPIDIO_DEBUG
2626
bool "RapidIO subsystem debug messages"
2727
depends on RAPIDIO
@@ -32,3 +32,5 @@ config RAPIDIO_DEBUG
3232
going on.
3333

3434
If you are unsure about this, say N here.
35+
36+
source "drivers/rapidio/switches/Kconfig"

‎drivers/rapidio/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
obj-y += rio.o rio-access.o rio-driver.o rio-scan.o rio-sysfs.o
55

66
obj-$(CONFIG_RAPIDIO) += switches/
7+
obj-$(CONFIG_RAPIDIO) += devices/
78

89
subdir-ccflags-$(CONFIG_RAPIDIO_DEBUG) := -DDEBUG

‎drivers/rapidio/devices/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# RapidIO master port configuration
3+
#
4+
5+
config RAPIDIO_TSI721
6+
bool "IDT Tsi721 PCI Express SRIO Controller support"
7+
depends on RAPIDIO && PCIEPORTBUS
8+
default "n"
9+
---help---
10+
Include support for IDT Tsi721 PCI Express Serial RapidIO controller.

‎drivers/rapidio/devices/Makefile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for RapidIO devices
3+
#
4+
5+
obj-$(CONFIG_RAPIDIO_TSI721) += tsi721.o

0 commit comments

Comments
 (0)