numam-dpdk/drivers/net/sfc/sfc_nic_dma.h
Viacheslav Galaktionov 3037e6cf3d net/sfc: support regioned NIC DMA memory mapping type
DMA on SN1022 SoC requires extra mapping of the memory via MCDI.

Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
2021-11-17 12:37:07 +01:00

30 lines
545 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Xilinx, Inc.
*/
#ifndef _SFC_NIC_DMA_H
#define _SFC_NIC_DMA_H
#include <rte_memzone.h>
#include "efx.h"
#include "sfc.h"
#ifdef __cplusplus
extern "C" {
#endif
int sfc_nic_dma_attach(struct sfc_adapter *sa);
void sfc_nic_dma_detach(struct sfc_adapter *sa);
int sfc_nic_dma_mz_map(struct sfc_adapter *sa, const struct rte_memzone *mz,
efx_nic_dma_addr_type_t addr_type,
efsys_dma_addr_t *dma_addr);
#ifdef __cplusplus
}
#endif
#endif /* _SFC_NIC_DMA_H */