mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 19:45:08 +07:00
2c156ac71c
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
20 lines
516 B
C
20 lines
516 B
C
/**
|
|
* 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)
|
|
|
|
#endif /* __UAPI_LINUX_PCITEST_H */
|