diff mbox series

[RFC,07/29] net/qdma: add supported qdma version

Message ID 20220706075219.517046-8-aman.kumar@vvdntech.in (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers show
Series cover letter for net/qdma PMD | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Aman Kumar July 6, 2022, 7:51 a.m. UTC
qdma-20.2 is supported for latest firmware.

Signed-off-by: Aman Kumar <aman.kumar@vvdntech.in>
---
 drivers/net/qdma/qdma_version.h | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 drivers/net/qdma/qdma_version.h
diff mbox series

Patch

diff --git a/drivers/net/qdma/qdma_version.h b/drivers/net/qdma/qdma_version.h
new file mode 100644
index 0000000000..0cc38321f7
--- /dev/null
+++ b/drivers/net/qdma/qdma_version.h
@@ -0,0 +1,23 @@ 
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2017-2022 Xilinx, Inc. All rights reserved.
+ */
+
+#ifndef __QDMA_VERSION_H__
+#define __QDMA_VERSION_H__
+
+#define qdma_stringify1(x...)	#x
+#define qdma_stringify(x...)	qdma_stringify1(x)
+
+#define QDMA_PMD_MAJOR		2020
+#define QDMA_PMD_MINOR		2
+#define QDMA_PMD_PATCHLEVEL	1
+
+#define QDMA_PMD_VERSION      \
+	qdma_stringify(QDMA_PMD_MAJOR) "." \
+	qdma_stringify(QDMA_PMD_MINOR) "." \
+	qdma_stringify(QDMA_PMD_PATCHLEVEL)
+
+#define QDMA_PMD_VERSION_NUMBER  \
+	((QDMA_PMD_MAJOR) * 1000 + (QDMA_PMD_MINOR) * 100 + QDMA_PMD_PATCHLEVEL)
+
+#endif /* ifndef __QDMA_VERSION_H__ */