common/sfc_efx/base: add option for extended width events
authorAndy Moreton <amoreton@xilinx.com>
Thu, 24 Sep 2020 12:12:29 +0000 (13:12 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:13 +0000 (19:19 +0200)
EF100 uses event queues with 256bit extended width events to
support descriptor proxy queues.

Signed-off-by: Andy Moreton <amoreton@xilinx.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/common/sfc_efx/base/efx_check.h
drivers/common/sfc_efx/efsys.h

index f9f9794..40ba57b 100644 (file)
 # endif
 #endif /* EFSYS_OPT_PCI */
 
+/* Support extended width event queues */
+#if EFSYS_OPT_EV_EXTENDED_WIDTH
+# if !EFSYS_OPT_RIVERHEAD
+#  error "EV_EXTENDED_WIDTH requires RIVERHEAD"
+# endif
+#endif /* EFSYS_OPT_EV_EXTENDED_WIDTH */
+
 #endif /* _SYS_EFX_CHECK_H */
index de1c1c3..f74b703 100644 (file)
@@ -142,6 +142,7 @@ prefetch_read_once(const volatile void *addr)
 #define EFSYS_OPT_FILTER 1
 #define EFSYS_OPT_RX_SCATTER 0
 
+#define EFSYS_OPT_EV_EXTENDED_WIDTH 0
 #define EFSYS_OPT_EV_PREFETCH 0
 
 #define EFSYS_OPT_DECODE_INTR_FATAL 0