Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/class/rapidio_port
0002 Description:
0003                 On-chip RapidIO controllers and PCIe-to-RapidIO bridges
0004                 (referenced as "Master Port" or "mport") are presented in sysfs
0005                 as the special class of devices: "rapidio_port".
0006                 The /sys/class/rapidio_port subdirectory contains individual
0007                 subdirectories named as "rapidioN" where N = mport ID registered
0008                 with RapidIO subsystem.
0009 
0010                 NOTE: An mport ID is not a RapidIO destination ID assigned to a
0011                 given local mport device.
0012 
0013 What:           /sys/class/rapidio_port/rapidio<N>/sys_size
0014 Date:           Apr, 2014
0015 KernelVersion:  v3.15
0016 Contact:        Matt Porter <mporter@kernel.crashing.org>,
0017                 Alexandre Bounine <alexandre.bounine@idt.com>
0018 Description:
0019                 (RO) reports RapidIO common transport system size:
0020 
0021                 0 = small (8-bit destination ID, max. 256 devices),
0022 
0023                 1 = large (16-bit destination ID, max. 65536 devices).
0024 
0025 What:           /sys/class/rapidio_port/rapidio<N>/port_destid
0026 Date:           Apr, 2014
0027 KernelVersion:  v3.15
0028 Contact:        Matt Porter <mporter@kernel.crashing.org>,
0029                 Alexandre Bounine <alexandre.bounine@idt.com>
0030 Description:
0031 
0032 (RO) reports RapidIO destination ID assigned to the given
0033 RapidIO mport device. If value 0xFFFFFFFF is returned this means
0034 that no valid destination ID have been assigned to the mport
0035 (yet). Normally, before enumeration/discovery have been executed
0036 only fabric enumerating mports have a valid destination ID
0037 assigned to them using "hdid=..." rapidio module parameter.
0038 
0039 After enumeration or discovery was performed for a given mport device,
0040 the corresponding subdirectory will also contain subdirectories for each
0041 child RapidIO device connected to the mport.
0042 
0043 The example below shows mport device subdirectory with several child RapidIO
0044 devices attached to it::
0045 
0046     [rio@rapidio ~]$ ls /sys/class/rapidio_port/rapidio0/ -l
0047     total 0
0048     drwxr-xr-x 3 root root    0 Feb 11 15:10 00:e:0001
0049     drwxr-xr-x 3 root root    0 Feb 11 15:10 00:e:0004
0050     drwxr-xr-x 3 root root    0 Feb 11 15:10 00:e:0007
0051     drwxr-xr-x 3 root root    0 Feb 11 15:10 00:s:0002
0052     drwxr-xr-x 3 root root    0 Feb 11 15:10 00:s:0003
0053     drwxr-xr-x 3 root root    0 Feb 11 15:10 00:s:0005
0054     lrwxrwxrwx 1 root root    0 Feb 11 15:11 device -> ../../../0000:01:00.0
0055     -r--r--r-- 1 root root 4096 Feb 11 15:11 port_destid
0056     drwxr-xr-x 2 root root    0 Feb 11 15:11 power
0057     lrwxrwxrwx 1 root root    0 Feb 11 15:04 subsystem -> ../../../../../../class/rapidio_port
0058     -r--r--r-- 1 root root 4096 Feb 11 15:11 sys_size
0059     -rw-r--r-- 1 root root 4096 Feb 11 15:04 uevent