xref: /linux/Documentation/ABI/testing/sysfs-bus-cdx (revision 702648721db590b3425c31ade294000e18808345)
1What:		/sys/bus/cdx/rescan
2Date:		March 2023
3Contact:	nipun.gupta@amd.com
4Description:
5		Writing y/1/on to this file will cause rescan of the bus
6		and devices on the CDX bus. Any new devices are scanned and
7		added to the list of Linux devices and any devices removed are
8		also deleted from Linux.
9
10		For example::
11
12		  # echo 1 > /sys/bus/cdx/rescan
13
14What:		/sys/bus/cdx/devices/.../vendor
15Date:		March 2023
16Contact:	nipun.gupta@amd.com
17Description:
18		Vendor ID for this CDX device, in hexadecimal. Vendor ID is
19		16 bit identifier which is specific to the device manufacturer.
20		Combination of Vendor ID and Device ID identifies a device.
21
22What:		/sys/bus/cdx/devices/.../device
23Date:		March 2023
24Contact:	nipun.gupta@amd.com
25Description:
26		Device ID for this CDX device, in hexadecimal. Device ID is
27		16 bit identifier to identify a device type within the range
28		of a device manufacturer.
29		Combination of Vendor ID and Device ID identifies a device.
30
31What:		/sys/bus/cdx/devices/.../reset
32Date:		March 2023
33Contact:	nipun.gupta@amd.com
34Description:
35		Writing y/1/on to this file resets the CDX device.
36		On resetting the device, the corresponding driver is notified
37		twice, once before the device is being reset, and again after
38		the reset has been complete.
39
40		For example::
41
42		  # echo 1 > /sys/bus/cdx/.../reset
43
44What:		/sys/bus/cdx/devices/.../remove
45Date:		March 2023
46Contact:	tarak.reddy@amd.com
47Description:
48		Writing y/1/on to this file removes the corresponding
49		device from the CDX bus. If the device is to be reconfigured
50		reconfigured in the Hardware, the device can be removed, so
51		that the device driver does not access the device while it is
52		being reconfigured.
53
54		For example::
55
56		  # echo 1 > /sys/bus/cdx/devices/.../remove
57