mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
pci: epf: Add dma test function driver
Add DMA test function driver from Nvidia repro Bug 3583632 Change-Id: I603d16f74cba2b4752ab31af59b12e7c784f042e Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2736247 Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
0d83600487
commit
87f4a51862
33
drivers/pci/endpoint/functions/pci-epf-wrapper.h
Normal file
33
drivers/pci/endpoint/functions/pci-epf-wrapper.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* PCIe EDMA Framework
|
||||
*
|
||||
* Copyright (C) 2022 NVIDIA Corporation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef PCI_EPF_WRAPPER_H
|
||||
#define PCI_EPF_WRAPPER_H
|
||||
|
||||
#include <linux/version.h>
|
||||
|
||||
#if (LINUX_VERSION_CODE > KERNEL_VERSION(5, 14, 0))
|
||||
#define lpci_epc_write_header(A, B, C) pci_epc_write_header(A, B, 0, C)
|
||||
#define lpci_epc_raise_irq(A, B, C, D) pci_epc_raise_irq(A, B, 0, C, D)
|
||||
#define lpci_epc_clear_bar(A, B, C) pci_epc_clear_bar(A, B, 0, C)
|
||||
#define lpci_epc_set_msi(A, B, C) pci_epc_set_msi(A, B, 0, C)
|
||||
#define lpci_epc_set_bar(A, B, C) pci_epc_set_bar(A, B, 0, C)
|
||||
#define lpci_epc_unmap_addr(A, B, C) pci_epc_unmap_addr(A, B, 0, C)
|
||||
#define lpci_epf_free_space(A, B, C) pci_epf_free_space(A, B, C, PRIMARY_INTERFACE)
|
||||
#define lpci_epf_alloc_space(A, B, C, D) pci_epf_alloc_space(A, B, C, D, PRIMARY_INTERFACE)
|
||||
#else
|
||||
#define lpci_epc_write_header(A, B, C) pci_epc_write_header(A, B, C)
|
||||
#define lpci_epc_raise_irq(A, B, C, D) pci_epc_raise_irq(A, B, C, D)
|
||||
#define lpci_epc_clear_bar(A, B, C) pci_epc_clear_bar(A, B, C)
|
||||
#define lpci_epc_set_msi(A, B, C) pci_epc_set_msi(A, B, C)
|
||||
#define lpci_epc_set_bar(A, B, C) pci_epc_set_bar(A, B, C)
|
||||
#define lpci_epc_unmap_addr(A, B, C) pci_epc_unmap_addr(A, B, C)
|
||||
#define lpci_epf_free_space(A, B, C) pci_epf_free_space(A, B, C)
|
||||
#define lpci_epf_alloc_space(A, B, C, D) pci_epf_alloc_space(A, B, C, D)
|
||||
#endif /* LINUX_VERSION_CODE */
|
||||
|
||||
#endif /* PCI_EPF_WRAPPER_H */
|
||||
Reference in New Issue
Block a user