Skip to content

Commit 2b48d3d

Browse files
floatiouskwilczynski
authored andcommitted
PCI: endpoint: pcitest: Add IRQ_TYPE_* defines to UAPI header
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
1 parent e1ec81e commit 2b48d3d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/uapi/linux/pcitest.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
#define PCITEST_BARS _IO('P', 0xa)
2424
#define PCITEST_CLEAR_IRQ _IO('P', 0x10)
2525

26+
#define PCITEST_IRQ_TYPE_UNDEFINED -1
27+
#define PCITEST_IRQ_TYPE_INTX 0
28+
#define PCITEST_IRQ_TYPE_MSI 1
29+
#define PCITEST_IRQ_TYPE_MSIX 2
30+
2631
#define PCITEST_FLAGS_USE_DMA 0x00000001
2732

2833
struct pci_endpoint_test_xfer_param {

0 commit comments

Comments
 (0)