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 AA1AB45AAF; Fri, 4 Oct 2024 17:56:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CCFCA42F1B; Fri, 4 Oct 2024 17:51:52 +0200 (CEST) Received: from egress-ip11a.ess.de.barracuda.com (egress-ip11a.ess.de.barracuda.com [18.184.203.234]) by mails.dpdk.org (Postfix) with ESMTP id 0FA5E42EDA for ; Fri, 4 Oct 2024 17:51:49 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03lp2172.outbound.protection.outlook.com [104.47.51.172]) by mx-outbound44-124.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 04 Oct 2024 15:51:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MUNcuHKFZHRXaWWWEQFFsqjzPKRwvcfj9tzc4ngGN3dO3cKcddmfM2KW5ucE2EuXAEhYECZFZvPamNAbYKBePta5gniQNg0WQATqKM4PueWLdEnKGg6IY0gtvMuZMwV0oj8uqc+yfj8b3ZcooQgcDLUWY09rEjesu9xThsbTRyiPRX+Ob9WfQcuTSBDk7CTooGujLchHtrx/uAAIbYMtNdgauA29yJivJAM+vyQ5TqcOD/CybpeB45wltspf/fIpcZh4aOGisn8xLIXwH5puqs1/RD6KJaK4ydYdfNN0Y70EA2qeP1HLwaHglOzZTIb+3KHPAfkEGbfZM0HJGHwLww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=F6OSx5zMTi+YG1t1pCGRnGsdIQpSWnmxLS4iCDqEEXQ=; b=TqJjtSvGpka972rGjBkPv8YbfAXBLL4KYmfyHW8iOrWNlgdFd3aCyUQH03Hdhx3ysIHXO3m6vNmLndfwPlSVz5KFLx08eXkINdz6pk0ZI8Wwe5vBoCblpGmu/itZ+7qkgQGytkRcB5H4d28AgIpU4f+Ncyy4qZfKWVoToJplA6Dm+IwbrYVngkZ0Omex3NJhWiio+aNLsdxHzIuNclpMM83a5GrtP9G9+9ObIWpT83WAQ//qqpgYlfPPp4FJwbv7sUet6kN0jl/UQIN+nqYwQiLMjKmIbSfLjT9TFp0E4x57xrZCszxfEha9qJWGbtiugb4csUsbk+sBMqzR3R+KNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 178.72.21.4) smtp.rcpttodomain=dpdk.org smtp.mailfrom=napatech.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=napatech.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=napatech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F6OSx5zMTi+YG1t1pCGRnGsdIQpSWnmxLS4iCDqEEXQ=; b=Nd52C2ElVZIOTtp1Ufxt2jVbcKMbgBeTZKbcpqLVNi5qn9+Gheca3pz6QTc3ZnlgWSHxnMzmDCA4D99NDtvw3Lnei6/dbtGHkErphAH/nQIY9IeJE/eS7bVHwGWIH4cu6ZzU7Mvctyhyh7i2tqcc8pn6lgQmcY/2T5IuzsjZWho= Received: from AM0PR10CA0106.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::23) by DBAP190MB1016.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:1b0::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.30; Fri, 4 Oct 2024 15:36:17 +0000 Received: from AM2PEPF0001C715.eurprd05.prod.outlook.com (2603:10a6:208:e6:cafe::ae) by AM0PR10CA0106.outlook.office365.com (2603:10a6:208:e6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.18 via Frontend Transport; Fri, 4 Oct 2024 15:36:17 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 178.72.21.4) smtp.mailfrom=napatech.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=napatech.com; Received-SPF: Fail (protection.outlook.com: domain of napatech.com does not designate 178.72.21.4 as permitted sender) receiver=protection.outlook.com; client-ip=178.72.21.4; helo=localhost.localdomain; Received: from localhost.localdomain (178.72.21.4) by AM2PEPF0001C715.mail.protection.outlook.com (10.167.16.185) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 4 Oct 2024 15:36:17 +0000 From: Serhii Iliushyk To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, andrew.rybchenko@oktetlabs.ru, ferruh.yigit@amd.com, Oleksandr Kolomeiets Subject: [PATCH v1 17/31] net/ntnic: add checksum update (CSU) flow module Date: Fri, 4 Oct 2024 17:34:40 +0200 Message-ID: <20241004153551.267935-23-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241004153551.267935-1-sil-plv@napatech.com> References: <20241004153551.267935-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C715:EE_|DBAP190MB1016:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a1e16735-0a19-47d4-11cc-08dce48a49b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Ulx0X/+XnCxnQ9mN/qUMNdpi8EhNWgKxDWiJyf+mim1bzv9Y2tzyTRV/w20v?= =?us-ascii?Q?S6NE3eEQ5taQ0AR4i8fTQp7EmWkIHLewyD7jl2CLUdzGpP2oNcw9fBA7nzYv?= =?us-ascii?Q?Sd4/P6lZHaJkpxr4aytIRpj3fPKKYO8FmKznZG88MoPvu3ObKcm0FI+m4QkF?= =?us-ascii?Q?bWquiWzhJ6slYD7Sd+aWSPidWzTorAs1plrGCJo9+VyCXuNbErC9A6SBzL4P?= =?us-ascii?Q?UbvFkaEx3gZlic8C6yg5gYcrzztlazpEn2uqStKb+onUbZC3LyiDK10YmiZP?= =?us-ascii?Q?yQUeQ8Sg+k+lTJk0EnmzmZ98bLYe4iTK7TuKHXs70pjQuYCs8UDxsShSs2VZ?= =?us-ascii?Q?UNSF+LjFF2bidovNQsQdy6qKnTjcj7xB9uwaM2u86YTg5ymmY8CTPba2LzuX?= =?us-ascii?Q?sfuXmNy5yTVkW4KLAQkdYLQMKTx/4yeO6uEr4yY7MNc2ELjzVD2CVCeaTsTp?= =?us-ascii?Q?zdqzuvQQVKRYnx8lLPYGrnlRs3JhTu+Xcg3NBNRNpqI4ScccRwLncP6/tUVW?= =?us-ascii?Q?ijMqWz3nmIf1/1zNXo89NXjD1CQmb9oD24OTCH28UZhCyehZ9DTFiZeffmKv?= =?us-ascii?Q?gxTvk4Q/HWvKEtz4LXOCJyyexrmcNbX8sdS0gvgnPI7VPEoDjNsLhQEA0/Go?= =?us-ascii?Q?EDM2CIspFsOzA5N3oBih1kAmCwlyvY89ZtRg2BFNtYf0dSSQ72DKmJaQXd7N?= =?us-ascii?Q?r4l/Z4WjaImHN73BED2Fjnmop0YFzEL3NRyuYiwI9m8EkEW7f2Z/Op7WL/F6?= =?us-ascii?Q?jrh54YHFp+frl0ml60HT9xhd/cvfaHI1Mf1uMlatc5hddJHOixxBEnN5HMy7?= =?us-ascii?Q?SlvcNOpdhSGB0J/83+e7LWyjEi60i8UK8KFv2454EXuOhVhS4DqUjWDlB4K5?= =?us-ascii?Q?mc4nAHHgrJ+sCIJSFHUdKzqhvKW8SWeJ4RCkBamLjL5D1/GDWXU1SpiRrxsQ?= =?us-ascii?Q?FpeuCUb3IdhKsy2azCVBVctcynnlEFz93Jiw9MZZLw2jr2Wfz1UwoZrUC6pY?= =?us-ascii?Q?kCuFJsQTp/Gwo953vN9w/Io0FpwfvddZMieTSl8jxYdEQ5vwsDoFIFHU6gBr?= =?us-ascii?Q?X18WSGjkINvzjxD6s4tcIQx/aXy3SMfpJH0y04EGMWXA5xddag7GmPOOVDvp?= =?us-ascii?Q?SjTEuL3muj7BT61iItxEuWbPwpwkIrd5OWoTDljs4sAcegnRHe6swlStZ9tv?= =?us-ascii?Q?tJOdjPTMqiEaYWTpWIur9yYjj7werVVbvLvWlvb+ziLqSbNf2oAwkHQ0/ES1?= =?us-ascii?Q?zZ29z1haRcwaYeHrHHFsPsH10ry/T4a2WlTiJmlzp5I3OGBOx09azsbD6pLh?= =?us-ascii?Q?pxdHFJQhSYW/uGtLHE4rmeha9357oRlZUASUBegIM6GW7sbqpj2qrtXEKpwg?= =?us-ascii?Q?7R/ouU2RfvNyy2Yv3DUIc/G164GO?= X-Forefront-Antispam-Report: CIP:178.72.21.4; CTRY:DK; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:localhost.localdomain; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(36860700013)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: aossDeCeMIJNDVWfVsKFtMfIqiMU/N4Wg0ZEVVaCOygU6gHH18ntNS2ijmBAt4xiIaLSxyE1QFX/Sk/xKL5LISRXU4udeF8R6I/HG25/J7j3VZS2X2oUaZwS5KeKrBHGHr53ZXDf0p/HwCEKchNHd4IXIu50aJxeX4Qj3wkeCmQ9UOnWGWkLyakUaC10q7j+R5b3H1Ya/0mPY+OhCTGpo2XCnYzq++Ce+8W6BFTCKU5EQWWryoCEhVL7wgue7ALO6EHVTW6msPTmUAOeDe63x6Z3bbr/rnTInJZgeNhTFmwmGpY0+Kh3nQ2L7G2gXv9F53hz4jei1k43TqP7ISYcW3fkSbBVrZf5Qw8kC4BcJbaPIuV58EfaRr5itEcJdRMPJ0/yWUI4FuKahVrZTlFCrVhnAk8c+tgyFU2HaM6GhMXupKUlNQcfUecmqGJPIAIZ7iHtcjeHYISaZU0qJpatWGYyy9HWALEc0GFjsaejLqUYzYNYF2D6ucq4eFITf2oLCZ3IjqeU1t2kX4bTi6stCef/vwLe7YGSluPwrpEeYepr8E1qmyQ3wfh1qEgOq5mel5yz1ZOcQadJOGbzFdpdPPzU85l1yqWMNCPE3B5gVmJDmF6HiWIa9hUuE7n7o8ZtCg2Wk8tuclmp37SakzMmfw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2024 15:36:17.0647 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a1e16735-0a19-47d4-11cc-08dce48a49b5 X-MS-Exchange-CrossTenant-Id: c4540d0b-728a-4233-9da5-9ea30c7ec3ed X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c4540d0b-728a-4233-9da5-9ea30c7ec3ed; Ip=[178.72.21.4]; Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: AM2PEPF0001C715.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAP190MB1016 X-OriginatorOrg: napatech.com X-BESS-ID: 1728057107-311388-12689-32564-1 X-BESS-VER: 2019.1_20240924.1654 X-BESS-Apparent-Source-IP: 104.47.51.172 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVhYmBpZAVgZQ0MzSMM3UwjgtMd kiOTXNKNU8yTIpOcnSwjjJ1NTMwMxQqTYWAJLU++pBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259495 [from cloudscan14-151.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.50 BSF_RULE_7582B META: Custom Rule 7582B X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND, BSF_RULE_7582B X-BESS-BRTS-Status: 1 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: Oleksandr Kolomeiets The Checksum Update module updates the checksums of packets that has been modified in any way. Signed-off-by: Oleksandr Kolomeiets --- drivers/net/ntnic/meson.build | 1 + .../nthw/flow_api/flow_backend/flow_backend.c | 13 ++++ .../ntnic/nthw/flow_filter/flow_nthw_csu.c | 62 +++++++++++++++++++ .../ntnic/nthw/flow_filter/flow_nthw_csu.h | 35 +++++++++++ .../ntnic/nthw/supported/nthw_fpga_mod_defs.h | 1 + .../ntnic/nthw/supported/nthw_fpga_reg_defs.h | 1 + .../nthw/supported/nthw_fpga_reg_defs_csu.h | 31 ++++++++++ 7 files changed, 144 insertions(+) create mode 100644 drivers/net/ntnic/nthw/flow_filter/flow_nthw_csu.c create mode 100644 drivers/net/ntnic/nthw/flow_filter/flow_nthw_csu.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_csu.h diff --git a/drivers/net/ntnic/meson.build b/drivers/net/ntnic/meson.build index 3c00203e34..cc5e6fe100 100644 --- a/drivers/net/ntnic/meson.build +++ b/drivers/net/ntnic/meson.build @@ -47,6 +47,7 @@ sources = files( 'nthw/flow_api/flow_backend/flow_backend.c', 'nthw/flow_api/flow_filter.c', 'nthw/flow_filter/flow_nthw_cat.c', + 'nthw/flow_filter/flow_nthw_csu.c', 'nthw/flow_filter/flow_nthw_flm.c', 'nthw/flow_filter/flow_nthw_hfu.c', 'nthw/flow_filter/flow_nthw_hsh.c', diff --git a/drivers/net/ntnic/nthw/flow_api/flow_backend/flow_backend.c b/drivers/net/ntnic/nthw/flow_api/flow_backend/flow_backend.c index af1e8ce3a4..c12a3204bc 100644 --- a/drivers/net/ntnic/nthw/flow_api/flow_backend/flow_backend.c +++ b/drivers/net/ntnic/nthw/flow_api/flow_backend/flow_backend.c @@ -8,6 +8,7 @@ #include "flow_nthw_info.h" #include "flow_nthw_ifr.h" #include "flow_nthw_cat.h" +#include "flow_nthw_csu.h" #include "flow_nthw_km.h" #include "flow_nthw_flm.h" #include "flow_nthw_hfu.h" @@ -42,6 +43,7 @@ static struct backend_dev_s { struct hfu_nthw *p_hfu_nthw; /* TPE module */ struct rpp_lr_nthw *p_rpp_lr_nthw; /* TPE module */ struct tx_cpy_nthw *p_tx_cpy_nthw; /* TPE module */ + struct csu_nthw *p_csu_nthw; /* TPE module */ struct ifr_nthw *p_ifr_nthw; /* TPE module */ } be_devs[MAX_PHYS_ADAPTERS]; @@ -1819,6 +1821,16 @@ const struct flow_api_backend_ops *bin_flow_backend_init(nthw_fpga_t *p_fpga, vo be_devs[physical_adapter_no].p_tx_cpy_nthw = NULL; } + /* Init nthw CSU */ + if (csu_nthw_init(NULL, p_fpga, physical_adapter_no) == 0) { + struct csu_nthw *ptr = csu_nthw_new(); + csu_nthw_init(ptr, p_fpga, physical_adapter_no); + be_devs[physical_adapter_no].p_csu_nthw = ptr; + + } else { + be_devs[physical_adapter_no].p_csu_nthw = NULL; + } + be_devs[physical_adapter_no].adapter_no = physical_adapter_no; *dev = (void *)&be_devs[physical_adapter_no]; @@ -1836,6 +1848,7 @@ static void bin_flow_backend_done(void *dev) qsl_nthw_delete(be_dev->p_qsl_nthw); slc_lr_nthw_delete(be_dev->p_slc_lr_nthw); pdb_nthw_delete(be_dev->p_pdb_nthw); + csu_nthw_delete(be_dev->p_csu_nthw); hfu_nthw_delete(be_dev->p_hfu_nthw); rpp_lr_nthw_delete(be_dev->p_rpp_lr_nthw); tx_cpy_nthw_delete(be_dev->p_tx_cpy_nthw); diff --git a/drivers/net/ntnic/nthw/flow_filter/flow_nthw_csu.c b/drivers/net/ntnic/nthw/flow_filter/flow_nthw_csu.c new file mode 100644 index 0000000000..21efc62eda --- /dev/null +++ b/drivers/net/ntnic/nthw/flow_filter/flow_nthw_csu.c @@ -0,0 +1,62 @@ +/* + * SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2023 Napatech A/S + */ + +#include +#include + +#include "ntlog.h" +#include "nthw_drv.h" +#include "nthw_register.h" + +#include "flow_nthw_csu.h" + +struct csu_nthw *csu_nthw_new(void) +{ + struct csu_nthw *p = malloc(sizeof(struct csu_nthw)); + + if (p) + (void)memset(p, 0, sizeof(*p)); + + return p; +} + +void csu_nthw_delete(struct csu_nthw *p) +{ + if (p) { + (void)memset(p, 0, sizeof(*p)); + free(p); + } +} + +int csu_nthw_init(struct csu_nthw *p, nthw_fpga_t *p_fpga, int n_instance) +{ + const char *const p_adapter_id_str = p_fpga->p_fpga_info->mp_adapter_id_str; + nthw_module_t *p_mod = nthw_fpga_query_module(p_fpga, MOD_CSU, n_instance); + + assert(n_instance >= 0 && n_instance < 256); + + if (p == NULL) + return p_mod == NULL ? -1 : 0; + + if (p_mod == NULL) { + NT_LOG(ERR, NTHW, "%s: Csu %d: no such instance\n", p_adapter_id_str, n_instance); + return -1; + } + + p->mp_fpga = p_fpga; + p->m_physical_adapter_no = (uint8_t)n_instance; + p->m_csu = p_mod; + + p->mp_rcp_ctrl = nthw_module_get_register(p->m_csu, CSU_RCP_CTRL); + p->mp_rcp_ctrl_adr = nthw_register_get_field(p->mp_rcp_ctrl, CSU_RCP_CTRL_ADR); + p->mp_rcp_ctrl_cnt = nthw_register_get_field(p->mp_rcp_ctrl, CSU_RCP_CTRL_CNT); + p->mp_rcp_data = nthw_module_get_register(p->m_csu, CSU_RCP_DATA); + p->mp_rcp_data_ol3_cmd = nthw_register_get_field(p->mp_rcp_data, CSU_RCP_DATA_OL3_CMD); + p->mp_rcp_data_ol4_cmd = nthw_register_get_field(p->mp_rcp_data, CSU_RCP_DATA_OL4_CMD); + p->mp_rcp_data_il3_cmd = nthw_register_get_field(p->mp_rcp_data, CSU_RCP_DATA_IL3_CMD); + p->mp_rcp_data_il4_cmd = nthw_register_get_field(p->mp_rcp_data, CSU_RCP_DATA_IL4_CMD); + + return 0; +} diff --git a/drivers/net/ntnic/nthw/flow_filter/flow_nthw_csu.h b/drivers/net/ntnic/nthw/flow_filter/flow_nthw_csu.h new file mode 100644 index 0000000000..e5986a1a9b --- /dev/null +++ b/drivers/net/ntnic/nthw/flow_filter/flow_nthw_csu.h @@ -0,0 +1,35 @@ +/* + * SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2023 Napatech A/S + */ + +#ifndef _FLOW_NTHW_CSU_H_ +#define _FLOW_NTHW_CSU_H_ + +#include + +#include "nthw_fpga_model.h" + +struct csu_nthw { + uint8_t m_physical_adapter_no; + nthw_fpga_t *mp_fpga; + + nthw_module_t *m_csu; + + nthw_register_t *mp_rcp_ctrl; + nthw_field_t *mp_rcp_ctrl_adr; + nthw_field_t *mp_rcp_ctrl_cnt; + nthw_register_t *mp_rcp_data; + nthw_field_t *mp_rcp_data_ol3_cmd; + nthw_field_t *mp_rcp_data_ol4_cmd; + nthw_field_t *mp_rcp_data_il3_cmd; + nthw_field_t *mp_rcp_data_il4_cmd; +}; + +struct csu_nthw *csu_nthw_new(void); +void csu_nthw_delete(struct csu_nthw *p); +int csu_nthw_init(struct csu_nthw *p, nthw_fpga_t *p_fpga, int n_instance); + +int csu_nthw_setup(struct csu_nthw *p, int n_idx, int n_idx_cnt); + +#endif /* _FLOW_NTHW_CSU_H_ */ diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h b/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h index d93d9d3816..14e031dc69 100644 --- a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h +++ b/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h @@ -15,6 +15,7 @@ #define MOD_UNKNOWN (0L)/* Unknown/uninitialized - keep this as the first element */ #define MOD_CAT (0x30b447c2UL) +#define MOD_CSU (0x3f470787UL) #define MOD_FLM (0xe7ba53a4UL) #define MOD_GFG (0xfc423807UL) #define MOD_GMF (0x68b1d15aUL) diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs.h b/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs.h index d58d10c438..6eebab65a2 100644 --- a/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs.h +++ b/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs.h @@ -15,6 +15,7 @@ #include "nthw_fpga_reg_defs_cat.h" #include "nthw_fpga_reg_defs_cpy.h" +#include "nthw_fpga_reg_defs_csu.h" #include "nthw_fpga_reg_defs_flm.h" #include "nthw_fpga_reg_defs_gfg.h" #include "nthw_fpga_reg_defs_gmf.h" diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_csu.h b/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_csu.h new file mode 100644 index 0000000000..a67f1c392e --- /dev/null +++ b/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_csu.h @@ -0,0 +1,31 @@ +/* + * SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2024 Napatech A/S + */ + +/* + * nthw_fpga_reg_defs_csu.h + * + * Auto-generated file - do *NOT* edit + * + */ + +#ifndef _NTHW_FPGA_REG_DEFS_CSU_ +#define _NTHW_FPGA_REG_DEFS_CSU_ + +/* CSU */ +#define NTHW_MOD_CSU (0x3f470787UL) +#define CSU_RCP_CTRL (0x11955fefUL) +#define CSU_RCP_CTRL_ADR (0x8efb3c71UL) +#define CSU_RCP_CTRL_CNT (0x9ef3a5a0UL) +#define CSU_RCP_DATA (0xbe44ddf6UL) +#define CSU_RCP_DATA_IL3_CMD (0xdbac8e0dUL) +#define CSU_RCP_DATA_IL4_CMD (0x698c521dUL) +#define CSU_RCP_DATA_OL3_CMD (0xb87cbb37UL) +#define CSU_RCP_DATA_OL4_CMD (0xa5c6727UL) + +#endif /* _NTHW_FPGA_REG_DEFS_CSU_ */ + +/* + * Auto-generated file - do *NOT* edit + */ -- 2.45.0