]> git.droids-corp.org - dpdk.git/blobdiff - drivers/crypto/octeontx2/otx2_cryptodev_hw_access.h
eal/windows: add missing SPDX license tag
[dpdk.git] / drivers / crypto / octeontx2 / otx2_cryptodev_hw_access.h
index a435818e0cace20a27068bf4420e958b6661cc17..f9981ea8c909dd411bbffbb79cf204e453f97daf 100644 (file)
@@ -44,9 +44,9 @@
 #define OTX2_CPT_AF_LF_CTL(a)          (0x27000ull | (uint64_t)(a) << 3)
 #define OTX2_CPT_AF_LF_CTL2(a)         (0x29000ull | (uint64_t)(a) << 3)
 
-#define OTX2_CPT_LF_BAR2(vf, q_id) \
+#define OTX2_CPT_LF_BAR2(vf, blk_addr, q_id) \
                ((vf)->otx2_dev.bar2 + \
-                ((RVU_BLOCK_ADDR_CPT0 << 20) | ((q_id) << 12)))
+                ((blk_addr << 20) | ((q_id) << 12)))
 
 #define OTX2_CPT_QUEUE_HI_PRIO 0x1