12959ab24SNipun GuptaWhat: /sys/bus/cdx/rescan 22959ab24SNipun GuptaDate: March 2023 32959ab24SNipun GuptaContact: nipun.gupta@amd.com 42959ab24SNipun GuptaDescription: 52959ab24SNipun Gupta Writing y/1/on to this file will cause rescan of the bus 62959ab24SNipun Gupta and devices on the CDX bus. Any new devices are scanned and 72959ab24SNipun Gupta added to the list of Linux devices and any devices removed are 82959ab24SNipun Gupta also deleted from Linux. 92959ab24SNipun Gupta 102959ab24SNipun Gupta For example:: 112959ab24SNipun Gupta 122959ab24SNipun Gupta # echo 1 > /sys/bus/cdx/rescan 13*48a6c7bcSNipun Gupta 14*48a6c7bcSNipun GuptaWhat: /sys/bus/cdx/devices/.../vendor 15*48a6c7bcSNipun GuptaDate: March 2023 16*48a6c7bcSNipun GuptaContact: nipun.gupta@amd.com 17*48a6c7bcSNipun GuptaDescription: 18*48a6c7bcSNipun Gupta Vendor ID for this CDX device, in hexadecimal. Vendor ID is 19*48a6c7bcSNipun Gupta 16 bit identifier which is specific to the device manufacturer. 20*48a6c7bcSNipun Gupta Combination of Vendor ID and Device ID identifies a device. 21*48a6c7bcSNipun Gupta 22*48a6c7bcSNipun GuptaWhat: /sys/bus/cdx/devices/.../device 23*48a6c7bcSNipun GuptaDate: March 2023 24*48a6c7bcSNipun GuptaContact: nipun.gupta@amd.com 25*48a6c7bcSNipun GuptaDescription: 26*48a6c7bcSNipun Gupta Device ID for this CDX device, in hexadecimal. Device ID is 27*48a6c7bcSNipun Gupta 16 bit identifier to identify a device type within the range 28*48a6c7bcSNipun Gupta of a device manufacturer. 29*48a6c7bcSNipun Gupta Combination of Vendor ID and Device ID identifies a device. 30*48a6c7bcSNipun Gupta 31*48a6c7bcSNipun GuptaWhat: /sys/bus/cdx/devices/.../reset 32*48a6c7bcSNipun GuptaDate: March 2023 33*48a6c7bcSNipun GuptaContact: nipun.gupta@amd.com 34*48a6c7bcSNipun GuptaDescription: 35*48a6c7bcSNipun Gupta Writing y/1/on to this file resets the CDX device. 36*48a6c7bcSNipun Gupta On resetting the device, the corresponding driver is notified 37*48a6c7bcSNipun Gupta twice, once before the device is being reset, and again after 38*48a6c7bcSNipun Gupta the reset has been complete. 39*48a6c7bcSNipun Gupta 40*48a6c7bcSNipun Gupta For example:: 41*48a6c7bcSNipun Gupta 42*48a6c7bcSNipun Gupta # echo 1 > /sys/bus/cdx/.../reset 43*48a6c7bcSNipun Gupta 44*48a6c7bcSNipun GuptaWhat: /sys/bus/cdx/devices/.../remove 45*48a6c7bcSNipun GuptaDate: March 2023 46*48a6c7bcSNipun GuptaContact: tarak.reddy@amd.com 47*48a6c7bcSNipun GuptaDescription: 48*48a6c7bcSNipun Gupta Writing y/1/on to this file removes the corresponding 49*48a6c7bcSNipun Gupta device from the CDX bus. If the device is to be reconfigured 50*48a6c7bcSNipun Gupta reconfigured in the Hardware, the device can be removed, so 51*48a6c7bcSNipun Gupta that the device driver does not access the device while it is 52*48a6c7bcSNipun Gupta being reconfigured. 53*48a6c7bcSNipun Gupta 54*48a6c7bcSNipun Gupta For example:: 55*48a6c7bcSNipun Gupta 56*48a6c7bcSNipun Gupta # echo 1 > /sys/bus/cdx/devices/.../remove 57