Added initial source files and build files for ML cnxk driver.
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
---
Depends-on: patch-120600 ("common/cnxk: add ML headers and ROC code for cnxk")
MAINTAINERS | 2 ++
drivers/meson.build | 1 +
drivers/ml/cnxk/cn10k_ml_dev.c | 8 ++++++++
drivers/ml/cnxk/cn10k_ml_dev.h | 8 ++++++++
drivers/ml/cnxk/meson.build | 26 ++++++++++++++++++++++++++
drivers/ml/meson.build | 8 ++++++++
6 files changed, 53 insertions(+)
create mode 100644 drivers/ml/cnxk/cn10k_ml_dev.c
create mode 100644 drivers/ml/cnxk/cn10k_ml_dev.h
create mode 100644 drivers/ml/cnxk/meson.build
create mode 100644 drivers/ml/meson.build
--
2.17.1
@@ -1442,6 +1442,8 @@ Marvell ML CNXK
M: Srikanth Yalavarthi <syalavarthi@marvell.com>
F: drivers/common/cnxk/hw/ml.h
F: drivers/common/cnxk/roc_ml*
+F: drivers/ml/cnxk/
+
Packet processing
-----------------
@@ -14,6 +14,7 @@ subdirs = [
'mempool', # depends on common and bus.
'dma', # depends on common and bus.
'net', # depends on common, bus, mempool
+ 'ml', # depends on common, bus, mempool
'raw', # depends on common, bus, dma and net.
'crypto', # depends on common, bus and mempool (net in future).
'compress', # depends on common, bus, mempool.
new file mode 100644
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2022 Marvell.
+ */
+
+#include <rte_mldev.h>
+#include <rte_mldev_pmd.h>
+
+#include "cn10k_ml_dev.h"
new file mode 100644
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2022 Marvell.
+ */
+
+#ifndef _CN10K_ML_DEV_H_
+#define _CN10K_ML_DEV_H_
+
+#endif /* _CN10K_ML_DEV_H_ */
new file mode 100644
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2022 Marvell.
+
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+ build = false
+ reason = 'only supported on 64-bit Linux'
+ subdir_done()
+endif
+
+sources = files(
+ 'cn10k_ml_dev.c',
+)
+
+headers = files(
+ 'cn10k_ml_dev.h',
+)
+
+deps += ['mldev', 'common_ml', 'common_cnxk']
+
+if get_option('buildtype').contains('debug')
+ cflags += [ '-DCNXK_ML_DEV_DEBUG' ]
+else
+ cflags += [ '-UCNXK_ML_DEV_DEBUG' ]
+endif
+
+pmd_supports_disable_iova_as_pa = true
new file mode 100644
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2022 Marvell.
+
+drivers = [
+ 'cnxk',
+]
+
+std_deps = ['mldev']