From: Denis Pryazhennikov <denis.pryazhenni...@arknetworks.am>

Extend MCDI macros to manipulate with fields in indexed QWORDs.

Signed-off-by: Denis Pryazhennikov <denis.pryazhenni...@arknetworks.am>
Reviewed-by: Ivan Malov <ivan.ma...@arknetworks.am>
Reviewed-by: Viacheslav Galaktionov <viacheslav.galaktio...@arknetworks.am>
---
 drivers/common/sfc_efx/base/efx_mcdi.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/common/sfc_efx/base/efx_mcdi.h 
b/drivers/common/sfc_efx/base/efx_mcdi.h
index 14a3833567..f13bf43da6 100644
--- a/drivers/common/sfc_efx/base/efx_mcdi.h
+++ b/drivers/common/sfc_efx/base/efx_mcdi.h
@@ -504,6 +504,10 @@ efx_mcdi_set_nic_addr_regions(
        EFX_DWORD_FIELD(*(MCDI_OUT2(_emr, efx_dword_t, _ofst) +         \
                        (_idx)), _field)
 
+#define        MCDI_OUT_INDEXED_QWORD_FIELD(_emr, _ofst, _idx, _field)         
\
+       EFX_QWORD_FIELD(*(MCDI_OUT2(_emr, efx_qword_t, _ofst) +         \
+                       (_idx)), _field)
+
 #define        MCDI_OUT_INDEXED_STRUCT_MEMBER(_emr, _type, _arr_ofst, _idx,    
\
                _member_ofst)                                           \
        ((_type *)(MCDI_OUT2(_emr, uint8_t, _arr_ofst) +                \
-- 
2.30.2

Reply via email to