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 0E40C46152; Fri, 31 Jan 2025 09:06:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C238141611; Fri, 31 Jan 2025 09:05:53 +0100 (CET) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B73CE41156 for ; Fri, 31 Jan 2025 09:05:50 +0100 (CET) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50V14U7F019036 for ; Fri, 31 Jan 2025 00:05:49 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=T /o0olEPM/5W0enuR2XND/cer6kuqACn6Hca/SeiXVQ=; b=AEb4I4JVVXDnKLyI6 Jewou5ocCg+QejfD6uphtOCFvG+iwAQqZvsiCxwozSQAVfFwPrZQHKSz2MUR10E6 KZ4nQLuhj9o8TuBgUS8O/QxvQ22zfbKq7xOW7aTBlrAZmI9kbhwviWgXGgXc5al9 qk/8hgjCdH0AmMm8D8sssY8Mg3h+8K09DDlzBJSf7NkWmsk1PRZpMthNTbFn+NSv Xp2OhgAHv5BAKLSfBYTdnWg+OjCLqu8vagLw/E/gNXi41v+f6C2IMTVM66HCwUxh q8xpNVF02onYS9it2NK/Wa6CtUA99ZEIAeCrW4+fv31q0ufGlKFkobxy9R2webBs ch4kg== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 44gmhnghfq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 31 Jan 2025 00:05:49 -0800 (PST) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 31 Jan 2025 00:05:48 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 31 Jan 2025 00:05:48 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 267CC3F705C; Fri, 31 Jan 2025 00:05:45 -0800 (PST) From: Nithin Dabilpuram To: , Nithin Dabilpuram , "Kiran Kumar K" , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , Anoob Joseph Subject: [PATCH 05/34] common/cnxk: add cn20k CPT result struct Date: Fri, 31 Jan 2025 13:35:00 +0530 Message-ID: <20250131080530.3224977-5-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250131080530.3224977-1-ndabilpuram@marvell.com> References: <20250131080530.3224977-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: tS67Epevffu773gxMPDrUmRqI2LaOBkp X-Proofpoint-GUID: tS67Epevffu773gxMPDrUmRqI2LaOBkp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-31_03,2025-01-30_01,2024-11-22_01 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: Anoob Joseph CPT result structure is same as in cn10k. Add entry for cn20k. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/hw/cpt.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/common/cnxk/hw/cpt.h b/drivers/common/cnxk/hw/cpt.h index 47df3fbf9f..b308a18f0d 100644 --- a/drivers/common/cnxk/hw/cpt.h +++ b/drivers/common/cnxk/hw/cpt.h @@ -289,6 +289,16 @@ struct cpt_inst_s { }; union cpt_res_s { + struct cpt_cn20k_res_s { + uint64_t compcode : 7; + uint64_t doneint : 1; + uint64_t uc_compcode : 8; + uint64_t rlen : 16; + uint64_t spi : 32; + + uint64_t esn; + } cn20k; + struct cpt_cn10k_res_s { uint64_t compcode : 7; uint64_t doneint : 1; -- 2.34.1