162306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>
262306a36Sopenharmony_ciDescription:
362306a36Sopenharmony_ci		For each RapidIO device, the RapidIO subsystem creates files in
462306a36Sopenharmony_ci		an individual subdirectory with the following name format of
562306a36Sopenharmony_ci		device_name "nn:d:iiii", where:
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci		====   ========================================================
862306a36Sopenharmony_ci		nn     two-digit hexadecimal ID of RapidIO network where the
962306a36Sopenharmony_ci		       device resides
1062306a36Sopenharmony_ci		d      device type: 'e' - for endpoint or 's' - for switch
1162306a36Sopenharmony_ci		iiii   four-digit device destID for endpoints, or switchID for
1262306a36Sopenharmony_ci		       switches
1362306a36Sopenharmony_ci		====   ========================================================
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci		For example, below is a list of device directories that
1662306a36Sopenharmony_ci		represents a typical RapidIO network with one switch, one host,
1762306a36Sopenharmony_ci		and two agent endpoints, as it is seen by the enumerating host
1862306a36Sopenharmony_ci		(with destID = 1)::
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci		  /sys/bus/rapidio/devices/00:e:0000
2162306a36Sopenharmony_ci		  /sys/bus/rapidio/devices/00:e:0002
2262306a36Sopenharmony_ci		  /sys/bus/rapidio/devices/00:s:0001
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci		NOTE:
2562306a36Sopenharmony_ci		  An enumerating or discovering endpoint does not create a
2662306a36Sopenharmony_ci		  sysfs entry for itself, this is why an endpoint with destID=1
2762306a36Sopenharmony_ci		  is not shown in the list.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciAttributes Common for All RapidIO Devices
3062306a36Sopenharmony_ci-----------------------------------------
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/did
3362306a36Sopenharmony_ciDate:		Nov, 2005
3462306a36Sopenharmony_ciKernelVersion:	v2.6.15
3562306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
3662306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
3762306a36Sopenharmony_ciDescription:
3862306a36Sopenharmony_ci		(RO) returns the device identifier
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/vid
4162306a36Sopenharmony_ciDate:		Nov, 2005
4262306a36Sopenharmony_ciKernelVersion:	v2.6.15
4362306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
4462306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
4562306a36Sopenharmony_ciDescription:
4662306a36Sopenharmony_ci		(RO) returns the device vendor identifier
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/device_rev
4962306a36Sopenharmony_ciDate:		Nov, 2005
5062306a36Sopenharmony_ciKernelVersion:	v2.6.15
5162306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
5262306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
5362306a36Sopenharmony_ciDescription:
5462306a36Sopenharmony_ci		(RO) returns the device revision level
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/asm_did
5762306a36Sopenharmony_ciDate:		Nov, 2005
5862306a36Sopenharmony_ciKernelVersion:	v2.6.15
5962306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
6062306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
6162306a36Sopenharmony_ciDescription:
6262306a36Sopenharmony_ci		(RO) returns identifier for the assembly containing the device
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/asm_rev
6562306a36Sopenharmony_ciDate:		Nov, 2005
6662306a36Sopenharmony_ciKernelVersion:	v2.6.15
6762306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
6862306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
6962306a36Sopenharmony_ciDescription:
7062306a36Sopenharmony_ci		(RO) returns revision level of the assembly containing the
7162306a36Sopenharmony_ci		device
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/asm_vid
7462306a36Sopenharmony_ciDate:		Nov, 2005
7562306a36Sopenharmony_ciKernelVersion:	v2.6.15
7662306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
7762306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
7862306a36Sopenharmony_ciDescription:
7962306a36Sopenharmony_ci		(RO) returns vendor identifier of the assembly containing the
8062306a36Sopenharmony_ci		device
8162306a36Sopenharmony_ci
8262306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/destid
8362306a36Sopenharmony_ciDate:		Mar, 2011
8462306a36Sopenharmony_ciKernelVersion:	v2.6.3
8562306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
8662306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
8762306a36Sopenharmony_ciDescription:
8862306a36Sopenharmony_ci		(RO) returns device destination ID assigned by the enumeration
8962306a36Sopenharmony_ci		routine
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/lprev
9262306a36Sopenharmony_ciDate:		Mar, 2011
9362306a36Sopenharmony_ciKernelVersion:	v2.6.39
9462306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
9562306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
9662306a36Sopenharmony_ciDescription:
9762306a36Sopenharmony_ci		(RO) returns name of previous device (switch) on the path to the
9862306a36Sopenharmony_ci		device that that owns this attribute
9962306a36Sopenharmony_ci
10062306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/modalias
10162306a36Sopenharmony_ciDate:		Jul, 2013
10262306a36Sopenharmony_ciKernelVersion:	v3.11
10362306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
10462306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
10562306a36Sopenharmony_ciDescription:
10662306a36Sopenharmony_ci		(RO) returns the device modalias
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<d>:<iiii>/config
10962306a36Sopenharmony_ciDate:		Nov, 2005
11062306a36Sopenharmony_ciKernelVersion:	v2.6.15
11162306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
11262306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
11362306a36Sopenharmony_ciDescription:
11462306a36Sopenharmony_ci		(RW) Binary attribute to read from and write to the device
11562306a36Sopenharmony_ci		configuration registers using the RapidIO maintenance
11662306a36Sopenharmony_ci		transactions. This attribute is similar in behaviour to the
11762306a36Sopenharmony_ci		"config" attribute of PCI devices and provides an access to the
11862306a36Sopenharmony_ci		RapidIO device registers using standard file read and write
11962306a36Sopenharmony_ci		operations.
12062306a36Sopenharmony_ci
12162306a36Sopenharmony_ciRapidIO Switch Device Attributes
12262306a36Sopenharmony_ci--------------------------------
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ciRapidIO switches have additional attributes in sysfs. RapidIO subsystem supports
12562306a36Sopenharmony_cicommon and device-specific sysfs attributes for switches. Because switches are
12662306a36Sopenharmony_ciintegrated into the RapidIO subsystem, it offers a method to create
12762306a36Sopenharmony_cidevice-specific sysfs attributes by specifying a callback function that may be
12862306a36Sopenharmony_ciset by the switch initialization routine during enumeration or discovery
12962306a36Sopenharmony_ciprocess.
13062306a36Sopenharmony_ci
13162306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<s>:<iiii>/routes
13262306a36Sopenharmony_ciDate:		Nov, 2005
13362306a36Sopenharmony_ciKernelVersion:	v2.6.15
13462306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
13562306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
13662306a36Sopenharmony_ciDescription:
13762306a36Sopenharmony_ci		(RO) reports switch routing information in "destID port" format.
13862306a36Sopenharmony_ci		This attribute reports only valid routing table entries, one
13962306a36Sopenharmony_ci		line for each entry.
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<s>:<iiii>/destid
14262306a36Sopenharmony_ciDate:		Mar, 2011
14362306a36Sopenharmony_ciKernelVersion:	v2.6.3
14462306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
14562306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
14662306a36Sopenharmony_ciDescription:
14762306a36Sopenharmony_ci		(RO) device destination ID of the associated device that defines
14862306a36Sopenharmony_ci		a route to the switch
14962306a36Sopenharmony_ci
15062306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<s>:<iiii>/hopcount
15162306a36Sopenharmony_ciDate:		Mar, 2011
15262306a36Sopenharmony_ciKernelVersion:	v2.6.39
15362306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
15462306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
15562306a36Sopenharmony_ciDescription:
15662306a36Sopenharmony_ci		(RO) number of hops on the path to the switch
15762306a36Sopenharmony_ci
15862306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<s>:<iiii>/lnext
15962306a36Sopenharmony_ciDate:		Mar, 2011
16062306a36Sopenharmony_ciKernelVersion:	v2.6.39
16162306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
16262306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
16362306a36Sopenharmony_ciDescription:
16462306a36Sopenharmony_ci		(RO) returns names of devices linked to the switch except one of
16562306a36Sopenharmony_ci		a device linked to the ingress port (reported as "lprev"). This
16662306a36Sopenharmony_ci		is an array names with number of lines equal to number of ports
16762306a36Sopenharmony_ci		in switch. If a switch port has no attached device, returns
16862306a36Sopenharmony_ci		"null" instead of a device name.
16962306a36Sopenharmony_ci
17062306a36Sopenharmony_ciDevice-specific Switch Attributes
17162306a36Sopenharmony_ci---------------------------------
17262306a36Sopenharmony_ci
17362306a36Sopenharmony_ciIDT_GEN2-
17462306a36Sopenharmony_ci
17562306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/devices/<nn>:<s>:<iiii>/errlog
17662306a36Sopenharmony_ciDate:		Oct, 2010
17762306a36Sopenharmony_ciKernelVersion:	v2.6.37
17862306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
17962306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
18062306a36Sopenharmony_ciDescription:
18162306a36Sopenharmony_ci		(RO) reads contents of device error log until it is empty.
18262306a36Sopenharmony_ci
18362306a36Sopenharmony_ciRapidIO Bus Attributes
18462306a36Sopenharmony_ci----------------------
18562306a36Sopenharmony_ci
18662306a36Sopenharmony_ciWhat:		/sys/bus/rapidio/scan
18762306a36Sopenharmony_ciDate:		May, 2013
18862306a36Sopenharmony_ciKernelVersion:	v3.11
18962306a36Sopenharmony_ciContact:	Matt Porter <mporter@kernel.crashing.org>,
19062306a36Sopenharmony_ci		Alexandre Bounine <alexandre.bounine@idt.com>
19162306a36Sopenharmony_ciDescription:
19262306a36Sopenharmony_ci		(WO) Allows to trigger enumeration discovery process from user
19362306a36Sopenharmony_ci		space. To initiate an enumeration or discovery process on
19462306a36Sopenharmony_ci		specific mport device, a user needs to write mport_ID (not
19562306a36Sopenharmony_ci		RapidIO destination ID) into this file. The mport_ID is a
19662306a36Sopenharmony_ci		sequential number (0 ...  RIO_MAX_MPORTS) assigned to the mport
19762306a36Sopenharmony_ci		device. For example, for a machine with a single RapidIO
19862306a36Sopenharmony_ci		controller, mport_ID for that controller always will be 0. To
19962306a36Sopenharmony_ci		initiate RapidIO enumeration/discovery on all available mports a
20062306a36Sopenharmony_ci		user must write '-1' (or RIO_MPORT_ANY) into this attribute
20162306a36Sopenharmony_ci		file.
202