18c2ecf20Sopenharmony_ciWhat: /sys/class/rapidio_port 28c2ecf20Sopenharmony_ciDescription: 38c2ecf20Sopenharmony_ci On-chip RapidIO controllers and PCIe-to-RapidIO bridges 48c2ecf20Sopenharmony_ci (referenced as "Master Port" or "mport") are presented in sysfs 58c2ecf20Sopenharmony_ci as the special class of devices: "rapidio_port". 68c2ecf20Sopenharmony_ci The /sys/class/rapidio_port subdirectory contains individual 78c2ecf20Sopenharmony_ci subdirectories named as "rapidioN" where N = mport ID registered 88c2ecf20Sopenharmony_ci with RapidIO subsystem. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci NOTE: An mport ID is not a RapidIO destination ID assigned to a 118c2ecf20Sopenharmony_ci given local mport device. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciWhat: /sys/class/rapidio_port/rapidioN/sys_size 148c2ecf20Sopenharmony_ciDate: Apr, 2014 158c2ecf20Sopenharmony_ciKernelVersion: v3.15 168c2ecf20Sopenharmony_ciContact: Matt Porter <mporter@kernel.crashing.org>, 178c2ecf20Sopenharmony_ci Alexandre Bounine <alexandre.bounine@idt.com> 188c2ecf20Sopenharmony_ciDescription: 198c2ecf20Sopenharmony_ci (RO) reports RapidIO common transport system size: 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci 0 = small (8-bit destination ID, max. 256 devices), 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci 1 = large (16-bit destination ID, max. 65536 devices). 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciWhat: /sys/class/rapidio_port/rapidioN/port_destid 268c2ecf20Sopenharmony_ciDate: Apr, 2014 278c2ecf20Sopenharmony_ciKernelVersion: v3.15 288c2ecf20Sopenharmony_ciContact: Matt Porter <mporter@kernel.crashing.org>, 298c2ecf20Sopenharmony_ci Alexandre Bounine <alexandre.bounine@idt.com> 308c2ecf20Sopenharmony_ciDescription: 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci(RO) reports RapidIO destination ID assigned to the given 338c2ecf20Sopenharmony_ciRapidIO mport device. If value 0xFFFFFFFF is returned this means 348c2ecf20Sopenharmony_cithat no valid destination ID have been assigned to the mport 358c2ecf20Sopenharmony_ci(yet). Normally, before enumeration/discovery have been executed 368c2ecf20Sopenharmony_cionly fabric enumerating mports have a valid destination ID 378c2ecf20Sopenharmony_ciassigned to them using "hdid=..." rapidio module parameter. 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ciAfter enumeration or discovery was performed for a given mport device, 408c2ecf20Sopenharmony_cithe corresponding subdirectory will also contain subdirectories for each 418c2ecf20Sopenharmony_cichild RapidIO device connected to the mport. 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ciThe example below shows mport device subdirectory with several child RapidIO 448c2ecf20Sopenharmony_cidevices attached to it:: 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci [rio@rapidio ~]$ ls /sys/class/rapidio_port/rapidio0/ -l 478c2ecf20Sopenharmony_ci total 0 488c2ecf20Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0001 498c2ecf20Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0004 508c2ecf20Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0007 518c2ecf20Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0002 528c2ecf20Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0003 538c2ecf20Sopenharmony_ci drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0005 548c2ecf20Sopenharmony_ci lrwxrwxrwx 1 root root 0 Feb 11 15:11 device -> ../../../0000:01:00.0 558c2ecf20Sopenharmony_ci -r--r--r-- 1 root root 4096 Feb 11 15:11 port_destid 568c2ecf20Sopenharmony_ci drwxr-xr-x 2 root root 0 Feb 11 15:11 power 578c2ecf20Sopenharmony_ci lrwxrwxrwx 1 root root 0 Feb 11 15:04 subsystem -> ../../../../../../class/rapidio_port 588c2ecf20Sopenharmony_ci -r--r--r-- 1 root root 4096 Feb 11 15:11 sys_size 598c2ecf20Sopenharmony_ci -rw-r--r-- 1 root root 4096 Feb 11 15:04 uevent 60