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.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -23,6 +23,11 @@ · 22 unmodified lines | ||
| 23 | 23 | #define PCITEST_BARS _IO('P', 0xa) |
| 24 | 24 | #define PCITEST_CLEAR_IRQ _IO('P', 0x10) |
| 25 | 25 | |
| 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 | + | |
| 26 | 31 | #define PCITEST_FLAGS_USE_DMA 0x00000001 |
| 27 | 32 | |
| 28 | 33 | struct pci_endpoint_test_xfer_param { |