1 .. SPDX-License-Identifier: GPL-2.0
3 =====================================
4 Driver for PCI Endpoint Test Function
5 =====================================
7 This driver should be used as a host side driver if the root complex is
8 connected to a configurable PCI endpoint running ``pci_epf_test`` function
9 driver configured according to [1]_.
11 The "pci_endpoint_test" driver can be used to perform the following tests.
13 The PCI driver for the test device performs the following tests:
15 #) verifying addresses programmed in BAR
23 This misc driver creates /dev/pci-endpoint-test.<num> for every
24 ``pci_epf_test`` function connected to the root complex and "ioctls"
25 should be used to perform the above tests.
31 Tests the BAR. The number of the BAR to be tested
32 should be passed as argument.
36 Tests message signalled interrupts. The MSI number
37 to be tested should be passed as argument.
39 Tests message signalled interrupts. The MSI-X number
40 to be tested should be passed as argument.
42 Changes driver IRQ type configuration. The IRQ type
43 should be passed as argument (0: Legacy, 1:MSI, 2:MSI-X).
45 Gets driver IRQ type configuration.
47 Perform write tests. The size of the buffer should be passed
50 Perform read tests. The size of the buffer should be passed
53 Perform read tests. The size of the buffer should be passed
56 .. [1] Documentation/PCI/endpoint/function/binding/pci-test.rst