1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Marvell International Ltd.
5 #include <rte_common.h>
7 #include <env/mv_autogen_comp_flags.h>
8 #include <env/mv_sys_dma.h>
10 #include "rte_mvep_common.h"
12 /* Memory size (in bytes) for MUSDK dma buffers */
13 #define MRVL_MUSDK_DMA_MEMSIZE (40 * 1024 * 1024)
19 static struct mvep mvep;
21 int rte_mvep_init(enum mvep_module_type module __rte_unused,
22 struct rte_kvargs *kvlist __rte_unused)
26 if (!mvep.ref_count) {
27 ret = mv_sys_dma_mem_init(MRVL_MUSDK_DMA_MEMSIZE);
37 int rte_mvep_deinit(enum mvep_module_type module __rte_unused)
42 mv_sys_dma_mem_destroy();