pci-endpoint-test.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. *) raise MSI-X IRQ
  11. *) read data
  12. *) write data
  13. *) copy data
  14. This misc driver creates /dev/pci-endpoint-test.<num> for every
  15. *pci_epf_test* function connected to the root complex and "ioctls"
  16. should be used to perform the above tests.
  17. ioctl
  18. -----
  19. PCITEST_BAR: Tests the BAR. The number of the BAR to be tested
  20. should be passed as argument.
  21. PCITEST_LEGACY_IRQ: Tests legacy IRQ
  22. PCITEST_MSI: Tests message signalled interrupts. The MSI number
  23. to be tested should be passed as argument.
  24. PCITEST_MSIX: Tests message signalled interrupts. The MSI-X number
  25. to be tested should be passed as argument.
  26. PCITEST_SET_IRQTYPE: Changes driver IRQ type configuration. The IRQ type
  27. should be passed as argument (0: Legacy, 1:MSI, 2:MSI-X).
  28. PCITEST_GET_IRQTYPE: Gets driver IRQ type configuration.
  29. PCITEST_WRITE: Perform write tests. The size of the buffer should be passed
  30. as argument.
  31. PCITEST_READ: Perform read tests. The size of the buffer should be passed
  32. as argument.
  33. PCITEST_COPY: Perform read tests. The size of the buffer should be passed
  34. as argument.
  35. [1] -> Documentation/PCI/endpoint/function/binding/pci-test.txt