122 lines · plain
1What: /sys/bus/cdx/rescan2Date: March 20233Contact: nipun.gupta@amd.com4Description:5 Writing y/1/on to this file will cause rescan of the bus6 and devices on the CDX bus. Any new devices are scanned and7 added to the list of Linux devices and any devices removed are8 also deleted from Linux.9 10 For example::11 12 # echo 1 > /sys/bus/cdx/rescan13 14What: /sys/bus/cdx/devices/.../vendor15Date: March 202316Contact: nipun.gupta@amd.com17Description:18 Vendor ID for this CDX device, in hexadecimal. Vendor ID is19 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/.../device23Date: March 202324Contact: nipun.gupta@amd.com25Description:26 Device ID for this CDX device, in hexadecimal. Device ID is27 16 bit identifier to identify a device type within the range28 of a device manufacturer.29 Combination of Vendor ID and Device ID identifies a device.30 31What: /sys/bus/cdx/devices/.../subsystem_vendor32Date: July 202333Contact: puneet.gupta@amd.com34Description:35 Subsystem Vendor ID for this CDX device, in hexadecimal.36 Subsystem Vendor ID is 16 bit identifier specific to the37 card manufacturer.38 39What: /sys/bus/cdx/devices/.../subsystem_device40Date: July 202341Contact: puneet.gupta@amd.com42Description:43 Subsystem Device ID for this CDX device, in hexadecimal44 Subsystem Device ID is 16 bit identifier specific to the45 card manufacturer.46 47What: /sys/bus/cdx/devices/.../class48Date: July 202349Contact: puneet.gupta@amd.com50Description:51 This file contains the class of the CDX device, in hexadecimal.52 Class is 24 bit identifier specifies the functionality of the device.53 54What: /sys/bus/cdx/devices/.../revision55Date: July 202356Contact: puneet.gupta@amd.com57Description:58 This file contains the revision field of the CDX device, in hexadecimal.59 Revision is 8 bit revision identifier of the device.60 61What: /sys/bus/cdx/devices/.../enable62Date: October 202363Contact: abhijit.gangurde@amd.com64Description:65 CDX bus should be disabled before updating the devices in FPGA.66 Writing n/0/off will attempt to disable the CDX bus and.67 writing y/1/on will attempt to enable the CDX bus. Reading this file68 gives the current state of the bus, 1 for enabled and 0 for disabled.69 70 For example::71 72 # echo 1 > /sys/bus/cdx/.../enable73 74What: /sys/bus/cdx/devices/.../reset75Date: March 202376Contact: nipun.gupta@amd.com77Description:78 Writing y/1/on to this file resets the CDX device or all devices79 on the bus. On resetting the device, the corresponding driver is80 notified twice, once before the device is being reset, and again81 after the reset has been complete.82 83 For example::84 85 # echo 1 > /sys/bus/cdx/.../reset86 87What: /sys/bus/cdx/devices/.../remove88Date: March 202389Contact: tarak.reddy@amd.com90Description:91 Writing y/1/on to this file removes the corresponding92 device from the CDX bus. If the device is to be reconfigured93 reconfigured in the Hardware, the device can be removed, so94 that the device driver does not access the device while it is95 being reconfigured.96 97 For example::98 99 # echo 1 > /sys/bus/cdx/devices/.../remove100 101What: /sys/bus/cdx/devices/.../resource<N>102Date: July 2023103Contact: puneet.gupta@amd.com104Description:105 The resource binary file contains the content of the memory106 regions. These files can be m'maped from userspace.107 108What: /sys/bus/cdx/devices/.../modalias109Date: July 2023110Contact: nipun.gupta@amd.com111Description:112 This attribute indicates the CDX ID of the device.113 That is in the format:114 cdx:vXXXXdXXXXsvXXXXsdXXXXcXXXXXX,115 where:116 117 - vXXXX contains the vendor ID;118 - dXXXX contains the device ID;119 - svXXXX contains the subsystem vendor ID;120 - sdXXXX contains the subsystem device ID;121 - cXXXXXX contains the device class.122