]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: endpoint: pcitest: Add IRQ_TYPE_* defines to UAPI header
authorNiklas Cassel <cassel@kernel.org>
Mon, 10 Mar 2025 11:10:18 +0000 (12:10 +0100)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Fri, 14 Mar 2025 16:12:04 +0000 (16:12 +0000)
These IRQ_TYPE_* defines are used by both drivers/misc/pci_endpoint_test.c
and tools/testing/selftests/pci_endpoint/pci_endpoint_test.c.

Considering that both the misc driver and the selftest already includes
the pcitest.h UAPI header, it makes sense for these IRQ_TYPE_* defines
to be located in the pcitest.h UAPI header.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Link: https://lore.kernel.org/r/20250310111016.859445-10-cassel@kernel.org
include/uapi/linux/pcitest.h

index acd261f498666bbb757b0af26708305fb216b66a..304bf9be0f9a02c0f7261d6825caf45a560e6aac 100644 (file)
 #define PCITEST_BARS           _IO('P', 0xa)
 #define PCITEST_CLEAR_IRQ      _IO('P', 0x10)
 
+#define PCITEST_IRQ_TYPE_UNDEFINED     -1
+#define PCITEST_IRQ_TYPE_INTX          0
+#define PCITEST_IRQ_TYPE_MSI           1
+#define PCITEST_IRQ_TYPE_MSIX          2
+
 #define PCITEST_FLAGS_USE_DMA  0x00000001
 
 struct pci_endpoint_test_xfer_param {