162306a36Sopenharmony_ciWhat: /sys/bus/cdx/rescan 262306a36Sopenharmony_ciDate: March 2023 362306a36Sopenharmony_ciContact: nipun.gupta@amd.com 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci Writing y/1/on to this file will cause rescan of the bus 662306a36Sopenharmony_ci and devices on the CDX bus. Any new devices are scanned and 762306a36Sopenharmony_ci added to the list of Linux devices and any devices removed are 862306a36Sopenharmony_ci also deleted from Linux. 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci For example:: 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci # echo 1 > /sys/bus/cdx/rescan 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciWhat: /sys/bus/cdx/devices/.../vendor 1562306a36Sopenharmony_ciDate: March 2023 1662306a36Sopenharmony_ciContact: nipun.gupta@amd.com 1762306a36Sopenharmony_ciDescription: 1862306a36Sopenharmony_ci Vendor ID for this CDX device, in hexadecimal. Vendor ID is 1962306a36Sopenharmony_ci 16 bit identifier which is specific to the device manufacturer. 2062306a36Sopenharmony_ci Combination of Vendor ID and Device ID identifies a device. 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciWhat: /sys/bus/cdx/devices/.../device 2362306a36Sopenharmony_ciDate: March 2023 2462306a36Sopenharmony_ciContact: nipun.gupta@amd.com 2562306a36Sopenharmony_ciDescription: 2662306a36Sopenharmony_ci Device ID for this CDX device, in hexadecimal. Device ID is 2762306a36Sopenharmony_ci 16 bit identifier to identify a device type within the range 2862306a36Sopenharmony_ci of a device manufacturer. 2962306a36Sopenharmony_ci Combination of Vendor ID and Device ID identifies a device. 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ciWhat: /sys/bus/cdx/devices/.../reset 3262306a36Sopenharmony_ciDate: March 2023 3362306a36Sopenharmony_ciContact: nipun.gupta@amd.com 3462306a36Sopenharmony_ciDescription: 3562306a36Sopenharmony_ci Writing y/1/on to this file resets the CDX device. 3662306a36Sopenharmony_ci On resetting the device, the corresponding driver is notified 3762306a36Sopenharmony_ci twice, once before the device is being reset, and again after 3862306a36Sopenharmony_ci the reset has been complete. 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci For example:: 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci # echo 1 > /sys/bus/cdx/.../reset 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ciWhat: /sys/bus/cdx/devices/.../remove 4562306a36Sopenharmony_ciDate: March 2023 4662306a36Sopenharmony_ciContact: tarak.reddy@amd.com 4762306a36Sopenharmony_ciDescription: 4862306a36Sopenharmony_ci Writing y/1/on to this file removes the corresponding 4962306a36Sopenharmony_ci device from the CDX bus. If the device is to be reconfigured 5062306a36Sopenharmony_ci reconfigured in the Hardware, the device can be removed, so 5162306a36Sopenharmony_ci that the device driver does not access the device while it is 5262306a36Sopenharmony_ci being reconfigured. 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci For example:: 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ci # echo 1 > /sys/bus/cdx/devices/.../remove 57