From 95d9ae9e37b78757bf0400d49ca2aef5d9dfe431 Mon Sep 17 00:00:00 2001 From: Andy Moreton Date: Thu, 24 Sep 2020 13:12:34 +0100 Subject: [PATCH] common/sfc_efx/base: add option for descriptor proxy queues EF100 uses descriptor proxy queues to support virtio-blk proxy. Signed-off-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/common/sfc_efx/base/efx_check.h | 10 ++++++++++ drivers/common/sfc_efx/efsys.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_check.h b/drivers/common/sfc_efx/base/efx_check.h index 40ba57be6f..8f42d87a04 100644 --- a/drivers/common/sfc_efx/base/efx_check.h +++ b/drivers/common/sfc_efx/base/efx_check.h @@ -391,4 +391,14 @@ # endif #endif /* EFSYS_OPT_EV_EXTENDED_WIDTH */ +/* Support descriptor proxy queues */ +#if EFSYS_OPT_DESC_PROXY +# if !EFSYS_OPT_RIVERHEAD +# error "DESC_PROXY requires RIVERHEAD" +# endif +# if !EFSYS_OPT_EV_EXTENDED_WIDTH +# error "DESC_PROXY requires EV_EXTENDED_WIDTH" +# endif +#endif /* EFSYS_OPT_DESC_PROXY */ + #endif /* _SYS_EFX_CHECK_H */ diff --git a/drivers/common/sfc_efx/efsys.h b/drivers/common/sfc_efx/efsys.h index f74b703cda..9ad7c82b86 100644 --- a/drivers/common/sfc_efx/efsys.h +++ b/drivers/common/sfc_efx/efsys.h @@ -165,6 +165,8 @@ prefetch_read_once(const volatile void *addr) #define EFSYS_OPT_PCI 0 +#define EFSYS_OPT_DESC_PROXY 0 + /* ID */ typedef struct __efsys_identifier_s efsys_identifier_t; -- 2.20.1