Documentation/ABI/testing/sysfs-bus-cdx

Source file repositories/reference/linux-study-clean/Documentation/ABI/testing/sysfs-bus-cdx

File Facts

System
Linux kernel
Corpus path
Documentation/ABI/testing/sysfs-bus-cdx
Extension
[no extension]
Size
3845 bytes
Lines
122
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: Documentation
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

What:		/sys/bus/cdx/rescan
Date:		March 2023
Contact:	nipun.gupta@amd.com
Description:
		Writing y/1/on to this file will cause rescan of the bus
		and devices on the CDX bus. Any new devices are scanned and
		added to the list of Linux devices and any devices removed are
		also deleted from Linux.

		For example::

		  # echo 1 > /sys/bus/cdx/rescan

What:		/sys/bus/cdx/devices/.../vendor
Date:		March 2023
Contact:	nipun.gupta@amd.com
Description:
		Vendor ID for this CDX device, in hexadecimal. Vendor ID is
		16 bit identifier which is specific to the device manufacturer.
		Combination of Vendor ID and Device ID identifies a device.

What:		/sys/bus/cdx/devices/.../device
Date:		March 2023
Contact:	nipun.gupta@amd.com
Description:
		Device ID for this CDX device, in hexadecimal. Device ID is
		16 bit identifier to identify a device type within the range
		of a device manufacturer.
		Combination of Vendor ID and Device ID identifies a device.

What:		/sys/bus/cdx/devices/.../subsystem_vendor
Date:		July 2023
Contact:	puneet.gupta@amd.com
Description:
		Subsystem Vendor ID for this CDX device, in hexadecimal.
		Subsystem Vendor ID is 16 bit identifier specific to the
		card manufacturer.

What:		/sys/bus/cdx/devices/.../subsystem_device
Date:		July 2023
Contact:	puneet.gupta@amd.com
Description:
		Subsystem Device ID for this CDX device, in hexadecimal
		Subsystem Device ID is 16 bit identifier specific to the
		card manufacturer.

What:		/sys/bus/cdx/devices/.../class
Date:		July 2023
Contact:	puneet.gupta@amd.com
Description:
		This file contains the class of the CDX device, in hexadecimal.
		Class is 24 bit identifier specifies the functionality of the device.

What:		/sys/bus/cdx/devices/.../revision
Date:		July 2023
Contact:	puneet.gupta@amd.com
Description:
		This file contains the revision field of the CDX device, in hexadecimal.
		Revision is 8 bit revision identifier of the device.

What:		/sys/bus/cdx/devices/.../enable
Date:		October 2023
Contact:	abhijit.gangurde@amd.com
Description:
		CDX bus should be disabled before updating the devices in FPGA.
		Writing n/0/off will attempt to disable the CDX bus and.
		writing y/1/on will attempt to enable the CDX bus. Reading this file
		gives the current state of the bus, 1 for enabled and 0 for disabled.

		For example::

Annotation

Implementation Notes