diff --git a/drivers/pci/endpoint/functions/pci-epf-wrapper.h b/drivers/pci/endpoint/functions/pci-epf-wrapper.h index b8eb81cd..59f21178 100644 --- a/drivers/pci/endpoint/functions/pci-epf-wrapper.h +++ b/drivers/pci/endpoint/functions/pci-epf-wrapper.h @@ -1,8 +1,21 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: GPL-2.0-only + * SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + /* * PCIe EDMA Framework - * - * Copyright (C) 2022 NVIDIA Corporation. All rights reserved. */ #ifndef PCI_EPF_WRAPPER_H @@ -24,6 +37,7 @@ #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_map_addr(A, B, C, D, E) pci_epc_map_addr(A, B, 0, C, D, E) #define lpci_epc_unmap_addr(A, B, C) pci_epc_unmap_addr(A, B, 0, C) #else #define lpci_epc_write_header(A, B, C) pci_epc_write_header(A, B, C) @@ -31,6 +45,7 @@ #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_map_addr(A, B, C, D, E) pci_epc_map_addr(A, B, C, D, E) #define lpci_epc_unmap_addr(A, B, C) pci_epc_unmap_addr(A, B, C) #endif /* LINUX_VERSION_CODE */