pci-endpoint-test.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Driver for PCI Endpoint Test Function
  2. This driver should be used as a host side driver if the root complex is
  3. connected to a configurable PCI endpoint running *pci_epf_test* function
  4. driver configured according to [1].
  5. The "pci_endpoint_test" driver can be used to perform the following tests.
  6. The PCI driver for the test device performs the following tests
  7. *) verifying addresses programmed in BAR
  8. *) raise legacy IRQ
  9. *) raise MSI IRQ
  10. *) read data
  11. *) write data
  12. *) copy data
  13. This misc driver creates /dev/pci-endpoint-test.<num> for every
  14. *pci_epf_test* function connected to the root complex and "ioctls"
  15. should be used to perform the above tests.
  16. ioctl
  17. -----
  18. PCITEST_BAR: Tests the BAR. The number of the BAR to be tested
  19. should be passed as argument.
  20. PCITEST_LEGACY_IRQ: Tests legacy IRQ
  21. PCITEST_MSI: Tests message signalled interrupts. The MSI number
  22. to be tested should be passed as argument.
  23. PCITEST_WRITE: Perform write tests. The size of the buffer should be passed
  24. as argument.
  25. PCITEST_READ: Perform read tests. The size of the buffer should be passed
  26. as argument.
  27. PCITEST_COPY: Perform read tests. The size of the buffer should be passed
  28. as argument.
  29. [1] -> Documentation/PCI/endpoint/function/binding/pci-test.txt