1c7899551SAishwarya PantWhat: /sys/class/rapidio_port 2c7899551SAishwarya PantDescription: 3c7899551SAishwarya Pant On-chip RapidIO controllers and PCIe-to-RapidIO bridges 4c7899551SAishwarya Pant (referenced as "Master Port" or "mport") are presented in sysfs 5c7899551SAishwarya Pant as the special class of devices: "rapidio_port". 6c7899551SAishwarya Pant The /sys/class/rapidio_port subdirectory contains individual 7c7899551SAishwarya Pant subdirectories named as "rapidioN" where N = mport ID registered 8c7899551SAishwarya Pant with RapidIO subsystem. 954a19b4dSMauro Carvalho Chehab 10c7899551SAishwarya Pant NOTE: An mport ID is not a RapidIO destination ID assigned to a 11c7899551SAishwarya Pant given local mport device. 12c7899551SAishwarya Pant 13c7899551SAishwarya PantWhat: /sys/class/rapidio_port/rapidioN/sys_size 14c7899551SAishwarya PantDate: Apr, 2014 15c7899551SAishwarya PantKernelVersion: v3.15 16c7899551SAishwarya PantContact: Matt Porter <mporter@kernel.crashing.org>, 17c7899551SAishwarya Pant Alexandre Bounine <alexandre.bounine@idt.com> 18c7899551SAishwarya PantDescription: 19c7899551SAishwarya Pant (RO) reports RapidIO common transport system size: 2054a19b4dSMauro Carvalho Chehab 21c7899551SAishwarya Pant 0 = small (8-bit destination ID, max. 256 devices), 2254a19b4dSMauro Carvalho Chehab 23c7899551SAishwarya Pant 1 = large (16-bit destination ID, max. 65536 devices). 24c7899551SAishwarya Pant 25c7899551SAishwarya PantWhat: /sys/class/rapidio_port/rapidioN/port_destid 26c7899551SAishwarya PantDate: Apr, 2014 27c7899551SAishwarya PantKernelVersion: v3.15 28c7899551SAishwarya PantContact: Matt Porter <mporter@kernel.crashing.org>, 29c7899551SAishwarya Pant Alexandre Bounine <alexandre.bounine@idt.com> 30c7899551SAishwarya PantDescription: 3154a19b4dSMauro Carvalho Chehab 32c7899551SAishwarya Pant(RO) reports RapidIO destination ID assigned to the given 33c7899551SAishwarya PantRapidIO mport device. If value 0xFFFFFFFF is returned this means 34c7899551SAishwarya Pantthat no valid destination ID have been assigned to the mport 35c7899551SAishwarya Pant(yet). Normally, before enumeration/discovery have been executed 36c7899551SAishwarya Pantonly fabric enumerating mports have a valid destination ID 37c7899551SAishwarya Pantassigned to them using "hdid=..." rapidio module parameter. 38c7899551SAishwarya Pant 39c7899551SAishwarya PantAfter enumeration or discovery was performed for a given mport device, 40c7899551SAishwarya Pantthe corresponding subdirectory will also contain subdirectories for each 41c7899551SAishwarya Pantchild RapidIO device connected to the mport. 42c7899551SAishwarya Pant 43c7899551SAishwarya PantThe example below shows mport device subdirectory with several child RapidIO 4454a19b4dSMauro Carvalho Chehabdevices attached to it:: 45c7899551SAishwarya Pant 46c7899551SAishwarya Pant [rio@rapidio ~]$ ls /sys/class/rapidio_port/rapidio0/ -l 47c7899551SAishwarya Pant total 0 48c7899551SAishwarya Pant drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0001 49c7899551SAishwarya Pant drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0004 50c7899551SAishwarya Pant drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0007 51c7899551SAishwarya Pant drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0002 52c7899551SAishwarya Pant drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0003 53c7899551SAishwarya Pant drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0005 54c7899551SAishwarya Pant lrwxrwxrwx 1 root root 0 Feb 11 15:11 device -> ../../../0000:01:00.0 55c7899551SAishwarya Pant -r--r--r-- 1 root root 4096 Feb 11 15:11 port_destid 56c7899551SAishwarya Pant drwxr-xr-x 2 root root 0 Feb 11 15:11 power 57c7899551SAishwarya Pant lrwxrwxrwx 1 root root 0 Feb 11 15:04 subsystem -> ../../../../../../class/rapidio_port 58c7899551SAishwarya Pant -r--r--r-- 1 root root 4096 Feb 11 15:11 sys_size 59c7899551SAishwarya Pant -rw-r--r-- 1 root root 4096 Feb 11 15:04 uevent 60