mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 17:01:57 +07:00
e03327122e
Add MSI-X support and update driver documentation accordingly. Add 2 new IOCTL commands: - Allow to reconfigure driver IRQ type in runtime. - Allow to retrieve current driver IRQ type configured. Add IRQ type validation before executing the READ/WRITE/COPY tests. Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
24 lines
711 B
C
24 lines
711 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/**
|
|
* 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)
|
|
#define PCITEST_MSIX _IOW('P', 0x7, int)
|
|
#define PCITEST_SET_IRQTYPE _IOW('P', 0x8, int)
|
|
#define PCITEST_GET_IRQTYPE _IO('P', 0x9)
|
|
|
|
#endif /* __UAPI_LINUX_PCITEST_H */
|