1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2021 Xilinx, Inc. 3 */ 4 5 #ifndef _SFC_NIC_DMA_H 6 #define _SFC_NIC_DMA_H 7 8 #include <rte_memzone.h> 9 10 #include "efx.h" 11 12 #include "sfc.h" 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 int sfc_nic_dma_attach(struct sfc_adapter *sa); 19 void sfc_nic_dma_detach(struct sfc_adapter *sa); 20 21 int sfc_nic_dma_mz_map(struct sfc_adapter *sa, const struct rte_memzone *mz, 22 efx_nic_dma_addr_type_t addr_type, 23 efsys_dma_addr_t *dma_addr); 24 25 #ifdef __cplusplus 26 } 27 #endif 28 29 #endif /* _SFC_NIC_DMA_H */ 30