Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: misc-devices/pci-endpoint-test.txt: convert to ReST

- Use titles markups;
- Adjust identation;
- use literal markup;
- Use the proper notation for footnotes.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/d4def59b3e3042208ed44558ddfd96c8753fb88c.1592203650.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
16a60665 8a05eb89

+57 -41
+1
Documentation/misc-devices/index.rst
··· 22 22 lis3lv02d 23 23 max6875 24 24 mic/index 25 + pci-endpoint-test 25 26 spear-pcie-gadget 26 27 uacce 27 28 xilinx_sdfec
+56
Documentation/misc-devices/pci-endpoint-test.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ===================================== 4 + Driver for PCI Endpoint Test Function 5 + ===================================== 6 + 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]_. 10 + 11 + The "pci_endpoint_test" driver can be used to perform the following tests. 12 + 13 + The PCI driver for the test device performs the following tests: 14 + 15 + #) verifying addresses programmed in BAR 16 + #) raise legacy IRQ 17 + #) raise MSI IRQ 18 + #) raise MSI-X IRQ 19 + #) read data 20 + #) write data 21 + #) copy data 22 + 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. 26 + 27 + ioctl 28 + ----- 29 + 30 + PCITEST_BAR: 31 + Tests the BAR. The number of the BAR to be tested 32 + should be passed as argument. 33 + PCITEST_LEGACY_IRQ: 34 + Tests legacy IRQ 35 + PCITEST_MSI: 36 + Tests message signalled interrupts. The MSI number 37 + to be tested should be passed as argument. 38 + PCITEST_MSIX: 39 + Tests message signalled interrupts. The MSI-X number 40 + to be tested should be passed as argument. 41 + PCITEST_SET_IRQTYPE: 42 + Changes driver IRQ type configuration. The IRQ type 43 + 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 passed 48 + as argument. 49 + PCITEST_READ: 50 + Perform read tests. The size of the buffer should be passed 51 + as argument. 52 + PCITEST_COPY: 53 + Perform read tests. The size of the buffer should be passed 54 + as argument. 55 + 56 + .. [1] Documentation/PCI/endpoint/function/binding/pci-test.txt
-41
Documentation/misc-devices/pci-endpoint-test.txt
··· 1 - Driver for PCI Endpoint Test Function 2 - 3 - This driver should be used as a host side driver if the root complex is 4 - connected to a configurable PCI endpoint running *pci_epf_test* function 5 - driver configured according to [1]. 6 - 7 - The "pci_endpoint_test" driver can be used to perform the following tests. 8 - 9 - The PCI driver for the test device performs the following tests 10 - *) verifying addresses programmed in BAR 11 - *) raise legacy IRQ 12 - *) raise MSI IRQ 13 - *) raise MSI-X IRQ 14 - *) read data 15 - *) write data 16 - *) copy data 17 - 18 - This misc driver creates /dev/pci-endpoint-test.<num> for every 19 - *pci_epf_test* function connected to the root complex and "ioctls" 20 - should be used to perform the above tests. 21 - 22 - ioctl 23 - ----- 24 - PCITEST_BAR: Tests the BAR. The number of the BAR to be tested 25 - should be passed as argument. 26 - PCITEST_LEGACY_IRQ: Tests legacy IRQ 27 - PCITEST_MSI: Tests message signalled interrupts. The MSI number 28 - to be tested should be passed as argument. 29 - PCITEST_MSIX: Tests message signalled interrupts. The MSI-X number 30 - to be tested should be passed as argument. 31 - PCITEST_SET_IRQTYPE: Changes driver IRQ type configuration. The IRQ type 32 - should be passed as argument (0: Legacy, 1:MSI, 2:MSI-X). 33 - PCITEST_GET_IRQTYPE: Gets driver IRQ type configuration. 34 - PCITEST_WRITE: Perform write tests. The size of the buffer should be passed 35 - as argument. 36 - PCITEST_READ: Perform read tests. The size of the buffer should be passed 37 - as argument. 38 - PCITEST_COPY: Perform read tests. The size of the buffer should be passed 39 - as argument. 40 - 41 - [1] -> Documentation/PCI/endpoint/function/binding/pci-test.txt