2017-11-01 21:08:43 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2017-03-27 16:45:14 +07:00
|
|
|
/**
|
|
|
|
* pcitest.h - PCI test uapi defines
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Texas Instruments
|
|
|
|
* Author: Kishon Vijay Abraham I <kishon@ti.com>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __UAPI_LINUX_PCITEST_H
|
|
|
|
#define __UAPI_LINUX_PCITEST_H
|
|
|
|
|
|
|
|
#define PCITEST_BAR _IO('P', 0x1)
|
|
|
|
#define PCITEST_LEGACY_IRQ _IO('P', 0x2)
|
|
|
|
#define PCITEST_MSI _IOW('P', 0x3, int)
|
|
|
|
#define PCITEST_WRITE _IOW('P', 0x4, unsigned long)
|
|
|
|
#define PCITEST_READ _IOW('P', 0x5, unsigned long)
|
|
|
|
#define PCITEST_COPY _IOW('P', 0x6, unsigned long)
|
2018-07-19 15:32:19 +07:00
|
|
|
#define PCITEST_MSIX _IOW('P', 0x7, int)
|
2018-07-19 15:32:20 +07:00
|
|
|
#define PCITEST_SET_IRQTYPE _IOW('P', 0x8, int)
|
|
|
|
#define PCITEST_GET_IRQTYPE _IO('P', 0x9)
|
2020-03-17 17:01:55 +07:00
|
|
|
#define PCITEST_CLEAR_IRQ _IO('P', 0x10)
|
2017-03-27 16:45:14 +07:00
|
|
|
|
2020-03-16 18:24:23 +07:00
|
|
|
#define PCITEST_FLAGS_USE_DMA 0x00000001
|
|
|
|
|
|
|
|
struct pci_endpoint_test_xfer_param {
|
|
|
|
unsigned long size;
|
|
|
|
unsigned char flags;
|
|
|
|
};
|
|
|
|
|
2017-03-27 16:45:14 +07:00
|
|
|
#endif /* __UAPI_LINUX_PCITEST_H */
|