From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1827D42C07; Thu, 1 Jun 2023 21:56:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9FF5B42D3D; Thu, 1 Jun 2023 21:55:46 +0200 (CEST) Received: from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80]) by mails.dpdk.org (Postfix) with ESMTP id D6EA0427F2 for ; Thu, 1 Jun 2023 21:55:42 +0200 (CEST) Received: from localhost.localdomain (unknown [78.109.69.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by agw.arknetworks.am (Postfix) with ESMTPSA id 5445EE1283; Thu, 1 Jun 2023 23:55:42 +0400 (+04) From: Ivan Malov To: dev@dpdk.org Cc: Andrew Rybchenko , Ferruh Yigit , Denis Pryazhennikov , Viacheslav Galaktionov Subject: [PATCH 04/34] common/sfc_efx/base: add macro to get indexed QWORD field Date: Thu, 1 Jun 2023 23:55:08 +0400 Message-Id: <20230601195538.8265-5-ivan.malov@arknetworks.am> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230601195538.8265-1-ivan.malov@arknetworks.am> References: <20230601195538.8265-1-ivan.malov@arknetworks.am> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Denis Pryazhennikov Extend MCDI macros to manipulate with fields in indexed QWORDs. Signed-off-by: Denis Pryazhennikov Reviewed-by: Ivan Malov Reviewed-by: Viacheslav Galaktionov --- 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.17.1