1 What: /sys/bus/rapidio/devices/nn:d:iiii
3 For each RapidIO device, the RapidIO subsystem creates files in
4 an individual subdirectory with the following name format of
5 device_name "nn:d:iiii", where:
7 ==== ========================================================
8 nn two-digit hexadecimal ID of RapidIO network where the
10 d device type: 'e' - for endpoint or 's' - for switch
11 iiii four-digit device destID for endpoints, or switchID for
13 ==== ========================================================
15 For example, below is a list of device directories that
16 represents a typical RapidIO network with one switch, one host,
17 and two agent endpoints, as it is seen by the enumerating host
20 /sys/bus/rapidio/devices/00:e:0000
21 /sys/bus/rapidio/devices/00:e:0002
22 /sys/bus/rapidio/devices/00:s:0001
25 An enumerating or discovering endpoint does not create a
26 sysfs entry for itself, this is why an endpoint with destID=1
27 is not shown in the list.
29 Attributes Common for All RapidIO Devices
30 -----------------------------------------
32 What: /sys/bus/rapidio/devices/nn:d:iiii/did
34 KernelVersion: v2.6.15
35 Contact: Matt Porter <mporter@kernel.crashing.org>,
36 Alexandre Bounine <alexandre.bounine@idt.com>
38 (RO) returns the device identifier
40 What: /sys/bus/rapidio/devices/nn:d:iiii/vid
42 KernelVersion: v2.6.15
43 Contact: Matt Porter <mporter@kernel.crashing.org>,
44 Alexandre Bounine <alexandre.bounine@idt.com>
46 (RO) returns the device vendor identifier
48 What: /sys/bus/rapidio/devices/nn:d:iiii/device_rev
50 KernelVersion: v2.6.15
51 Contact: Matt Porter <mporter@kernel.crashing.org>,
52 Alexandre Bounine <alexandre.bounine@idt.com>
54 (RO) returns the device revision level
56 What: /sys/bus/rapidio/devices/nn:d:iiii/asm_did
58 KernelVersion: v2.6.15
59 Contact: Matt Porter <mporter@kernel.crashing.org>,
60 Alexandre Bounine <alexandre.bounine@idt.com>
62 (RO) returns identifier for the assembly containing the device
64 What: /sys/bus/rapidio/devices/nn:d:iiii/asm_rev
66 KernelVersion: v2.6.15
67 Contact: Matt Porter <mporter@kernel.crashing.org>,
68 Alexandre Bounine <alexandre.bounine@idt.com>
70 (RO) returns revision level of the assembly containing the
73 What: /sys/bus/rapidio/devices/nn:d:iiii/asm_vid
75 KernelVersion: v2.6.15
76 Contact: Matt Porter <mporter@kernel.crashing.org>,
77 Alexandre Bounine <alexandre.bounine@idt.com>
79 (RO) returns vendor identifier of the assembly containing the
82 What: /sys/bus/rapidio/devices/nn:d:iiii/destid
85 Contact: Matt Porter <mporter@kernel.crashing.org>,
86 Alexandre Bounine <alexandre.bounine@idt.com>
88 (RO) returns device destination ID assigned by the enumeration
91 What: /sys/bus/rapidio/devices/nn:d:iiii/lprev
93 KernelVersion: v2.6.39
94 Contact: Matt Porter <mporter@kernel.crashing.org>,
95 Alexandre Bounine <alexandre.bounine@idt.com>
97 (RO) returns name of previous device (switch) on the path to the
98 device that that owns this attribute
100 What: /sys/bus/rapidio/devices/nn:d:iiii/modalias
103 Contact: Matt Porter <mporter@kernel.crashing.org>,
104 Alexandre Bounine <alexandre.bounine@idt.com>
106 (RO) returns the device modalias
108 What: /sys/bus/rapidio/devices/nn:d:iiii/config
110 KernelVersion: v2.6.15
111 Contact: Matt Porter <mporter@kernel.crashing.org>,
112 Alexandre Bounine <alexandre.bounine@idt.com>
114 (RW) Binary attribute to read from and write to the device
115 configuration registers using the RapidIO maintenance
116 transactions. This attribute is similar in behaviour to the
117 "config" attribute of PCI devices and provides an access to the
118 RapidIO device registers using standard file read and write
121 RapidIO Switch Device Attributes
122 --------------------------------
124 RapidIO switches have additional attributes in sysfs. RapidIO subsystem supports
125 common and device-specific sysfs attributes for switches. Because switches are
126 integrated into the RapidIO subsystem, it offers a method to create
127 device-specific sysfs attributes by specifying a callback function that may be
128 set by the switch initialization routine during enumeration or discovery
131 What: /sys/bus/rapidio/devices/nn:s:iiii/routes
133 KernelVersion: v2.6.15
134 Contact: Matt Porter <mporter@kernel.crashing.org>,
135 Alexandre Bounine <alexandre.bounine@idt.com>
137 (RO) reports switch routing information in "destID port" format.
138 This attribute reports only valid routing table entries, one
141 What: /sys/bus/rapidio/devices/nn:s:iiii/destid
143 KernelVersion: v2.6.3
144 Contact: Matt Porter <mporter@kernel.crashing.org>,
145 Alexandre Bounine <alexandre.bounine@idt.com>
147 (RO) device destination ID of the associated device that defines
148 a route to the switch
150 What: /sys/bus/rapidio/devices/nn:s:iiii/hopcount
152 KernelVersion: v2.6.39
153 Contact: Matt Porter <mporter@kernel.crashing.org>,
154 Alexandre Bounine <alexandre.bounine@idt.com>
156 (RO) number of hops on the path to the switch
158 What: /sys/bus/rapidio/devices/nn:s:iiii/lnext
160 KernelVersion: v2.6.39
161 Contact: Matt Porter <mporter@kernel.crashing.org>,
162 Alexandre Bounine <alexandre.bounine@idt.com>
164 (RO) returns names of devices linked to the switch except one of
165 a device linked to the ingress port (reported as "lprev"). This
166 is an array names with number of lines equal to number of ports
167 in switch. If a switch port has no attached device, returns
168 "null" instead of a device name.
170 Device-specific Switch Attributes
171 ---------------------------------
175 What: /sys/bus/rapidio/devices/nn:s:iiii/errlog
177 KernelVersion: v2.6.37
178 Contact: Matt Porter <mporter@kernel.crashing.org>,
179 Alexandre Bounine <alexandre.bounine@idt.com>
181 (RO) reads contents of device error log until it is empty.
183 RapidIO Bus Attributes
184 ----------------------
186 What: /sys/bus/rapidio/scan
189 Contact: Matt Porter <mporter@kernel.crashing.org>,
190 Alexandre Bounine <alexandre.bounine@idt.com>
192 (WO) Allows to trigger enumeration discovery process from user
193 space. To initiate an enumeration or discovery process on
194 specific mport device, a user needs to write mport_ID (not
195 RapidIO destination ID) into this file. The mport_ID is a
196 sequential number (0 ... RIO_MAX_MPORTS) assigned to the mport
197 device. For example, for a machine with a single RapidIO
198 controller, mport_ID for that controller always will be 0. To
199 initiate RapidIO enumeration/discovery on all available mports a
200 user must write '-1' (or RIO_MPORT_ANY) into this attribute