The PCI tool ( pcitool) allows testing of the PCI devices.
In EDA Quick Test mode, pcitool completes a simple check on the PCI bus. The tool scans the PCI bus for all drivers and functions and writes the configuration registers to the configuration file.
Syntax: ./pcitool <option> -h := show this help scan := scan all PCI devices all := scan and show all config data test := test using the default PCI test config file show <bus# dev# func#> := show config data for a specific bus:dev.func read <bus# dev# func# offset count> := read 8-bit config register for bus:dev.func write <bus# dev# func# offset data> := write 8-bit config register for bus:dev.func
# more default_pci_list.cfg Bus:Dev.Fn=00:00.0 ID=0c738086 NOT LISTED 0c738086 00000007 06000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00008086 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01080000 00000000 00020fb1 00000000 Bus:Dev.Fn=00:01.0 ID=0c468086 PCIe port 0c468086 00100147 06040002 00010010 ff760004 00000000 00010100 000000f0 …