brintos

brintos / linux-shallow public Read only

0
0
Text · 1.8 KiB · 4cf3f44 Raw
57 lines · plain
1.. SPDX-License-Identifier: GPL-2.02 3=====================================4Driver for PCI Endpoint Test Function5=====================================6 7This driver should be used as a host side driver if the root complex is8connected to a configurable PCI endpoint running ``pci_epf_test`` function9driver configured according to [1]_.10 11The "pci_endpoint_test" driver can be used to perform the following tests.12 13The PCI driver for the test device performs the following tests:14 15	#) verifying addresses programmed in BAR16	#) raise legacy IRQ17	#) raise MSI IRQ18	#) raise MSI-X IRQ19	#) read data20	#) write data21	#) copy data22 23This misc driver creates /dev/pci-endpoint-test.<num> for every24``pci_epf_test`` function connected to the root complex and "ioctls"25should be used to perform the above tests.26 27ioctl28-----29 30 PCITEST_BAR:31	      Tests the BAR. The number of the BAR to be tested32	      should be passed as argument.33 PCITEST_LEGACY_IRQ:34	      Tests legacy IRQ35 PCITEST_MSI:36	      Tests message signalled interrupts. The MSI number37	      to be tested should be passed as argument.38 PCITEST_MSIX:39	      Tests message signalled interrupts. The MSI-X number40	      to be tested should be passed as argument.41 PCITEST_SET_IRQTYPE:42	      Changes driver IRQ type configuration. The IRQ type43	      should be passed as argument (0: Legacy, 1:MSI, 2:MSI-X).44 PCITEST_GET_IRQTYPE:45	      Gets driver IRQ type configuration.46 PCITEST_WRITE:47	      Perform write tests. The size of the buffer should be passed48	      as argument.49 PCITEST_READ:50	      Perform read tests. The size of the buffer should be passed51	      as argument.52 PCITEST_COPY:53	      Perform read tests. The size of the buffer should be passed54	      as argument.55 56.. [1] Documentation/PCI/endpoint/function/binding/pci-test.rst57