162306a36Sopenharmony_ciWhat: /sys/class/rapidio_port 262306a36Sopenharmony_ciDescription: 362306a36Sopenharmony_ci On-chip RapidIO controllers and PCIe-to-RapidIO bridges 462306a36Sopenharmony_ci (referenced as "Master Port" or "mport") are presented in sysfs 562306a36Sopenharmony_ci as the special class of devices: "rapidio_port". 662306a36Sopenharmony_ci The /sys/class/rapidio_port subdirectory contains individual 762306a36Sopenharmony_ci subdirectories named as "rapidioN" where N = mport ID registered 862306a36Sopenharmony_ci with RapidIO subsystem. 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci NOTE: An mport ID is not a RapidIO destination ID assigned to a 1162306a36Sopenharmony_ci given local mport device. 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciWhat: /sys/class/rapidio_port/rapidio<N>/sys_size 1462306a36Sopenharmony_ciDate: Apr, 2014 1562306a36Sopenharmony_ciKernelVersion: v3.15 1662306a36Sopenharmony_ciContact: Matt Porter <mporter@kernel.crashing.org>, 1762306a36Sopenharmony_ci Alexandre Bounine <alexandre.bounine@idt.com> 1862306a36Sopenharmony_ciDescription: 1962306a36Sopenharmony_ci (RO) reports RapidIO common transport system size: 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci 0 = small (8-bit destination ID, max. 256 devices), 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci 1 = large (16-bit destination ID, max. 65536 devices). 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciWhat: /sys/class/rapidio_port/rapidio<N>/port_destid 2662306a36Sopenharmony_ciDate: Apr, 2014 2762306a36Sopenharmony_ciKernelVersion: v3.15 2862306a36Sopenharmony_ciContact: Matt Porter <mporter@kernel.crashing.org>, 2962306a36Sopenharmony_ci Alexandre Bounine <alexandre.bounine@idt.com> 3062306a36Sopenharmony_ciDescription: 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci(RO) reports RapidIO destination ID assigned to the given 3362306a36Sopenharmony_ciRapidIO mport device. If value 0xFFFFFFFF is returned this means 3462306a36Sopenharmony_cithat no valid destination ID have been assigned to the mport 3562306a36Sopenharmony_ci(yet). Normally, before enumeration/discovery have been executed 3662306a36Sopenharmony_cionly fabric enumerating mports have a valid destination ID 3762306a36Sopenharmony_ciassigned to them using "hdid=..." rapidio module parameter. 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ciAfter enumeration or discovery was performed for a given mport device, 4062306a36Sopenharmony_cithe corresponding subdirectory will also contain subdirectories for each 4162306a36Sopenharmony_cichild RapidIO device connected to the mport. 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ciThe example below shows mport device subdirectory with several child RapidIO 4462306a36Sopenharmony_cidevices attached to it:: 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ci [rio@rapidio ~]$ ls /sys/class/rapidio_port/rapidio0/ -l 4762306a36Sopenharmony_ci total 0 4862306a36Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0001 4962306a36Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0004 5062306a36Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0007 5162306a36Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0002 5262306a36Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0003 5362306a36Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0005 5462306a36Sopenharmony_ci lrwxrwxrwx 1 root root 0 Feb 11 15:11 device -> ../../../0000:01:00.0 5562306a36Sopenharmony_ci -r--r--r-- 1 root root 4096 Feb 11 15:11 port_destid 5662306a36Sopenharmony_ci drwxr-xr-x 2 root root 0 Feb 11 15:11 power 5762306a36Sopenharmony_ci lrwxrwxrwx 1 root root 0 Feb 11 15:04 subsystem -> ../../../../../../class/rapidio_port 5862306a36Sopenharmony_ci -r--r--r-- 1 root root 4096 Feb 11 15:11 sys_size 5962306a36Sopenharmony_ci -rw-r--r-- 1 root root 4096 Feb 11 15:04 uevent 60