net/ntnic: Add registers for NapaTech SmartNiC
Subsystems (2)
PATCH v3 15/17 net/ntnic: add link management module
In reply to Serhii IliushykAdd ntnic link control.
---
v2:
* Fixed unused header
--- drivers/net/ntnic/link_mgmt/nt4ga_link.c | 263 +++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 drivers/net/ntnic/link_mgmt/nt4ga_link.c
drivers/net/ntnic/link_mgmt/nt4ga_link.c new file +263 -0
@@ -0,0 +1,263 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#include <unistd.h> +#include <stdlib.h> +#include <stdint.h> +#include <inttypes.h> + +#include "ntlog.h" +#include "nthw_drv.h" +#include "nt4ga_adapter.h" +#include "ntnic_mod_reg.h" + +#include "nt4ga_link.h" +#include "nt_util.h" +#include "i2c_nim.h" + +static bool nt4ga_port_get_nim_present (struct adapter_info_s *p,int port); + +/* +* port:s link mode +*/ +static void nt4ga_port_set_adm_state (struct adapter_info_s *p,int port,bool adm_state); +static bool nt4ga_port_get_adm_state (struct adapter_info_s *p,int port); + +/* +* port:s link status +*/ +static void nt4ga_port_set_link_status (struct adapter_info_s *p,int port,bool status); +static bool nt4ga_port_get_link_status (struct adapter_info_s *p,int port); + +/* +* port: link autoneg +*/ +static void nt4ga_port_set_link_autoneg (struct adapter_info_s *p,int port,bool autoneg); +static bool nt4ga_port_get_link_autoneg (struct adapter_info_s *p,int port); + +/* +* port: link speed +*/ +static void nt4ga_port_set_link_speed (struct adapter_info_s *p,int port,nt_link_speed_t speed); +static nt_link_speed_t nt4ga_port_get_link_speed (struct adapter_info_s *p,int port); + +/* +* port: link duplex +*/ +static void +nt4ga_port_set_link_duplex (struct adapter_info_s *p,int port,nt_link_duplex_t duplex); +static nt_link_duplex_t nt4ga_port_get_link_duplex (struct adapter_info_s *p,int port); + +/* +* port: loopback mode +*/ +static void nt4ga_port_set_loopback_mode (struct adapter_info_s *p,int port,uint32_t mode); +static uint32_t nt4ga_port_get_loopback_mode (struct adapter_info_s *p,int port); + +static uint32_t nt4ga_port_get_link_speed_capabilities (struct adapter_info_s *p,int port); + +/* +* port: tx power +*/ +static int nt4ga_port_tx_power (struct adapter_info_s *p,int port,bool disable); + +/* +* port: speed capabilitoes +* This is actually an adapter capability mapped onto every port +*/ +static uint32_t nt4ga_port_get_link_speed_capabilities (struct adapter_info_s *p,int port) +{ + (void )p; + (void )port; +nt4ga_link_t *const p_link = &p->nt4ga_link; +const uint32_t nt_link_speed_capa = p_link->speed_capa; +return nt_link_speed_capa; +} + +/* +* port: nim present +*/ +static bool nt4ga_port_get_nim_present (struct adapter_info_s *p,int port) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; +const bool nim_present = p_link->link_state[port].nim_present; +return nim_present; +} + +/* +* port: link mode +*/ +static void nt4ga_port_set_adm_state (struct adapter_info_s *p,int port,bool adm_state) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; + p_link->port_action[port].port_disable = !adm_state; +} + +static bool nt4ga_port_get_adm_state (struct adapter_info_s *p,int port) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; +const bool adm_state = !p_link->port_action[port].port_disable; +return adm_state; +} + +/* +* port: link status +*/ +static void nt4ga_port_set_link_status (struct adapter_info_s *p,int port,bool link_status) +{ +/* Setting link state/status is (currently) the same as controlling the port adm state */ +nt4ga_port_set_adm_state (p, port, link_status); +} + +static bool nt4ga_port_get_link_status (struct adapter_info_s *p,int port) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; +bool status = p_link->link_state[port].link_up; +return status; +} + +/* +* port: link speed +*/ +static void nt4ga_port_set_link_speed (struct adapter_info_s *p,int port,nt_link_speed_t speed) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; + p_link->port_action[port].port_speed = speed; + p_link->link_info[port].link_speed = speed; +} + +static nt_link_speed_t nt4ga_port_get_link_speed (struct adapter_info_s *p,int port) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; +nt_link_speed_t speed = p_link->link_info[port].link_speed; +return speed; +} + +/* +* port: link autoneg +* Currently not fully supported by link code +*/ +static void nt4ga_port_set_link_autoneg (struct adapter_info_s *p,int port,bool autoneg) +{ + (void )p; + (void )port; + (void )autoneg; +nt4ga_link_t *const p_link = &p->nt4ga_link; + (void )p_link; +} + +static bool nt4ga_port_get_link_autoneg (struct adapter_info_s *p,int port) +{ + (void )p; + (void )port; +nt4ga_link_t *const p_link = &p->nt4ga_link; + (void )p_link; +return true; +} + +/* +* port: link duplex +* Currently not fully supported by link code +*/ +static void nt4ga_port_set_link_duplex (struct adapter_info_s *p,int port,nt_link_duplex_t duplex) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; + p_link->port_action[port].port_duplex = duplex; +} + +static nt_link_duplex_t nt4ga_port_get_link_duplex (struct adapter_info_s *p,int port) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; +nt_link_duplex_t duplex = p_link->link_info[port].link_duplex; +return duplex; +} + +/* +* port: loopback mode +*/ +static void nt4ga_port_set_loopback_mode (struct adapter_info_s *p,int port,uint32_t mode) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; + p_link->port_action[port].port_lpbk_mode = mode; +} + +static uint32_t nt4ga_port_get_loopback_mode (struct adapter_info_s *p,int port) +{ +nt4ga_link_t *const p_link = &p->nt4ga_link; +return p_link->port_action[port].port_lpbk_mode; +} + +/* +* port: tx power +*/ +static int nt4ga_port_tx_power (struct adapter_info_s *p,int port,bool disable) +{ +nt4ga_link_t *link_info = &p->nt4ga_link; + +if (link_info->u.nim_ctx[port].port_type ==NT_PORT_TYPE_QSFP28_SR4 || + link_info->u.nim_ctx[port].port_type ==NT_PORT_TYPE_QSFP28 || + link_info->u.nim_ctx[port].port_type ==NT_PORT_TYPE_QSFP28_LR4 ) { +nim_i2c_ctx_t *nim_ctx = &link_info->u.var100g.nim_ctx[port]; + +if (!nim_ctx->specific_u.qsfp.rx_only) { +if (nim_qsfp_plus_nim_set_tx_laser_disable (nim_ctx, disable,-1 ) !=0 ) +return 1 ; + } + } + +return 0 ; +} + +static const struct port_ops ops = { + .get_nim_present = nt4ga_port_get_nim_present, + +/* +* port:s link mode +*/ + .set_adm_state = nt4ga_port_set_adm_state, + .get_adm_state = nt4ga_port_get_adm_state, + +/* +* port:s link status +*/ + .set_link_status = nt4ga_port_set_link_status, + .get_link_status = nt4ga_port_get_link_status, + +/* +* port: link autoneg +*/ + .set_link_autoneg = nt4ga_port_set_link_autoneg, + .get_link_autoneg = nt4ga_port_get_link_autoneg, + +/* +* port: link speed +*/ + .set_link_speed = nt4ga_port_set_link_speed, + .get_link_speed = nt4ga_port_get_link_speed, + +/* +* port: link duplex +*/ + .set_link_duplex = nt4ga_port_set_link_duplex, + .get_link_duplex = nt4ga_port_get_link_duplex, + +/* +* port: loopback mode +*/ + .set_loopback_mode = nt4ga_port_set_loopback_mode, + .get_loopback_mode = nt4ga_port_get_loopback_mode, + + .get_link_speed_capabilities = nt4ga_port_get_link_speed_capabilities, + +/* +* port: tx power +*/ + .tx_power = nt4ga_port_tx_power, +}; + +static void __attribute__((constructor (65535 )))port_init (void ) +{ +register_port_ops (&ops); +}
Signature · 1 line
2.45.0
PATCH v3 16/17 net/ntnic: add link 100G module
In reply to Serhii IliushykAdd ntnic 100G link support.
---
v2:
* Fixed WARNING:REPEATED_WORD
v3:
* Remove pthread and left rte_thread
--- drivers/net/ntnic/include/nt4ga_link.h | 8 + .../link_mgmt/link_100g/nt4ga_link_100g.c | 840 ++++++++++++++++ .../link_mgmt/link_100g/nt4ga_link_100g.h | 11 + .../net/ntnic/nthw/core/include/nthw_core.h | 2 + .../ntnic/nthw/core/include/nthw_gpio_phy.h | 50 + .../ntnic/nthw/core/include/nthw_mac_pcs.h | 263 +++++ drivers/net/ntnic/nthw/core/nthw_gpio_phy.c | 144 +++ drivers/net/ntnic/nthw/core/nthw_mac_pcs.c | 950 ++++++++++++++++++ 8 files changed, 2268 insertions(+) create mode 100644 drivers/net/ntnic/link_mgmt/link_100g/nt4ga_link_100g.c create mode 100644 drivers/net/ntnic/link_mgmt/link_100g/nt4ga_link_100g.h create mode 100644 drivers/net/ntnic/nthw/core/include/nthw_gpio_phy.h create mode 100644 drivers/net/ntnic/nthw/core/include/nthw_mac_pcs.h create mode 100644 drivers/net/ntnic/nthw/core/nthw_gpio_phy.c create mode 100644 drivers/net/ntnic/nthw/core/nthw_mac_pcs.c
drivers/net/ntnic/include/nt4ga_link.h +8 -0
@@ -115,8 +115,16 @@ typedef struct port_action_s {uint32_t port_lpbk_mode; } port_action_t; +typedef struct adapter_100g_s { +nim_i2c_ctx_t nim_ctx[NUM_ADAPTER_PORTS_MAX ];/* Should be the first field */ +nthw_mac_pcs_t mac_pcs100g[NUM_ADAPTER_PORTS_MAX ]; +nthw_gfg_t gfg[NUM_ADAPTER_PORTS_MAX ]; +nthw_gpio_phy_t gpio_phy[NUM_ADAPTER_PORTS_MAX ]; +}adapter_100g_t ; +typedef union adapter_var_s {nim_i2c_ctx_t nim_ctx[NUM_ADAPTER_PORTS_MAX ];/* First field in all the adaptors type */ +adapter_100g_t var100g; }adapter_var_u ; typedef struct nt4ga_link_s {
drivers/net/ntnic/link_mgmt/link_100g/nt4ga_link_100g.c new file +840 -0
840 lines not on this page · raw message
drivers/net/ntnic/link_mgmt/link_100g/nt4ga_link_100g.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef NT4GA_LINK_100G_H_ +#define NT4GA_LINK_100G_H_ + +#include "nthw_drv.h" + +#endif /* NT4GA_LINK_100G_H_ */
drivers/net/ntnic/nthw/core/include/nthw_core.h +2 -0
@@ -21,6 +21,8 @@#include "nthw_gfg.h" #include "nthw_gmf.h" +#include "nthw_gpio_phy.h" +#include "nthw_mac_pcs.h" #include "nthw_mac_pcs_xxv.h" #include "nthw_mac_tfg.h" #include "nthw_sdc.h"
drivers/net/ntnic/nthw/core/include/nthw_gpio_phy.h new file +50 -0
50 lines not on this page · raw message
drivers/net/ntnic/nthw/core/include/nthw_mac_pcs.h new file +263 -0
263 lines not on this page · raw message
drivers/net/ntnic/nthw/core/nthw_gpio_phy.c new file +144 -0
144 lines not on this page · raw message
drivers/net/ntnic/nthw/core/nthw_mac_pcs.c new file +950 -0
950 lines not on this page · raw message
Signature · 1 line
2.45.0
PATCH v3 17/17 net/ntnic: add NIM module
In reply to Serhii IliushykIncludes support for NIM QSFP and QSFP+.
v3:
* Fix meson file: list of source files
--- drivers/net/ntnic/meson.build | 13 + drivers/net/ntnic/nim/i2c_nim.c | 1359 +++++++++++++++++ drivers/net/ntnic/nim/i2c_nim.h | 77 + .../net/ntnic/nim/include/qsfp_registers.h | 58 + drivers/net/ntnic/nim/nim_defines.h | 69 + drivers/net/ntnic/nim/nt_link_speed.c | 115 ++ drivers/net/ntnic/nim/nt_link_speed.h | 16 + 7 files changed, 1707 insertions(+) create mode 100644 drivers/net/ntnic/nim/i2c_nim.c create mode 100644 drivers/net/ntnic/nim/i2c_nim.h create mode 100644 drivers/net/ntnic/nim/include/qsfp_registers.h create mode 100644 drivers/net/ntnic/nim/nim_defines.h create mode 100644 drivers/net/ntnic/nim/nt_link_speed.c create mode 100644 drivers/net/ntnic/nim/nt_link_speed.h
drivers/net/ntnic/meson.build +13 -0
@@ -40,6 +40,7 @@ includes = [ include_directories('nthw'), include_directories('nthw/supported'), include_directories('nthw/model'), + include_directories('nim/include'), ] # ntnic_core
@@ -59,6 +60,9 @@ if fs.is_dir('nthw/core/nt400dxx') includes += include_directories('nthw/core/nt400dxx') includes += include_directories('nthw/core/nt400dxx/reset') endif +includes += include_directories('adapter') +includes += include_directories('link_mgmt') +includes += include_directories('nim') if fs.is_dir('nim/sfp_sensors') includes += include_directories('nim/sfp_sensors') endif
@@ -74,10 +78,17 @@ headers = files('rte_pmd_ntnic.h') # all sources sources = files( + 'adapter/nt4ga_adapter.c', + 'adapter/nt4ga_pci_ta_tg.c', + 'adapter/nt4ga_tfg.c', 'dpdk_mod_reg.c', 'adapter/nt4ga_adapter.c', 'adapter/nt4ga_pci_ta_tg.c', 'adapter/nt4ga_tfg.c', + 'link_mgmt/link_100g/nt4ga_link_100g.c', + 'link_mgmt/nt4ga_link.c', + 'nim/i2c_nim.c', + 'nim/nt_link_speed.c', 'nthw/supported/nthw_fpga_9563_055_039_0000.c', 'nthw/supported/nthw_fpga_instances.c', 'nthw/supported/nthw_fpga_mod_str_map.c',
@@ -89,9 +100,11 @@ sources = files( 'nthw/core/nthw_fpga_rst.c', 'nthw/core/nthw_gfg.c', 'nthw/core/nthw_gmf.c', + 'nthw/core/nthw_gpio_phy.c', 'nthw/core/nthw_hif.c', 'nthw/core/nthw_i2cm.c', 'nthw/core/nthw_iic.c', + 'nthw/core/nthw_mac_pcs.c', 'nthw/core/nthw_mac_pcs_xxv.c', 'nthw/core/nthw_pcie3.c', 'nthw/core/nthw_pci_rd_tg.c',
drivers/net/ntnic/nim/i2c_nim.c new file +1359 -0
1,359 lines not on this page · raw message
drivers/net/ntnic/nim/i2c_nim.h new file +77 -0
77 lines not on this page · raw message
drivers/net/ntnic/nim/include/qsfp_registers.h new file +58 -0
58 lines not on this page · raw message
drivers/net/ntnic/nim/nim_defines.h new file +69 -0
69 lines not on this page · raw message
drivers/net/ntnic/nim/nt_link_speed.c new file +115 -0
115 lines not on this page · raw message
drivers/net/ntnic/nim/nt_link_speed.h new file +16 -0
@@ -0,0 +1,16 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef NT_LINK_SPEED_H_ +#define NT_LINK_SPEED_H_ + +#include <stdint.h> +#include "nt4ga_link.h" + +const char *nt_translate_link_speed (nt_link_speed_t link_speed); +uint64_t nt_get_link_speed (nt_link_speed_t e_link_speed); +uint64_t nt_get_max_link_speed (uint32_t link_speed_mask); + +#endif /* NT_LINK_SPEED_H_ */
Signature · 1 line
2.45.0
This message is left out to keep this page within its size limit. Read the full message.
Hi Ferruh,
We have sent a patch set which includes base PMD driver for NapaTech smartNiC for DPDK v24.07.
This time, driver has limited basic functionality(Link up only) and we have made refactoring to split it into smaller patches. Extended functionality is planned for upstream to the next release DPDK 24.11.
Patches have passed the CI but there are several code style warnings which we assumed as false-positive. Could you please take a look at these patches and suggest us how we can procced with it?
Best regards,
Serhii
________________________________
From: Mykola Kostenok <[email protected]>
Sent: 04 June 2024 13:29
To: Serhii Iliushyk <[email protected]>; [email protected] <[email protected]>
Cc: Christian Koue Muf <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: RE: [PATCH v3 01/17] net/ntnic: Add registers for NapaTech SmartNiC
Recheck-request: iol-unit-amd64-testing, iol-compile-amd64-testing, iol-unit-arm64-testing, iol-compile-arm64-testing
Quoted 12,012 lines
-----Original Message-----
From: Serhii Iliushyk <[email protected]>
Sent: Monday, June 3, 2024 7:18 PM
To: [email protected]
Cc: Mykola Kostenok <[email protected]>; Christian Koue Muf <[email protected]>; [email protected]; [email protected]
Subject: [PATCH v3 01/17] net/ntnic: Add registers for NapaTech SmartNiCThe NTNIC PMD does not rely on a kernel space Napatech driver, thus all defines related to the register layout is part of the PMD code, which will be added in later commits.
Signed-off-by Serhii Iliushyk <[email protected]>--- .../supported/nthw_fpga_9563_055_039_0000.c | 3488 +++++++++++++++++ .../nthw/supported/nthw_fpga_instances.c | 6 + .../nthw/supported/nthw_fpga_instances.h | 7 + .../ntnic/nthw/supported/nthw_fpga_mod_defs.h | 93 + .../nthw/supported/nthw_fpga_mod_str_map.c | 78 + .../nthw/supported/nthw_fpga_mod_str_map.h | 11 + .../nthw/supported/nthw_fpga_param_defs.h | 232 ++ .../ntnic/nthw/supported/nthw_fpga_reg_defs.h | 94 + .../nthw/supported/nthw_fpga_reg_defs_cat.h | 237 ++ .../nthw/supported/nthw_fpga_reg_defs_cb.h | 73 + .../nthw/supported/nthw_fpga_reg_defs_cor.h | 81 + .../nthw/supported/nthw_fpga_reg_defs_cpy.h | 112 + .../nthw/supported/nthw_fpga_reg_defs_csu.h | 30 + .../nthw/supported/nthw_fpga_reg_defs_dbs.h | 144 + .../nthw/supported/nthw_fpga_reg_defs_ddp.h | 34 + .../nthw/supported/nthw_fpga_reg_defs_epp.h | 64 + .../nthw/supported/nthw_fpga_reg_defs_eqm.h | 45 + .../nthw/supported/nthw_fpga_reg_defs_fhm.h | 48 + .../nthw/supported/nthw_fpga_reg_defs_flm.h | 237 ++ .../nthw/supported/nthw_fpga_reg_defs_gfg.h | 126 + .../nthw/supported/nthw_fpga_reg_defs_gmf.h | 68 + .../supported/nthw_fpga_reg_defs_gpio_phy.h | 48 + .../nthw_fpga_reg_defs_gpio_phy_ports.h | 72 + .../supported/nthw_fpga_reg_defs_gpio_sfpp.h | 34 + .../nthw/supported/nthw_fpga_reg_defs_hfu.h | 48 + .../nthw/supported/nthw_fpga_reg_defs_hif.h | 79 + .../nthw/supported/nthw_fpga_reg_defs_hsh.h | 49 + .../nthw/supported/nthw_fpga_reg_defs_i2cm.h | 38 + .../nthw/supported/nthw_fpga_reg_defs_ifr.h | 41 + .../nthw/supported/nthw_fpga_reg_defs_igam.h | 28 + .../nthw/supported/nthw_fpga_reg_defs_iic.h | 96 + .../nthw/supported/nthw_fpga_reg_defs_ins.h | 29 + .../nthw/supported/nthw_fpga_reg_defs_ioa.h | 44 + .../nthw/supported/nthw_fpga_reg_defs_ipf.h | 84 + .../nthw/supported/nthw_fpga_reg_defs_km.h | 125 + .../nthw/supported/nthw_fpga_reg_defs_mac.h | 177 + .../supported/nthw_fpga_reg_defs_mac_pcs.h | 298 ++ .../nthw_fpga_reg_defs_mac_pcs_xxv.h | 1092 ++++++ .../supported/nthw_fpga_reg_defs_mac_rx.h | 90 + .../supported/nthw_fpga_reg_defs_mac_tfg.h | 42 + .../supported/nthw_fpga_reg_defs_mac_tx.h | 70 + .../nthw/supported/nthw_fpga_reg_defs_msk.h | 42 + .../supported/nthw_fpga_reg_defs_pci_rd_tg.h | 37 + .../supported/nthw_fpga_reg_defs_pci_ta.h | 32 + .../supported/nthw_fpga_reg_defs_pci_wr_tg.h | 40 + .../nthw/supported/nthw_fpga_reg_defs_pcie3.h | 281 ++ .../nthw_fpga_reg_defs_pcm_nt400dxx.h | 19 + .../nthw_fpga_reg_defs_pcm_nt50b01_01.h | 19 + .../nthw/supported/nthw_fpga_reg_defs_pcs.h | 92 + .../supported/nthw_fpga_reg_defs_pcs100.h | 90 + .../nthw/supported/nthw_fpga_reg_defs_pdb.h | 47 + .../nthw/supported/nthw_fpga_reg_defs_pdi.h | 48 + .../supported/nthw_fpga_reg_defs_phy_tile.h | 196 + .../nthw_fpga_reg_defs_prm_nt400dxx.h | 19 + .../nthw_fpga_reg_defs_prm_nt50b01_01.h | 19 + .../nthw/supported/nthw_fpga_reg_defs_qsl.h | 65 + .../nthw/supported/nthw_fpga_reg_defs_qspi.h | 89 + .../nthw/supported/nthw_fpga_reg_defs_r2drp.h | 29 + .../nthw/supported/nthw_fpga_reg_defs_rac.h | 72 + .../nthw/supported/nthw_fpga_reg_defs_rfd.h | 37 + .../nthw/supported/nthw_fpga_reg_defs_rmc.h | 35 + .../nthw/supported/nthw_fpga_reg_defs_roa.h | 67 + .../nthw/supported/nthw_fpga_reg_defs_rpf.h | 30 + .../nthw/supported/nthw_fpga_reg_defs_rpl.h | 42 + .../supported/nthw_fpga_reg_defs_rpp_lr.h | 36 + .../supported/nthw_fpga_reg_defs_rst9563.h | 59 + .../nthw/supported/nthw_fpga_reg_defs_sdc.h | 44 + .../nthw/supported/nthw_fpga_reg_defs_slc.h | 33 + .../supported/nthw_fpga_reg_defs_slc_lr.h | 22 + .../nthw/supported/nthw_fpga_reg_defs_spim.h | 75 + .../nthw/supported/nthw_fpga_reg_defs_spis.h | 50 + .../nthw/supported/nthw_fpga_reg_defs_sta.h | 59 + .../supported/nthw_fpga_reg_defs_tempmon.h | 29 + .../nthw/supported/nthw_fpga_reg_defs_tint.h | 27 + .../nthw/supported/nthw_fpga_reg_defs_tsm.h | 294 ++ .../supported/nthw_fpga_reg_defs_tx_cpy.h | 22 + .../supported/nthw_fpga_reg_defs_tx_csi.h | 22 + .../supported/nthw_fpga_reg_defs_tx_cso.h | 22 + .../supported/nthw_fpga_reg_defs_tx_ins.h | 22 + .../supported/nthw_fpga_reg_defs_tx_rpl.h | 22 + 80 files changed, 10177 insertions(+) create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_instances.c create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_instances.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.c create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_param_defs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_cat.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_cb.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_cor.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_cpy.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_csu.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_dbs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ddp.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_epp.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_eqm.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_fhm.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_flm.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gfg.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gmf.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy_ports.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_sfpp.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_hfu.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_hif.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_hsh.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_i2cm.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ifr.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_igam.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_iic.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ins.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ioa.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ipf.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_km.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs_xxv.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_rx.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_tfg.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_tx.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_msk.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_rd_tg.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_ta.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_wr_tg.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcie3.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcm_nt400dxx.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcm_nt50b01_01.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcs100.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pdb.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pdi.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_prm_nt400dxx.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_prm_nt50b01_01.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_qsl.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_qspi.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_r2drp.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rac.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rfd.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rmc.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_roa.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rpf.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rpl.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rpp_lr.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rst9563.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_sdc.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_slc.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_slc_lr.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_spim.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_spis.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_sta.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tempmon.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tint.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tsm.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_cpy.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_csi.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_cso.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_ins.h create mode 100644
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_rpl.hdiff --git
a/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.cb/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.cnew file mode 100644
index 0000000000..a7ee892007
---/dev/null
+++b/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.cdrivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +85
-0@@ -0,0 +1,3488 @@ +/* +* Auto-generated file - do *NOT* edit +*/ + +#include "nthw_register.h" + +static nthw_fpga_field_init_s cat_cct_ctrl_fields[] = { + {CAT_CCT_CTRL_ADR ,8 ,0 ,0x0000 }, + {CAT_CCT_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cct_data_fields[] = { + {CAT_CCT_DATA_COLOR ,32 ,0 ,0x0000 }, + {CAT_CCT_DATA_KM ,4 ,32 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cfn_ctrl_fields[] = { + {CAT_CFN_CTRL_ADR ,6 ,0 ,0x0000 }, + {CAT_CFN_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cfn_data_fields[] = { + {CAT_CFN_DATA_ENABLE ,1 ,0 ,0x0000 }, + {CAT_CFN_DATA_ERR_CV ,2 ,99 ,0x0000 }, + {CAT_CFN_DATA_ERR_FCS ,2 ,101 ,0x0000 }, + {CAT_CFN_DATA_ERR_INV ,1 ,98 ,0x0000 }, + {CAT_CFN_DATA_ERR_L3_CS ,2 ,105 ,0x0000 }, + {CAT_CFN_DATA_ERR_L4_CS ,2 ,107 ,0x0000 }, + {CAT_CFN_DATA_ERR_TNL_L3_CS ,2 ,109 ,0x0000 }, + {CAT_CFN_DATA_ERR_TNL_L4_CS ,2 ,111 ,0x0000 }, + {CAT_CFN_DATA_ERR_TNL_TTL_EXP ,2 ,115 ,0x0000 }, + {CAT_CFN_DATA_ERR_TRUNC ,2 ,103 ,0x0000 }, + {CAT_CFN_DATA_ERR_TTL_EXP ,2 ,113 ,0x0000 }, + {CAT_CFN_DATA_INV ,1 ,1 ,0x0000 }, + {CAT_CFN_DATA_KM0_OR ,3 ,173 ,0x0000 }, + {CAT_CFN_DATA_KM1_OR ,3 ,176 ,0x0000 }, + {CAT_CFN_DATA_LC ,8 ,164 ,0x0000 }, + {CAT_CFN_DATA_LC_INV ,1 ,172 ,0x0000 }, + {CAT_CFN_DATA_MAC_PORT ,2 ,117 ,0x0000 }, + {CAT_CFN_DATA_PM_AND_INV ,1 ,161 ,0x0000 }, + {CAT_CFN_DATA_PM_CMB ,4 ,157 ,0x0000 }, + {CAT_CFN_DATA_PM_CMP ,32 ,119 ,0x0000 }, + {CAT_CFN_DATA_PM_DCT ,2 ,151 ,0x0000 }, + {CAT_CFN_DATA_PM_EXT_INV ,4 ,153 ,0x0000 }, + {CAT_CFN_DATA_PM_INV ,1 ,163 ,0x0000 }, + {CAT_CFN_DATA_PM_OR_INV ,1 ,162 ,0x0000 }, + {CAT_CFN_DATA_PTC_CFP ,2 ,5 ,0x0000 }, + {CAT_CFN_DATA_PTC_FRAG ,4 ,36 ,0x0000 }, + {CAT_CFN_DATA_PTC_INV ,1 ,2 ,0x0000 }, + {CAT_CFN_DATA_PTC_IP_PROT ,8 ,40 ,0x0000 }, + {CAT_CFN_DATA_PTC_ISL ,2 ,3 ,0x0000 }, + {CAT_CFN_DATA_PTC_L2 ,7 ,12 ,0x0000 }, + {CAT_CFN_DATA_PTC_L3 ,3 ,33 ,0x0000 }, + {CAT_CFN_DATA_PTC_L4 ,5 ,48 ,0x0000 }, + {CAT_CFN_DATA_PTC_MAC ,5 ,7 ,0x0000 }, + {CAT_CFN_DATA_PTC_MPLS ,8 ,25 ,0x0000 }, + {CAT_CFN_DATA_PTC_TNL_FRAG ,4 ,81 ,0x0000 }, + {CAT_CFN_DATA_PTC_TNL_IP_PROT ,8 ,85 ,0x0000 }, + {CAT_CFN_DATA_PTC_TNL_L2 ,2 ,64 ,0x0000 }, + {CAT_CFN_DATA_PTC_TNL_L3 ,3 ,78 ,0x0000 }, + {CAT_CFN_DATA_PTC_TNL_L4 ,5 ,93 ,0x0000 }, + {CAT_CFN_DATA_PTC_TNL_MPLS ,8 ,70 ,0x0000 }, + {CAT_CFN_DATA_PTC_TNL_VLAN ,4 ,66 ,0x0000 }, + {CAT_CFN_DATA_PTC_TUNNEL ,11 ,53 ,0x0000 }, + {CAT_CFN_DATA_PTC_VLAN ,4 ,21 ,0x0000 }, + {CAT_CFN_DATA_PTC_VNTAG ,2 ,19 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cot_ctrl_fields[] = { + {CAT_COT_CTRL_ADR ,6 ,0 ,0x0000 }, + {CAT_COT_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cot_data_fields[] = { + {CAT_COT_DATA_COLOR ,32 ,0 ,0x0000 }, + {CAT_COT_DATA_KM ,4 ,32 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cte_ctrl_fields[] = { + {CAT_CTE_CTRL_ADR ,6 ,0 ,0x0000 }, + {CAT_CTE_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cte_data_fields[] = { + {CAT_CTE_DATA_COL_ENABLE ,1 ,0 ,0x0000 }, {
CAT_CTE_DATA_COR_ENABLE, 1, 1,0x0000},
+ {CAT_CTE_DATA_EPP_ENABLE, 1, 9,0x0000}, {CAT_CTE_DATA_HSH_ENABLE, 1, 2,0x0000},
+ {CAT_CTE_DATA_HST_ENABLE, 1, 8,0x0000}, {CAT_CTE_DATA_IPF_ENABLE, 1, 4,0x0000},
+ {CAT_CTE_DATA_MSK_ENABLE, 1, 7,0x0000}, {CAT_CTE_DATA_PDB_ENABLE, 1, 6,0x0000},
+ {CAT_CTE_DATA_QSL_ENABLE, 1, 3,0x0000}, {CAT_CTE_DATA_SLC_ENABLE, 1, 5,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +113
-0+ { CAT_CTE_DATA_TPE_ENABLE, 1, 10, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cts_ctrl_fields[] = { + { CAT_CTS_CTRL_ADR, 9, 0, 0x0000 }, + { CAT_CTS_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_cts_data_fields[] = { + { CAT_CTS_DATA_CAT_A, 6, 0, 0x0000 }, + { CAT_CTS_DATA_CAT_B, 6, 6, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_dct_ctrl_fields[] = { + { CAT_DCT_CTRL_ADR, 13, 0, 0x0000 }, + { CAT_DCT_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_dct_data_fields[] = { + { CAT_DCT_DATA_RES, 16, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_dct_sel_fields[] = { + { CAT_DCT_SEL_LU, 2, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_exo_ctrl_fields[] = { + { CAT_EXO_CTRL_ADR, 2, 0, 0x0000 }, + { CAT_EXO_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_exo_data_fields[] = { + { CAT_EXO_DATA_DYN, 5, 0, 0x0000 }, + { CAT_EXO_DATA_OFS, 11, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_fte0_ctrl_fields[] = { + { CAT_FTE0_CTRL_ADR, 9, 0, 0x0000 }, + { CAT_FTE0_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_fte0_data_fields[] = { + { CAT_FTE0_DATA_ENABLE, 8, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_fte1_ctrl_fields[] = { + { CAT_FTE1_CTRL_ADR, 9, 0, 0x0000 }, + { CAT_FTE1_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_fte1_data_fields[] = { + { CAT_FTE1_DATA_ENABLE, 8, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_join_fields[] = { + { CAT_JOIN_J1, 2, 0, 0x0000 }, + { CAT_JOIN_J2, 1, 8, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kcc_ctrl_fields[] = { + { CAT_KCC_CTRL_ADR, 11, 0, 0x0000 }, + { CAT_KCC_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kcc_data_fields[] = { + { CAT_KCC_DATA_CATEGORY, 8, 64, 0x0000 }, + { CAT_KCC_DATA_ID, 12, 72, 0x0000 }, + { CAT_KCC_DATA_KEY, 64, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kce0_ctrl_fields[] = { + { CAT_KCE0_CTRL_ADR, 3, 0, 0x0000 }, + { CAT_KCE0_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kce0_data_fields[] = { + { CAT_KCE0_DATA_ENABLE, 8, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kce1_ctrl_fields[] = { + { CAT_KCE1_CTRL_ADR, 3, 0, 0x0000 }, + { CAT_KCE1_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kce1_data_fields[] = { + { CAT_KCE1_DATA_ENABLE, 8, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kcs0_ctrl_fields[] = { + { CAT_KCS0_CTRL_ADR, 6, 0, 0x0000 }, + { CAT_KCS0_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kcs0_data_fields[] = { + { CAT_KCS0_DATA_CATEGORY, 6, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kcs1_ctrl_fields[] = { + { CAT_KCS1_CTRL_ADR, 6, 0, 0x0000 }, + { CAT_KCS1_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_kcs1_data_fields[] = { + { CAT_KCS1_DATA_CATEGORY, 6, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_len_ctrl_fields[] = { + { CAT_LEN_CTRL_ADR, 3, 0, 0x0000 }, + { CAT_LEN_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_len_data_fields[] = { + { CAT_LEN_DATA_DYN1, 5, 28, 0x0000 }, { CAT_LEN_DATA_DYN2, 5,33,
0x0000},
+ {CAT_LEN_DATA_INV, 1, 38,0x0000}, {CAT_LEN_DATA_LOWER, 14,
0,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +10
-0+ { CAT_LEN_DATA_UPPER, 14, 14, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_rck_ctrl_fields[] = { + { CAT_RCK_CTRL_ADR, 8, 0, 0x0000 }, + { CAT_RCK_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cat_rck_data_fields[] = { + { CAT_RCK_DATA_CM0U, 1, 1, 0x0000 }, { CAT_RCK_DATA_CM1U, 1,5,
0x0000},
+ {CAT_RCK_DATA_CM2U, 1, 9,0x0000}, {CAT_RCK_DATA_CM3U, 1,
13,0x0000},
+ {CAT_RCK_DATA_CM4U, 1, 17,0x0000}, {CAT_RCK_DATA_CM5U, 1,
21,0x0000},
+ {CAT_RCK_DATA_CM6U, 1, 25,0x0000}, {CAT_RCK_DATA_CM7U, 1,
29,0x0000},
+ {CAT_RCK_DATA_CML0, 1, 0,0x0000}, {CAT_RCK_DATA_CML1, 1, 4,0x0000},
+ {CAT_RCK_DATA_CML2, 1, 8,0x0000}, {CAT_RCK_DATA_CML3, 1,
12,0x0000},
+ {CAT_RCK_DATA_CML4, 1, 16,0x0000}, {CAT_RCK_DATA_CML5, 1,
20,0x0000},
+ {CAT_RCK_DATA_CML6, 1, 24,0x0000}, {CAT_RCK_DATA_CML7, 1,
28,0x0000},
+ {CAT_RCK_DATA_SEL0, 1, 2,0x0000}, {CAT_RCK_DATA_SEL1, 1, 6,0x0000},
+ {CAT_RCK_DATA_SEL2, 1, 10,0x0000}, {CAT_RCK_DATA_SEL3, 1, 14,0x0000},
+ {CAT_RCK_DATA_SEL4, 1, 18,0x0000}, {CAT_RCK_DATA_SEL5, 1, 22,0x0000},
+ {CAT_RCK_DATA_SEL6, 1, 26,0x0000}, {CAT_RCK_DATA_SEL7, 1, 30,0x0000},
+ {CAT_RCK_DATA_SEU0, 1, 3,0x0000}, {CAT_RCK_DATA_SEU1, 1, 7,0x0000},
+ {CAT_RCK_DATA_SEU2, 1, 11,0x0000}, {CAT_RCK_DATA_SEU3, 1,
15,0x0000},
+ {CAT_RCK_DATA_SEU4, 1, 19,0x0000}, {CAT_RCK_DATA_SEU5, 1,
23,0x0000},
+ {CAT_RCK_DATA_SEU6, 1, 27,0x0000}, {CAT_RCK_DATA_SEU7, 1,
31,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_register_init_s cat_registers[] = { + {CAT_CCT_CTRL ,30 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
cat_cct_ctrl_fields},
+ {CAT_CCT_DATA, 31, 36,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_cct_data_fields},
+ {CAT_CFN_CTRL, 10, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_cfn_ctrl_fields},
+ {CAT_CFN_DATA, 11, 179,NTHW_FPGA_REG_TYPE_WO, 0, 44,cat_cfn_data_fields},
+ {CAT_COT_CTRL, 28, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_cot_ctrl_fields},
+ {CAT_COT_DATA, 29, 36,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_cot_data_fields},
+ {CAT_CTE_CTRL, 24, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_cte_ctrl_fields},
+ {CAT_CTE_DATA, 25, 11,NTHW_FPGA_REG_TYPE_WO, 0, 11,cat_cte_data_fields},
+ {CAT_CTS_CTRL, 26, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_cts_ctrl_fields},
+ {CAT_CTS_DATA, 27, 12,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_cts_data_fields},
+ {CAT_DCT_CTRL, 6, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_dct_ctrl_fields},
+ {CAT_DCT_DATA, 7, 16,NTHW_FPGA_REG_TYPE_WO, 0, 1,cat_dct_data_fields},
+ {CAT_DCT_SEL, 4, 2,NTHW_FPGA_REG_TYPE_WO, 0, 1,cat_dct_sel_fields},
+ {CAT_EXO_CTRL, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_exo_ctrl_fields},
+ {CAT_EXO_DATA, 1, 27,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_exo_data_fields},
+ {CAT_FTE0_CTRL, 16, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_fte0_ctrl_fields},
+ {CAT_FTE0_DATA, 17, 8,NTHW_FPGA_REG_TYPE_WO, 0, 1,cat_fte0_data_fields},
+ {CAT_FTE1_CTRL, 22, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_fte1_ctrl_fields},
+ {CAT_FTE1_DATA, 23, 8,NTHW_FPGA_REG_TYPE_WO, 0, 1,cat_fte1_data_fields},(quoted diff) +2
-0+ { CAT_JOIN, 5, 9, NTHW_FPGA_REG_TYPE_WO, 0, 2, cat_join_fields }, + { CAT_KCC_CTRL, 32, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
cat_kcc_ctrl_fields},
+ {CAT_KCC_DATA, 33, 84,NTHW_FPGA_REG_TYPE_WO, 0, 3,cat_kcc_data_fields},
+ {CAT_KCE0_CTRL, 12, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_kce0_ctrl_fields},
+ {CAT_KCE0_DATA, 13, 8,NTHW_FPGA_REG_TYPE_WO, 0, 1,cat_kce0_data_fields},
+ {CAT_KCE1_CTRL, 18, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_kce1_ctrl_fields},
+ {CAT_KCE1_DATA, 19, 8,NTHW_FPGA_REG_TYPE_WO, 0, 1,cat_kce1_data_fields},
+ {CAT_KCS0_CTRL, 14, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_kcs0_ctrl_fields},
+ {CAT_KCS0_DATA, 15, 6,NTHW_FPGA_REG_TYPE_WO, 0, 1,cat_kcs0_data_fields},
+ {CAT_KCS1_CTRL, 20, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_kcs1_ctrl_fields},
+ {CAT_KCS1_DATA, 21, 6,NTHW_FPGA_REG_TYPE_WO, 0, 1,cat_kcs1_data_fields},
+ {CAT_LEN_CTRL, 8, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_len_ctrl_fields},
+ {CAT_LEN_DATA, 9, 39,NTHW_FPGA_REG_TYPE_WO, 0, 5,cat_len_data_fields},
+ {CAT_RCK_CTRL, 2, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,cat_rck_ctrl_fields},
+ {CAT_RCK_DATA, 3, 32,NTHW_FPGA_REG_TYPE_WO, 0, 32,cat_rck_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +19
-0+}; + +static nthw_fpga_field_init_s cpy_packet_reader0_ctrl_fields[] = { + {CPY_PACKET_READER0_CTRL_ADR ,4 ,0 ,0x0000 }, + {CPY_PACKET_READER0_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_packet_reader0_data_fields[] = { + {CPY_PACKET_READER0_DATA_DYN ,5 ,10 ,0x0000 }, + {CPY_PACKET_READER0_DATA_OFS ,10 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer0_ctrl_fields[] = { + {CPY_WRITER0_CTRL_ADR ,4 ,0 ,0x0000 }, + {CPY_WRITER0_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer0_data_fields[] = { + {CPY_WRITER0_DATA_DYN ,5 ,17 ,0x0000 }, {
CPY_WRITER0_DATA_LEN, 5, 22,0x0000},
+ {CPY_WRITER0_DATA_MASK_POINTER, 4, 27,0x0000}, {CPY_WRITER0_DATA_OFS, 14, 3,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +19
-0+ { CPY_WRITER0_DATA_READER_SELECT, 3, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer0_mask_ctrl_fields[] = { + { CPY_WRITER0_MASK_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER0_MASK_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer0_mask_data_fields[] = { + { CPY_WRITER0_MASK_DATA_BYTE_MASK, 16, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer1_ctrl_fields[] = { + { CPY_WRITER1_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER1_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer1_data_fields[] = { + { CPY_WRITER1_DATA_DYN, 5, 17, 0x0000 }, {
CPY_WRITER1_DATA_LEN, 5, 22,0x0000},
+ {CPY_WRITER1_DATA_MASK_POINTER, 4, 27,0x0000}, {CPY_WRITER1_DATA_OFS, 14, 3,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +19
-0+ { CPY_WRITER1_DATA_READER_SELECT, 3, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer1_mask_ctrl_fields[] = { + { CPY_WRITER1_MASK_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER1_MASK_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer1_mask_data_fields[] = { + { CPY_WRITER1_MASK_DATA_BYTE_MASK, 16, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer2_ctrl_fields[] = { + { CPY_WRITER2_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER2_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer2_data_fields[] = { + { CPY_WRITER2_DATA_DYN, 5, 17, 0x0000 }, {
CPY_WRITER2_DATA_LEN, 5, 22,0x0000},
+ {CPY_WRITER2_DATA_MASK_POINTER, 4, 27,0x0000}, {CPY_WRITER2_DATA_OFS, 14, 3,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +19
-0+ { CPY_WRITER2_DATA_READER_SELECT, 3, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer2_mask_ctrl_fields[] = { + { CPY_WRITER2_MASK_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER2_MASK_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer2_mask_data_fields[] = { + { CPY_WRITER2_MASK_DATA_BYTE_MASK, 16, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer3_ctrl_fields[] = { + { CPY_WRITER3_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER3_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer3_data_fields[] = { + { CPY_WRITER3_DATA_DYN, 5, 17, 0x0000 }, {
CPY_WRITER3_DATA_LEN, 5, 22,0x0000},
+ {CPY_WRITER3_DATA_MASK_POINTER, 4, 27,0x0000}, {CPY_WRITER3_DATA_OFS, 14, 3,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +19
-0+ { CPY_WRITER3_DATA_READER_SELECT, 3, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer3_mask_ctrl_fields[] = { + { CPY_WRITER3_MASK_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER3_MASK_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer3_mask_data_fields[] = { + { CPY_WRITER3_MASK_DATA_BYTE_MASK, 16, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer4_ctrl_fields[] = { + { CPY_WRITER4_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER4_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer4_data_fields[] = { + { CPY_WRITER4_DATA_DYN, 5, 17, 0x0000 }, {
CPY_WRITER4_DATA_LEN, 5, 22,0x0000},
+ {CPY_WRITER4_DATA_MASK_POINTER, 4, 27,0x0000}, {CPY_WRITER4_DATA_OFS, 14, 3,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +19
-0+ { CPY_WRITER4_DATA_READER_SELECT, 3, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer4_mask_ctrl_fields[] = { + { CPY_WRITER4_MASK_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER4_MASK_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer4_mask_data_fields[] = { + { CPY_WRITER4_MASK_DATA_BYTE_MASK, 16, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer5_ctrl_fields[] = { + { CPY_WRITER5_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER5_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer5_data_fields[] = { + { CPY_WRITER5_DATA_DYN, 5, 17, 0x0000 }, {
CPY_WRITER5_DATA_LEN, 5, 22,0x0000},
+ {CPY_WRITER5_DATA_MASK_POINTER, 4, 27,0x0000}, {CPY_WRITER5_DATA_OFS, 14, 3,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +15
-0+ { CPY_WRITER5_DATA_READER_SELECT, 3, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer5_mask_ctrl_fields[] = { + { CPY_WRITER5_MASK_CTRL_ADR, 4, 0, 0x0000 }, + { CPY_WRITER5_MASK_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s cpy_writer5_mask_data_fields[] = { + { CPY_WRITER5_MASK_DATA_BYTE_MASK, 16, 0, 0x0000 }, +}; + +static nthw_fpga_register_init_s cpy_registers[] = { + { + CPY_PACKET_READER0_CTRL, 24, 32,
NTHW_FPGA_REG_TYPE_WO, 0, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ cpy_packet_reader0_ctrl_fields + }, + { + CPY_PACKET_READER0_DATA, 25, 15,
NTHW_FPGA_REG_TYPE_WO, 0, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ cpy_packet_reader0_data_fields + }, + { CPY_WRITER0_CTRL, 0, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
cpy_writer0_ctrl_fields},
+ {CPY_WRITER0_DATA, 1, 31,NTHW_FPGA_REG_TYPE_WO, 0, 5,cpy_writer0_data_fields},(quoted diff) +2
-0+ { + CPY_WRITER0_MASK_CTRL, 2, 32,
NTHW_FPGA_REG_TYPE_WO, 0, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ cpy_writer0_mask_ctrl_fields + }, + { + CPY_WRITER0_MASK_DATA, 3, 16,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ cpy_writer0_mask_data_fields + }, + { CPY_WRITER1_CTRL, 4, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
cpy_writer1_ctrl_fields},
+ {CPY_WRITER1_DATA, 5, 31,NTHW_FPGA_REG_TYPE_WO, 0, 5,cpy_writer1_data_fields},(quoted diff) +2
-0+ { + CPY_WRITER1_MASK_CTRL, 6, 32,
NTHW_FPGA_REG_TYPE_WO, 0, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ cpy_writer1_mask_ctrl_fields + }, + { + CPY_WRITER1_MASK_DATA, 7, 16,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ cpy_writer1_mask_data_fields + }, + { CPY_WRITER2_CTRL, 8, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
cpy_writer2_ctrl_fields},
+ {CPY_WRITER2_DATA, 9, 31,NTHW_FPGA_REG_TYPE_WO, 0, 5,cpy_writer2_data_fields},(quoted diff) +2
-0+ { + CPY_WRITER2_MASK_CTRL, 10, 32,
NTHW_FPGA_REG_TYPE_WO, 0, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ cpy_writer2_mask_ctrl_fields + }, + { + CPY_WRITER2_MASK_DATA, 11, 16,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ cpy_writer2_mask_data_fields + }, + { CPY_WRITER3_CTRL, 12, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
cpy_writer3_ctrl_fields},
+ {CPY_WRITER3_DATA, 13, 31,NTHW_FPGA_REG_TYPE_WO, 0, 5,cpy_writer3_data_fields},(quoted diff) +2
-0+ { + CPY_WRITER3_MASK_CTRL, 14, 32,
NTHW_FPGA_REG_TYPE_WO, 0, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ cpy_writer3_mask_ctrl_fields + }, + { + CPY_WRITER3_MASK_DATA, 15, 16,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ cpy_writer3_mask_data_fields + }, + { CPY_WRITER4_CTRL, 16, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
cpy_writer4_ctrl_fields},
+ {CPY_WRITER4_DATA, 17, 31,NTHW_FPGA_REG_TYPE_WO, 0, 5,cpy_writer4_data_fields},(quoted diff) +2
-0+ { + CPY_WRITER4_MASK_CTRL, 18, 32,
NTHW_FPGA_REG_TYPE_WO, 0, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ cpy_writer4_mask_ctrl_fields + }, + { + CPY_WRITER4_MASK_DATA, 19, 16,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ cpy_writer4_mask_data_fields + }, + { CPY_WRITER5_CTRL, 20, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
cpy_writer5_ctrl_fields},
+ {CPY_WRITER5_DATA, 21, 31,NTHW_FPGA_REG_TYPE_WO, 0, 5,cpy_writer5_data_fields},(quoted diff) +2
-0+ { + CPY_WRITER5_MASK_CTRL, 22, 32,
NTHW_FPGA_REG_TYPE_WO, 0, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ cpy_writer5_mask_ctrl_fields + }, + { + CPY_WRITER5_MASK_DATA, 23, 16,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +18
-0+cpy_writer5_mask_data_fields + }, +}; + +static nthw_fpga_field_init_s csu_rcp_ctrl_fields[] = { + {CSU_RCP_CTRL_ADR ,4 ,0 ,0x0000 }, + {CSU_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s csu_rcp_data_fields[] = { + {CSU_RCP_DATA_IL3_CMD ,2 ,5 ,0x0000 }, + {CSU_RCP_DATA_IL4_CMD ,3 ,7 ,0x0000 }, + {CSU_RCP_DATA_OL3_CMD ,2 ,0 ,0x0000 }, + {CSU_RCP_DATA_OL4_CMD ,3 ,2 ,0x0000 }, +}; + +static nthw_fpga_register_init_s csu_registers[] = { + {CSU_RCP_CTRL ,1 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
csu_rcp_ctrl_fields},
+ {CSU_RCP_DATA, 2, 10,NTHW_FPGA_REG_TYPE_WO, 0, 4,csu_rcp_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+}; + +static nthw_fpga_field_init_s dbs_rx_am_ctrl_fields[] = { + {DBS_RX_AM_CTRL_ADR ,7 ,0 ,0x0000 }, + {DBS_RX_AM_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_am_data_fields[] = { + {DBS_RX_AM_DATA_ENABLE ,1 ,72 ,0x0000 }, {
DBS_RX_AM_DATA_GPA, 64, 0,0x0000},
+ {DBS_RX_AM_DATA_HID, 8, 64,0x0000}, {DBS_RX_AM_DATA_INT,
1, 74,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { DBS_RX_AM_DATA_PCKED, 1, 73, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_control_fields[] = { + { DBS_RX_CONTROL_AME, 1, 7, 0 }, { DBS_RX_CONTROL_AMS, 4, 8, 8},
(quoted diff) +2
-0+ { DBS_RX_CONTROL_LQ, 7, 0, 0 }, { DBS_RX_CONTROL_QE, 1, 17, 0 }, + { DBS_RX_CONTROL_UWE, 1, 12, 0 }, { DBS_RX_CONTROL_UWS, 4,13, 5 },
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+}; + +static nthw_fpga_field_init_s dbs_rx_dr_ctrl_fields[] = { + {DBS_RX_DR_CTRL_ADR ,7 ,0 ,0x0000 }, + {DBS_RX_DR_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_dr_data_fields[] = { + {DBS_RX_DR_DATA_GPA ,64 ,0 ,0x0000 }, {DBS_RX_DR_DATA_HDR ,1, 88,
0x0000},
+ {DBS_RX_DR_DATA_HID, 8, 64,0x0000}, {DBS_RX_DR_DATA_PCKED,
1, 87,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +33
-0+ { DBS_RX_DR_DATA_QS, 15, 72, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_idle_fields[] = { + { DBS_RX_IDLE_BUSY, 1, 8, 0 }, + { DBS_RX_IDLE_IDLE, 1, 0, 0x0000 }, + { DBS_RX_IDLE_QUEUE, 7, 1, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_init_fields[] = { + { DBS_RX_INIT_BUSY, 1, 8, 0 }, + { DBS_RX_INIT_INIT, 1, 0, 0x0000 }, + { DBS_RX_INIT_QUEUE, 7, 1, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_init_val_fields[] = { + { DBS_RX_INIT_VAL_IDX, 16, 0, 0x0000 }, + { DBS_RX_INIT_VAL_PTR, 15, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_ptr_fields[] = { + { DBS_RX_PTR_PTR, 16, 0, 0x0000 }, + { DBS_RX_PTR_QUEUE, 7, 16, 0x0000 }, + { DBS_RX_PTR_VALID, 1, 23, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_uw_ctrl_fields[] = { + { DBS_RX_UW_CTRL_ADR, 7, 0, 0x0000 }, + { DBS_RX_UW_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_rx_uw_data_fields[] = { + { DBS_RX_UW_DATA_GPA, 64, 0, 0x0000 }, { DBS_RX_UW_DATA_HID,8, 64,
0x0000},
+ {DBS_RX_UW_DATA_INT, 1, 88,0x0000}, {DBS_RX_UW_DATA_ISTK,
1, 92,0x0000},
+ {DBS_RX_UW_DATA_PCKED, 1, 87,0x0000}, {DBS_RX_UW_DATA_QS, 15, 72,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +10
-0+ { DBS_RX_UW_DATA_VEC, 3, 89, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_am_ctrl_fields[] = { + { DBS_TX_AM_CTRL_ADR, 7, 0, 0x0000 }, + { DBS_TX_AM_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_am_data_fields[] = { + { DBS_TX_AM_DATA_ENABLE, 1, 72, 0x0000 }, {
DBS_TX_AM_DATA_GPA, 64, 0,0x0000},
+ {DBS_TX_AM_DATA_HID, 8, 64,0x0000}, {DBS_TX_AM_DATA_INT,
1, 74,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { DBS_TX_AM_DATA_PCKED, 1, 73, 0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_control_fields[] = { + { DBS_TX_CONTROL_AME, 1, 7, 0 }, { DBS_TX_CONTROL_AMS, 4, 8, 5},
(quoted diff) +2
-0+ { DBS_TX_CONTROL_LQ, 7, 0, 0 }, { DBS_TX_CONTROL_QE, 1, 17, 0 }, + { DBS_TX_CONTROL_UWE, 1, 12, 0 }, { DBS_TX_CONTROL_UWS, 4,13, 8 },
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+}; + +static nthw_fpga_field_init_s dbs_tx_dr_ctrl_fields[] = { + {DBS_TX_DR_CTRL_ADR ,7 ,0 ,0x0000 }, + {DBS_TX_DR_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_dr_data_fields[] = { + {DBS_TX_DR_DATA_GPA ,64 ,0 ,0x0000 }, {DBS_TX_DR_DATA_HDR ,1, 88,
0x0000},
+ {DBS_TX_DR_DATA_HID, 8, 64,0x0000}, {DBS_TX_DR_DATA_PCKED,
1, 87,0x0000},
+ {DBS_TX_DR_DATA_PORT, 1, 89,0x0000}, {DBS_TX_DR_DATA_QS,
15, 72,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +57
-0+}; + +static nthw_fpga_field_init_s dbs_tx_idle_fields[] = { + {DBS_TX_IDLE_BUSY ,1 ,8 ,0 }, + {DBS_TX_IDLE_IDLE ,1 ,0 ,0x0000 }, + {DBS_TX_IDLE_QUEUE ,7 ,1 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_init_fields[] = { + {DBS_TX_INIT_BUSY ,1 ,8 ,0 }, + {DBS_TX_INIT_INIT ,1 ,0 ,0x0000 }, + {DBS_TX_INIT_QUEUE ,7 ,1 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_init_val_fields[] = { + {DBS_TX_INIT_VAL_IDX ,16 ,0 ,0x0000 }, + {DBS_TX_INIT_VAL_PTR ,15 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_ptr_fields[] = { + {DBS_TX_PTR_PTR ,16 ,0 ,0x0000 }, + {DBS_TX_PTR_QUEUE ,7 ,16 ,0x0000 }, + {DBS_TX_PTR_VALID ,1 ,23 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_qos_ctrl_fields[] = { + {DBS_TX_QOS_CTRL_ADR ,1 ,0 ,0x0000 }, + {DBS_TX_QOS_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_qos_data_fields[] = { + {DBS_TX_QOS_DATA_BS ,27 ,17 ,0x0000 }, + {DBS_TX_QOS_DATA_EN ,1 ,0 ,0x0000 }, + {DBS_TX_QOS_DATA_IR ,16 ,1 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_qos_rate_fields[] = { + {DBS_TX_QOS_RATE_DIV ,19 ,16 ,2 }, + {DBS_TX_QOS_RATE_MUL ,16 ,0 ,1 }, +}; + +static nthw_fpga_field_init_s dbs_tx_qp_ctrl_fields[] = { + {DBS_TX_QP_CTRL_ADR ,7 ,0 ,0x0000 }, + {DBS_TX_QP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_qp_data_fields[] = { + {DBS_TX_QP_DATA_VPORT ,1 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_uw_ctrl_fields[] = { + {DBS_TX_UW_CTRL_ADR ,7 ,0 ,0x0000 }, + {DBS_TX_UW_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s dbs_tx_uw_data_fields[] = { + {DBS_TX_UW_DATA_GPA ,64 ,0 ,0x0000 }, {DBS_TX_UW_DATA_HID ,8, 64,
0x0000},
+ {DBS_TX_UW_DATA_INO, 1, 93,0x0000}, {DBS_TX_UW_DATA_INT,
1, 88,0x0000},
+ {DBS_TX_UW_DATA_ISTK, 1, 92,0x0000}, {DBS_TX_UW_DATA_PCKED, 1, 87,0x0000},
+ {DBS_TX_UW_DATA_QS, 15, 72,0x0000}, {DBS_TX_UW_DATA_VEC,
3, 89,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_register_init_s dbs_registers[] = { + {DBS_RX_AM_CTRL ,10 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
dbs_rx_am_ctrl_fields},
+ {DBS_RX_AM_DATA, 11, 75,NTHW_FPGA_REG_TYPE_WO, 0, 5,dbs_rx_am_data_fields},
+ {DBS_RX_CONTROL, 0, 18,NTHW_FPGA_REG_TYPE_RW, 43008, 6,dbs_rx_control_fields},
+ {DBS_RX_DR_CTRL, 18, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_rx_dr_ctrl_fields},
+ {DBS_RX_DR_DATA, 19, 89,NTHW_FPGA_REG_TYPE_WO, 0, 5,dbs_rx_dr_data_fields},
+ {DBS_RX_IDLE, 8, 9,NTHW_FPGA_REG_TYPE_MIXED, 0, 3,dbs_rx_idle_fields},
+ {DBS_RX_INIT, 2, 9,NTHW_FPGA_REG_TYPE_MIXED, 0, 3,dbs_rx_init_fields},
+ {DBS_RX_INIT_VAL, 3, 31,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_rx_init_val_fields},
+ {DBS_RX_PTR, 4, 24,NTHW_FPGA_REG_TYPE_MIXED, 0, 3,dbs_rx_ptr_fields},
+ {DBS_RX_UW_CTRL, 14, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_rx_uw_ctrl_fields},
+ {DBS_RX_UW_DATA, 15, 93,NTHW_FPGA_REG_TYPE_WO, 0, 7,dbs_rx_uw_data_fields},
+ {DBS_TX_AM_CTRL, 12, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_tx_am_ctrl_fields},
+ {DBS_TX_AM_DATA, 13, 75,NTHW_FPGA_REG_TYPE_WO, 0, 5,dbs_tx_am_data_fields},
+ {DBS_TX_CONTROL, 1, 18,NTHW_FPGA_REG_TYPE_RW, 66816, 6,dbs_tx_control_fields},
+ {DBS_TX_DR_CTRL, 20, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_tx_dr_ctrl_fields},
+ {DBS_TX_DR_DATA, 21, 90,NTHW_FPGA_REG_TYPE_WO, 0, 6,dbs_tx_dr_data_fields},
+ {DBS_TX_IDLE, 9, 9,NTHW_FPGA_REG_TYPE_MIXED, 0, 3,dbs_tx_idle_fields},
+ {DBS_TX_INIT, 5, 9,NTHW_FPGA_REG_TYPE_MIXED, 0, 3,dbs_tx_init_fields},
+ {DBS_TX_INIT_VAL, 6, 31,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_tx_init_val_fields},
+ {DBS_TX_PTR, 7, 24,NTHW_FPGA_REG_TYPE_MIXED, 0, 3,dbs_tx_ptr_fields},
+ {DBS_TX_QOS_CTRL, 24, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_tx_qos_ctrl_fields},
+ {DBS_TX_QOS_DATA, 25, 44,NTHW_FPGA_REG_TYPE_WO, 0, 3,dbs_tx_qos_data_fields},
+ {DBS_TX_QOS_RATE, 26, 35,NTHW_FPGA_REG_TYPE_RW, 131073,
2,dbs_tx_qos_rate_fields},
+ {DBS_TX_QP_CTRL, 22, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_tx_qp_ctrl_fields},
+ {DBS_TX_QP_DATA, 23, 1,NTHW_FPGA_REG_TYPE_WO, 0, 1,dbs_tx_qp_data_fields},
+ {DBS_TX_UW_CTRL, 16, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,dbs_tx_uw_ctrl_fields},
+ {DBS_TX_UW_DATA, 17, 94,NTHW_FPGA_REG_TYPE_WO, 0, 8,dbs_tx_uw_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +10
-0+}; + +static nthw_fpga_field_init_s flm_buf_ctrl_fields[] = { + {FLM_BUF_CTRL_INF_AVAIL ,16 ,16 ,0x0000 }, + {FLM_BUF_CTRL_LRN_FREE ,16 ,0 ,0x0000 }, + {FLM_BUF_CTRL_STA_AVAIL ,16 ,32 ,0x0000 }, +}; + +static nthw_fpga_field_init_s flm_control_fields[] = { + {FLM_CONTROL_CRCRD ,1 ,12 ,0x0000 }, {FLM_CONTROL_CRCWR ,1, 11,
0x0000},(quoted diff) +2
-0+ { FLM_CONTROL_EAB, 5, 18, 0 }, { FLM_CONTROL_ENABLE, 1, 0, 0 }, + { FLM_CONTROL_INIT, 1, 1, 0x0000 }, { FLM_CONTROL_LDS, 1, 2,
0x0000},
+ {FLM_CONTROL_LFS, 1, 3,0x0000}, {FLM_CONTROL_LIS, 1, 4,0x0000},
+ {FLM_CONTROL_PDS, 1, 9,0x0000}, {FLM_CONTROL_PIS, 1, 10,0x0000},
+ {FLM_CONTROL_RBL, 4, 13, 0 }, {FLM_CONTROL_RDS, 1, 7,0x0000
},
+ {FLM_CONTROL_RIS, 1, 8,0x0000}, {FLM_CONTROL_SPLIT_SDRAM_USAGE, 5, 23, 16 },
+ {FLM_CONTROL_UDS, 1, 5,0x0000}, {FLM_CONTROL_UIS, 1, 6,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { FLM_CONTROL_WPD, 1, 17, 0 }, +}; + +static nthw_fpga_field_init_s flm_inf_data_fields[] = { + { FLM_INF_DATA_BYTES, 64, 0, 0x0000 }, { FLM_INF_DATA_CAUSE, 3,264,
0x0000},
+ {FLM_INF_DATA_EOR, 1, 287,0x0000}, {FLM_INF_DATA_ID, 72,
192,0x0000},
+ {FLM_INF_DATA_PACKETS, 64, 64,0x0000}, {FLM_INF_DATA_TS,
64, 128,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +16
-0+}; + +static nthw_fpga_field_init_s flm_load_aps_fields[] = { + {FLM_LOAD_APS_APS ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s flm_load_bin_fields[] = { + {FLM_LOAD_BIN_BIN ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s flm_load_lps_fields[] = { + {FLM_LOAD_LPS_LPS ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s flm_lrn_data_fields[] = { + {FLM_LRN_DATA_ADJ ,32 ,480 ,0x0000 }, {FLM_LRN_DATA_COLOR ,32, 448,
0x0000},
+ {FLM_LRN_DATA_DSCP, 6, 734,0x0000}, {FLM_LRN_DATA_ENT, 1,
729,0x0000},
+ {FLM_LRN_DATA_EOR, 1, 767,0x0000}, {FLM_LRN_DATA_FILL, 12,
584,0x0000},
+ {FLM_LRN_DATA_FT, 4, 596,0x0000}, {FLM_LRN_DATA_FT_MBR, 4,
600,0x0000},
+ {FLM_LRN_DATA_FT_MISS, 4, 604,0x0000}, {FLM_LRN_DATA_ID,
72, 512,0x0000},
+ {FLM_LRN_DATA_KID, 8, 328,0x0000}, {FLM_LRN_DATA_MBR_ID1,
28, 608,0x0000},
+ {FLM_LRN_DATA_MBR_ID2, 28, 636,0x0000}, {FLM_LRN_DATA_MBR_ID3, 28, 664,0x0000},
+ {FLM_LRN_DATA_MBR_ID4, 28, 692,0x0000}, {FLM_LRN_DATA_NAT_EN, 1, 747,0x0000},
+ {FLM_LRN_DATA_NAT_IP, 32, 336,0x0000}, {FLM_LRN_DATA_NAT_PORT, 16, 400,0x0000},
+ {FLM_LRN_DATA_NOFI, 1, 752,0x0000}, {FLM_LRN_DATA_OP, 4,
730,0x0000},
+ {FLM_LRN_DATA_PRIO, 2, 727,0x0000}, {FLM_LRN_DATA_PROT, 8,
320,0x0000},
+ {FLM_LRN_DATA_QFI, 6, 740,0x0000}, {FLM_LRN_DATA_QW0,
128, 192,0x0000},
+ {FLM_LRN_DATA_QW4, 128, 64,0x0000}, {FLM_LRN_DATA_RATE,
16, 416,0x0000},
+ {FLM_LRN_DATA_RQI, 1, 746,0x0000}, {FLM_LRN_DATA_SCRUB_PROF, 4, 748,0x0000},
+ {FLM_LRN_DATA_SIZE, 16, 432,0x0000}, {FLM_LRN_DATA_STAT_PROF, 4, 723,0x0000},
+ {FLM_LRN_DATA_SW8, 32, 32,0x0000}, {FLM_LRN_DATA_SW9, 32,
0,0x0000},
+ {FLM_LRN_DATA_TEID, 32, 368,0x0000}, {FLM_LRN_DATA_VOL_IDX, 3, 720,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_field_init_s flm_prio_fields[] = { + {FLM_PRIO_FT0 ,4 ,4 ,1 }, {FLM_PRIO_FT1 ,4 ,12 ,1 }, {
FLM_PRIO_FT2, 4, 20, 1 },
+ {FLM_PRIO_FT3, 4, 28, 1 }, {FLM_PRIO_LIMIT0, 4, 0, 0 }, {FLM_PRIO_LIMIT1, 4, 8, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +56
-0+ { FLM_PRIO_LIMIT2, 4, 16, 0 }, { FLM_PRIO_LIMIT3, 4, 24, 0 }, +}; + +static nthw_fpga_field_init_s flm_pst_ctrl_fields[] = { + { FLM_PST_CTRL_ADR, 4, 0, 0x0000 }, + { FLM_PST_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_pst_data_fields[] = { + { FLM_PST_DATA_BP, 5, 0, 0x0000 }, + { FLM_PST_DATA_PP, 5, 5, 0x0000 }, + { FLM_PST_DATA_TP, 5, 10, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_rcp_ctrl_fields[] = { + { FLM_RCP_CTRL_ADR, 5, 0, 0x0000 }, + { FLM_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_rcp_data_fields[] = { + { FLM_RCP_DATA_AUTO_IPV4_MASK, 1, 402, 0x0000 }, + { FLM_RCP_DATA_BYT_DYN, 5, 387, 0x0000 }, + { FLM_RCP_DATA_BYT_OFS, 8, 392, 0x0000 }, + { FLM_RCP_DATA_IPN, 1, 386, 0x0000 }, + { FLM_RCP_DATA_KID, 8, 377, 0x0000 }, + { FLM_RCP_DATA_LOOKUP, 1, 0, 0x0000 }, + { FLM_RCP_DATA_MASK, 320, 57, 0x0000 }, + { FLM_RCP_DATA_OPN, 1, 385, 0x0000 }, + { FLM_RCP_DATA_QW0_DYN, 5, 1, 0x0000 }, + { FLM_RCP_DATA_QW0_OFS, 8, 6, 0x0000 }, + { FLM_RCP_DATA_QW0_SEL, 2, 14, 0x0000 }, + { FLM_RCP_DATA_QW4_DYN, 5, 16, 0x0000 }, + { FLM_RCP_DATA_QW4_OFS, 8, 21, 0x0000 }, + { FLM_RCP_DATA_SW8_DYN, 5, 29, 0x0000 }, + { FLM_RCP_DATA_SW8_OFS, 8, 34, 0x0000 }, + { FLM_RCP_DATA_SW8_SEL, 2, 42, 0x0000 }, + { FLM_RCP_DATA_SW9_DYN, 5, 44, 0x0000 }, + { FLM_RCP_DATA_SW9_OFS, 8, 49, 0x0000 }, + { FLM_RCP_DATA_TXPLM, 2, 400, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_scan_fields[] = { + { FLM_SCAN_I, 16, 0, 0 }, +}; + +static nthw_fpga_field_init_s flm_scrub_ctrl_fields[] = { + { FLM_SCRUB_CTRL_ADR, 4, 0, 0x0000 }, + { FLM_SCRUB_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_scrub_data_fields[] = { + { FLM_SCRUB_DATA_T, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s flm_status_fields[] = { + { FLM_STATUS_CALIBDONE, 1, 0, 0x0000 }, { FLM_STATUS_CRCERR, 1,5,
0x0000},
+ {FLM_STATUS_CRITICAL, 1, 3,0x0000}, {FLM_STATUS_EFT_BP, 1, 6,0x0000},
+ {FLM_STATUS_IDLE, 1, 2,0x0000}, {FLM_STATUS_INITDONE, 1, 1,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +109
-0+ { FLM_STATUS_PANIC, 1, 4, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_aul_done_fields[] = { + { FLM_STAT_AUL_DONE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_aul_fail_fields[] = { + { FLM_STAT_AUL_FAIL_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_aul_ignore_fields[] = { + { FLM_STAT_AUL_IGNORE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_csh_hit_fields[] = { + { FLM_STAT_CSH_HIT_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_csh_miss_fields[] = { + { FLM_STAT_CSH_MISS_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_csh_unh_fields[] = { + { FLM_STAT_CSH_UNH_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_cuc_move_fields[] = { + { FLM_STAT_CUC_MOVE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_cuc_start_fields[] = { + { FLM_STAT_CUC_START_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_flows_fields[] = { + { FLM_STAT_FLOWS_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_inf_done_fields[] = { + { FLM_STAT_INF_DONE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_inf_skip_fields[] = { + { FLM_STAT_INF_SKIP_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_lrn_done_fields[] = { + { FLM_STAT_LRN_DONE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_lrn_fail_fields[] = { + { FLM_STAT_LRN_FAIL_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_lrn_ignore_fields[] = { + { FLM_STAT_LRN_IGNORE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_pck_dis_fields[] = { + { FLM_STAT_PCK_DIS_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_pck_hit_fields[] = { + { FLM_STAT_PCK_HIT_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_pck_miss_fields[] = { + { FLM_STAT_PCK_MISS_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_pck_unh_fields[] = { + { FLM_STAT_PCK_UNH_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_prb_done_fields[] = { + { FLM_STAT_PRB_DONE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_prb_ignore_fields[] = { + { FLM_STAT_PRB_IGNORE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_rel_done_fields[] = { + { FLM_STAT_REL_DONE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_rel_ignore_fields[] = { + { FLM_STAT_REL_IGNORE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_sta_done_fields[] = { + { FLM_STAT_STA_DONE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_tul_done_fields[] = { + { FLM_STAT_TUL_DONE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_unl_done_fields[] = { + { FLM_STAT_UNL_DONE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_stat_unl_ignore_fields[] = { + { FLM_STAT_UNL_IGNORE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_sta_data_fields[] = { + { FLM_STA_DATA_EOR, 1, 95, 0x0000 }, { FLM_STA_DATA_ID, 72, 0,
0x0000},
+ {FLM_STA_DATA_LDS, 1, 72,0x0000}, {FLM_STA_DATA_LFS, 1, 73,0x0000},
+ {FLM_STA_DATA_LIS, 1, 74,0x0000}, {FLM_STA_DATA_PDS, 1, 79,0x0000},
+ {FLM_STA_DATA_PIS, 1, 80,0x0000}, {FLM_STA_DATA_RDS, 1, 77,0x0000},
+ {FLM_STA_DATA_RIS, 1, 78,0x0000}, {FLM_STA_DATA_UDS, 1, 75,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { FLM_STA_DATA_UIS, 1, 76, 0x0000 }, +}; + +static nthw_fpga_register_init_s flm_registers[] = { + { FLM_BUF_CTRL, 14, 48, NTHW_FPGA_REG_TYPE_RW, 0, 3,
flm_buf_ctrl_fields},
+ {FLM_CONTROL, 0, 28,NTHW_FPGA_REG_TYPE_MIXED, 134217728,
17,flm_control_fields},
+ {FLM_INF_DATA, 16, 288,NTHW_FPGA_REG_TYPE_RO, 0, 6,flm_inf_data_fields},
+ {FLM_LOAD_APS, 5, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_load_aps_fields},
+ {FLM_LOAD_BIN, 3, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,flm_load_bin_fields},
+ {FLM_LOAD_LPS, 4, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_load_lps_fields},
+ {FLM_LRN_DATA, 15, 768,NTHW_FPGA_REG_TYPE_WO, 0, 34,flm_lrn_data_fields},
+ {FLM_PRIO, 6, 32,NTHW_FPGA_REG_TYPE_WO, 269488144, 8,flm_prio_fields},
+ {FLM_PST_CTRL, 12, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,flm_pst_ctrl_fields},
+ {FLM_PST_DATA, 13, 15,NTHW_FPGA_REG_TYPE_WO, 0, 3,flm_pst_data_fields},
+ {FLM_RCP_CTRL, 8, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,flm_rcp_ctrl_fields},
+ {FLM_RCP_DATA, 9, 403,NTHW_FPGA_REG_TYPE_WO, 0, 19,flm_rcp_data_fields},
+ {FLM_SCAN, 2, 16,NTHW_FPGA_REG_TYPE_WO, 0, 1,flm_scan_fields},
+ {FLM_SCRUB_CTRL, 10, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,flm_scrub_ctrl_fields},
+ {FLM_SCRUB_DATA, 11, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,flm_scrub_data_fields},
+ {FLM_STATUS, 1, 12,NTHW_FPGA_REG_TYPE_MIXED, 0, 7,flm_status_fields},
+ {FLM_STAT_AUL_DONE, 41, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_aul_done_fields},
+ {FLM_STAT_AUL_FAIL, 43, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_aul_fail_fields},
+ {FLM_STAT_AUL_IGNORE, 42, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_aul_ignore_fields},
+ {FLM_STAT_CSH_HIT, 52, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_csh_hit_fields},
+ {FLM_STAT_CSH_MISS, 53, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_csh_miss_fields},
+ {FLM_STAT_CSH_UNH, 54, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_csh_unh_fields},
+ {FLM_STAT_CUC_MOVE, 56, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_cuc_move_fields},
+ {FLM_STAT_CUC_START, 55, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_cuc_start_fields},
+ {FLM_STAT_FLOWS, 18, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_flows_fields},
+ {FLM_STAT_INF_DONE, 46, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_inf_done_fields},
+ {FLM_STAT_INF_SKIP, 47, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_inf_skip_fields},
+ {FLM_STAT_LRN_DONE, 32, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_lrn_done_fields},
+ {FLM_STAT_LRN_FAIL, 34, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_lrn_fail_fields},
+ {FLM_STAT_LRN_IGNORE, 33, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_lrn_ignore_fields},
+ {FLM_STAT_PCK_DIS, 51, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_pck_dis_fields},
+ {FLM_STAT_PCK_HIT, 48, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_pck_hit_fields},
+ {FLM_STAT_PCK_MISS, 49, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_pck_miss_fields},
+ {FLM_STAT_PCK_UNH, 50, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_pck_unh_fields},
+ {FLM_STAT_PRB_DONE, 39, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_prb_done_fields},
+ {FLM_STAT_PRB_IGNORE, 40, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_prb_ignore_fields},
+ {FLM_STAT_REL_DONE, 37, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_rel_done_fields},
+ {FLM_STAT_REL_IGNORE, 38, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_rel_ignore_fields},
+ {FLM_STAT_STA_DONE, 45, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_sta_done_fields},
+ {FLM_STAT_TUL_DONE, 44, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_tul_done_fields},
+ {FLM_STAT_UNL_DONE, 35, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_unl_done_fields},
+ {FLM_STAT_UNL_IGNORE, 36, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,flm_stat_unl_ignore_fields},
+ {FLM_STA_DATA, 17, 96,NTHW_FPGA_REG_TYPE_RO, 0, 11,flm_sta_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +50
-0+}; + +static nthw_fpga_field_init_s gfg_burstsize0_fields[] = { + {GFG_BURSTSIZE0_VAL ,24 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gfg_burstsize1_fields[] = { + {GFG_BURSTSIZE1_VAL ,24 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gfg_ctrl0_fields[] = { + {GFG_CTRL0_ENABLE ,1 ,0 ,0 }, + {GFG_CTRL0_MODE ,3 ,1 ,0 }, + {GFG_CTRL0_PRBS_EN ,1 ,4 ,0 }, + {GFG_CTRL0_SIZE ,14 ,16 ,64 }, +}; + +static nthw_fpga_field_init_s gfg_ctrl1_fields[] = { + {GFG_CTRL1_ENABLE ,1 ,0 ,0 }, + {GFG_CTRL1_MODE ,3 ,1 ,0 }, + {GFG_CTRL1_PRBS_EN ,1 ,4 ,0 }, + {GFG_CTRL1_SIZE ,14 ,16 ,64 }, +}; + +static nthw_fpga_field_init_s gfg_run0_fields[] = { + {GFG_RUN0_RUN ,1 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gfg_run1_fields[] = { + {GFG_RUN1_RUN ,1 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gfg_sizemask0_fields[] = { + {GFG_SIZEMASK0_VAL ,14 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gfg_sizemask1_fields[] = { + {GFG_SIZEMASK1_VAL ,14 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gfg_streamid0_fields[] = { + {GFG_STREAMID0_VAL ,8 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gfg_streamid1_fields[] = { + {GFG_STREAMID1_VAL ,8 ,0 ,1 }, +}; + +static nthw_fpga_register_init_s gfg_registers[] = { + {GFG_BURSTSIZE0 ,3 ,24 ,NTHW_FPGA_REG_TYPE_WO ,0 ,1 ,
gfg_burstsize0_fields},
+ {GFG_BURSTSIZE1, 8, 24,NTHW_FPGA_REG_TYPE_WO, 0, 1,gfg_burstsize1_fields},
+ {GFG_CTRL0, 0, 30,NTHW_FPGA_REG_TYPE_WO, 4194304, 4,gfg_ctrl0_fields},
+ {GFG_CTRL1, 5, 30,NTHW_FPGA_REG_TYPE_WO, 4194304, 4,gfg_ctrl1_fields},
+ {GFG_RUN0, 1, 1,NTHW_FPGA_REG_TYPE_WO, 0, 1,gfg_run0_fields
},
+ {GFG_RUN1, 6, 1,NTHW_FPGA_REG_TYPE_WO, 0, 1,gfg_run1_fields
},
+ {GFG_SIZEMASK0, 4, 14,NTHW_FPGA_REG_TYPE_WO, 0, 1,gfg_sizemask0_fields},
+ {GFG_SIZEMASK1, 9, 14,NTHW_FPGA_REG_TYPE_WO, 0, 1,gfg_sizemask1_fields},
+ {GFG_STREAMID0, 2, 8,NTHW_FPGA_REG_TYPE_WO, 0, 1,gfg_streamid0_fields},
+ {GFG_STREAMID1, 7, 8,NTHW_FPGA_REG_TYPE_WO, 1, 1,gfg_streamid1_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +63
-0+}; + +static nthw_fpga_field_init_s gmf_ctrl_fields[] = { + {GMF_CTRL_ENABLE ,1 ,0 ,0 }, + {GMF_CTRL_FCS_ALWAYS ,1 ,1 ,0 }, + {GMF_CTRL_IFG_AUTO_ADJUST_ENABLE ,1 ,7 ,0 }, + {GMF_CTRL_IFG_ENABLE ,1 ,2 ,0 }, + {GMF_CTRL_IFG_TX_NOW_ALWAYS ,1 ,3 ,0 }, + {GMF_CTRL_IFG_TX_NOW_ON_TS_ENABLE ,1 ,5 ,0 }, + {GMF_CTRL_IFG_TX_ON_TS_ADJUST_ON_SET_CLOCK ,1 ,6 ,0 }, + {GMF_CTRL_IFG_TX_ON_TS_ALWAYS ,1 ,4 ,0 }, + {GMF_CTRL_TS_INJECT_ALWAYS ,1 ,8 ,0 }, + {GMF_CTRL_TS_INJECT_DUAL_STEP ,1 ,9 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_debug_lane_marker_fields[] = { + {GMF_DEBUG_LANE_MARKER_COMPENSATION ,16 ,0 ,16384 }, +}; + +static nthw_fpga_field_init_s gmf_ifg_max_adjust_slack_fields[] = { + {GMF_IFG_MAX_ADJUST_SLACK_SLACK ,64 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_ifg_set_clock_delta_fields[] = { + {GMF_IFG_SET_CLOCK_DELTA_DELTA ,64 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_ifg_set_clock_delta_adjust_fields[] = { + {GMF_IFG_SET_CLOCK_DELTA_ADJUST_DELTA ,64 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_ifg_tx_now_on_ts_fields[] = { + {GMF_IFG_TX_NOW_ON_TS_TS ,64 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_speed_fields[] = { + {GMF_SPEED_IFG_SPEED ,64 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_stat_data_buffer_fields[] = { + {GMF_STAT_DATA_BUFFER_USED ,15 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s gmf_stat_max_delayed_pkt_fields[] = { + {GMF_STAT_MAX_DELAYED_PKT_NS ,64 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_stat_next_pkt_fields[] = { + {GMF_STAT_NEXT_PKT_NS ,64 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_stat_sticky_fields[] = { + {GMF_STAT_STICKY_DATA_UNDERFLOWED ,1 ,0 ,0 }, + {GMF_STAT_STICKY_IFG_ADJUSTED ,1 ,1 ,0 }, +}; + +static nthw_fpga_field_init_s gmf_ts_inject_fields[] = { + {GMF_TS_INJECT_OFFSET ,14 ,0 ,0 }, + {GMF_TS_INJECT_POS ,2 ,14 ,0 }, +}; + +static nthw_fpga_register_init_s gmf_registers[] = { + {GMF_CTRL ,0 ,10 ,NTHW_FPGA_REG_TYPE_WO ,0 ,10 ,
gmf_ctrl_fields},(quoted diff) +2
-0+ { + GMF_DEBUG_LANE_MARKER, 7, 16,
NTHW_FPGA_REG_TYPE_WO, 16384, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ gmf_debug_lane_marker_fields + }, + { + GMF_IFG_MAX_ADJUST_SLACK, 4, 64,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ gmf_ifg_max_adjust_slack_fields + }, + { + GMF_IFG_SET_CLOCK_DELTA, 2, 64,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ gmf_ifg_set_clock_delta_fields + }, + { + GMF_IFG_SET_CLOCK_DELTA_ADJUST, 3, 64,
NTHW_FPGA_REG_TYPE_WO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ gmf_ifg_set_clock_delta_adjust_fields + }, + { GMF_IFG_TX_NOW_ON_TS, 5, 64, NTHW_FPGA_REG_TYPE_WO, 0,1,
gmf_ifg_tx_now_on_ts_fields},
+ {GMF_SPEED, 1, 64,NTHW_FPGA_REG_TYPE_WO, 0, 1,gmf_speed_fields},
+ {GMF_STAT_DATA_BUFFER, 9, 15,NTHW_FPGA_REG_TYPE_RO, 0, 1,gmf_stat_data_buffer_fields},(quoted diff) +2
-0+ { + GMF_STAT_MAX_DELAYED_PKT, 11, 64,
NTHW_FPGA_REG_TYPE_RC1, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ gmf_stat_max_delayed_pkt_fields + }, + { GMF_STAT_NEXT_PKT, 10, 64, NTHW_FPGA_REG_TYPE_RO, 0, 1,
gmf_stat_next_pkt_fields},
+ {GMF_STAT_STICKY, 8, 2,NTHW_FPGA_REG_TYPE_RC1, 0, 2,gmf_stat_sticky_fields},
+ {GMF_TS_INJECT, 6, 16,NTHW_FPGA_REG_TYPE_WO, 0, 2,gmf_ts_inject_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_field_init_s gpio_phy_cfg_fields[] = { + {GPIO_PHY_CFG_E_PORT0_RXLOS ,1 ,8 ,0 }, {
GPIO_PHY_CFG_E_PORT1_RXLOS, 1, 9, 0 },
+ {GPIO_PHY_CFG_PORT0_INT_B, 1, 1, 1 }, {GPIO_PHY_CFG_PORT0_LPMODE, 1, 0, 0 },
+ {GPIO_PHY_CFG_PORT0_MODPRS_B, 1, 3, 1 }, {GPIO_PHY_CFG_PORT0_RESET_B, 1, 2, 0 },
+ {GPIO_PHY_CFG_PORT1_INT_B, 1, 5, 1 }, {GPIO_PHY_CFG_PORT1_LPMODE, 1, 4, 0 },
+ {GPIO_PHY_CFG_PORT1_MODPRS_B, 1, 7, 1 }, {GPIO_PHY_CFG_PORT1_RESET_B, 1, 6, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_field_init_s gpio_phy_gpio_fields[] = { + {GPIO_PHY_GPIO_E_PORT0_RXLOS ,1 ,8 ,0 }, {
GPIO_PHY_GPIO_E_PORT1_RXLOS, 1, 9, 0 },
+ {GPIO_PHY_GPIO_PORT0_INT_B, 1, 1,0x0000}, {GPIO_PHY_GPIO_PORT0_LPMODE, 1, 0, 1 },
+ {GPIO_PHY_GPIO_PORT0_MODPRS_B, 1, 3,0x0000}, {GPIO_PHY_GPIO_PORT0_RESET_B, 1, 2, 0 },
+ {GPIO_PHY_GPIO_PORT1_INT_B, 1, 5,0x0000}, {GPIO_PHY_GPIO_PORT1_LPMODE, 1, 4, 1 },
+ {GPIO_PHY_GPIO_PORT1_MODPRS_B, 1, 7,0x0000}, {GPIO_PHY_GPIO_PORT1_RESET_B, 1, 6, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_register_init_s gpio_phy_registers[] = { + {GPIO_PHY_CFG ,0 ,10 ,NTHW_FPGA_REG_TYPE_RW ,170 ,10 ,
gpio_phy_cfg_fields},
+ {GPIO_PHY_GPIO, 1, 10,NTHW_FPGA_REG_TYPE_RW, 17, 10,gpio_phy_gpio_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +34
-0+}; + +static nthw_fpga_field_init_s hfu_rcp_ctrl_fields[] = { + {HFU_RCP_CTRL_ADR ,6 ,0 ,0x0000 }, + {HFU_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s hfu_rcp_data_fields[] = { + {HFU_RCP_DATA_LEN_A_ADD_DYN ,5 ,15 ,0x0000 }, + {HFU_RCP_DATA_LEN_A_ADD_OFS ,8 ,20 ,0x0000 }, + {HFU_RCP_DATA_LEN_A_OL4LEN ,1 ,1 ,0x0000 }, + {HFU_RCP_DATA_LEN_A_POS_DYN ,5 ,2 ,0x0000 }, + {HFU_RCP_DATA_LEN_A_POS_OFS ,8 ,7 ,0x0000 }, + {HFU_RCP_DATA_LEN_A_SUB_DYN ,5 ,28 ,0x0000 }, + {HFU_RCP_DATA_LEN_A_WR ,1 ,0 ,0x0000 }, + {HFU_RCP_DATA_LEN_B_ADD_DYN ,5 ,47 ,0x0000 }, + {HFU_RCP_DATA_LEN_B_ADD_OFS ,8 ,52 ,0x0000 }, + {HFU_RCP_DATA_LEN_B_POS_DYN ,5 ,34 ,0x0000 }, + {HFU_RCP_DATA_LEN_B_POS_OFS ,8 ,39 ,0x0000 }, + {HFU_RCP_DATA_LEN_B_SUB_DYN ,5 ,60 ,0x0000 }, + {HFU_RCP_DATA_LEN_B_WR ,1 ,33 ,0x0000 }, + {HFU_RCP_DATA_LEN_C_ADD_DYN ,5 ,79 ,0x0000 }, + {HFU_RCP_DATA_LEN_C_ADD_OFS ,8 ,84 ,0x0000 }, + {HFU_RCP_DATA_LEN_C_POS_DYN ,5 ,66 ,0x0000 }, + {HFU_RCP_DATA_LEN_C_POS_OFS ,8 ,71 ,0x0000 }, + {HFU_RCP_DATA_LEN_C_SUB_DYN ,5 ,92 ,0x0000 }, + {HFU_RCP_DATA_LEN_C_WR ,1 ,65 ,0x0000 }, + {HFU_RCP_DATA_TTL_POS_DYN ,5 ,98 ,0x0000 }, + {HFU_RCP_DATA_TTL_POS_OFS ,8 ,103 ,0x0000 }, + {HFU_RCP_DATA_TTL_WR ,1 ,97 ,0x0000 }, +}; + +static nthw_fpga_register_init_s hfu_registers[] = { + {HFU_RCP_CTRL ,0 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
hfu_rcp_ctrl_fields},
+ {HFU_RCP_DATA, 1, 111,NTHW_FPGA_REG_TYPE_WO, 0, 22,hfu_rcp_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +88
-0+}; + +static nthw_fpga_field_init_s hif_build_time_fields[] = { + {HIF_BUILD_TIME_TIME ,32 ,0 ,1713859545 }, +}; + +static nthw_fpga_field_init_s hif_config_fields[] = { + {HIF_CONFIG_EXT_TAG ,1 ,6 ,0x0000 }, + {HIF_CONFIG_MAX_READ ,3 ,3 ,0x0000 }, + {HIF_CONFIG_MAX_TLP ,3 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s hif_control_fields[] = { + {HIF_CONTROL_BLESSED ,8 ,4 ,0 }, + {HIF_CONTROL_FSR ,1 ,12 ,1 }, + {HIF_CONTROL_WRAW ,4 ,0 ,1 }, +}; + +static nthw_fpga_field_init_s hif_prod_id_ex_fields[] = { + {HIF_PROD_ID_EX_LAYOUT ,1 ,31 ,0 }, + {HIF_PROD_ID_EX_LAYOUT_VERSION ,8 ,0 ,1 }, + {HIF_PROD_ID_EX_RESERVED ,23 ,8 ,0 }, +}; + +static nthw_fpga_field_init_s hif_prod_id_lsb_fields[] = { + {HIF_PROD_ID_LSB_GROUP_ID ,16 ,16 ,9563 }, + {HIF_PROD_ID_LSB_REV_ID ,8 ,0 ,39 }, + {HIF_PROD_ID_LSB_VER_ID ,8 ,8 ,55 }, +}; + +static nthw_fpga_field_init_s hif_prod_id_msb_fields[] = { + {HIF_PROD_ID_MSB_BUILD_NO ,10 ,12 ,0 }, + {HIF_PROD_ID_MSB_TYPE_ID ,12 ,0 ,200 }, +}; + +static nthw_fpga_field_init_s hif_sample_time_fields[] = { + {HIF_SAMPLE_TIME_SAMPLE_TIME ,1 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s hif_status_fields[] = { + {HIF_STATUS_RD_ERR ,1 ,9 ,0 }, + {HIF_STATUS_TAGS_IN_USE ,8 ,0 ,0 }, + {HIF_STATUS_WR_ERR ,1 ,8 ,0 }, +}; + +static nthw_fpga_field_init_s hif_stat_ctrl_fields[] = { + {HIF_STAT_CTRL_STAT_ENA ,1 ,1 ,0 }, + {HIF_STAT_CTRL_STAT_REQ ,1 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s hif_stat_refclk_fields[] = { + {HIF_STAT_REFCLK_REFCLK250 ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s hif_stat_rx_fields[] = { + {HIF_STAT_RX_COUNTER ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s hif_stat_tx_fields[] = { + {HIF_STAT_TX_COUNTER ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s hif_test0_fields[] = { + {HIF_TEST0_DATA ,32 ,0 ,287454020 }, +}; + +static nthw_fpga_field_init_s hif_test1_fields[] = { + {HIF_TEST1_DATA ,32 ,0 ,2864434397 }, +}; + +static nthw_fpga_field_init_s hif_uuid0_fields[] = { + {HIF_UUID0_UUID0 ,32 ,0 ,1237800326 }, +}; + +static nthw_fpga_field_init_s hif_uuid1_fields[] = { + {HIF_UUID1_UUID1 ,32 ,0 ,3057550372 }, +}; + +static nthw_fpga_field_init_s hif_uuid2_fields[] = { + {HIF_UUID2_UUID2 ,32 ,0 ,2445752330 }, +}; + +static nthw_fpga_field_init_s hif_uuid3_fields[] = { + {HIF_UUID3_UUID3 ,32 ,0 ,1864147557 }, +}; + +static nthw_fpga_register_init_s hif_registers[] = { + {HIF_BUILD_TIME ,16 ,32 ,NTHW_FPGA_REG_TYPE_RO ,1713859545, 1,
hif_build_time_fields},
+ {HIF_CONFIG, 24, 7,NTHW_FPGA_REG_TYPE_RW, 0, 3,hif_config_fields},
+ {HIF_CONTROL, 40, 13,NTHW_FPGA_REG_TYPE_MIXED, 4097, 3,hif_control_fields},
+ {HIF_PROD_ID_EX, 112, 32,NTHW_FPGA_REG_TYPE_RO, 1, 3,hif_prod_id_ex_fields},
+ {HIF_PROD_ID_LSB, 0, 32,NTHW_FPGA_REG_TYPE_RO, 626734887,
3,hif_prod_id_lsb_fields},
+ {HIF_PROD_ID_MSB, 8, 22,NTHW_FPGA_REG_TYPE_RO, 200, 2,hif_prod_id_msb_fields},
+ {HIF_SAMPLE_TIME, 96, 1,NTHW_FPGA_REG_TYPE_WO, 0, 1,hif_sample_time_fields},
+ {HIF_STATUS, 32, 10,NTHW_FPGA_REG_TYPE_MIXED, 0, 3,hif_status_fields},
+ {HIF_STAT_CTRL, 64, 2,NTHW_FPGA_REG_TYPE_WO, 0, 2,hif_stat_ctrl_fields},
+ {HIF_STAT_REFCLK, 72, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,hif_stat_refclk_fields},
+ {HIF_STAT_RX, 88, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,hif_stat_rx_fields},
+ {HIF_STAT_TX, 80, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,hif_stat_tx_fields},
+ {HIF_TEST0, 48, 32,NTHW_FPGA_REG_TYPE_RW, 287454020, 1,hif_test0_fields},
+ {HIF_TEST1, 56, 32,NTHW_FPGA_REG_TYPE_RW, 2864434397, 1,hif_test1_fields},
+ {HIF_UUID0, 128, 32,NTHW_FPGA_REG_TYPE_RO, 1237800326, 1,hif_uuid0_fields},
+ {HIF_UUID1, 144, 32,NTHW_FPGA_REG_TYPE_RO, 3057550372, 1,hif_uuid1_fields},
+ {HIF_UUID2, 160, 32,NTHW_FPGA_REG_TYPE_RO, 2445752330, 1,hif_uuid2_fields},
+ {HIF_UUID3, 176, 32,NTHW_FPGA_REG_TYPE_RO, 1864147557, 1,hif_uuid3_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +35
-0+}; + +static nthw_fpga_field_init_s hsh_rcp_ctrl_fields[] = { + {HSH_RCP_CTRL_ADR ,4 ,0 ,0x0000 }, + {HSH_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s hsh_rcp_data_fields[] = { + {HSH_RCP_DATA_AUTO_IPV4_MASK ,1 ,742 ,0x0000 }, + {HSH_RCP_DATA_HSH_TYPE ,5 ,416 ,0x0000 }, + {HSH_RCP_DATA_HSH_VALID ,1 ,415 ,0x0000 }, + {HSH_RCP_DATA_K ,320 ,422 ,0x0000 }, + {HSH_RCP_DATA_LOAD_DIST_TYPE ,2 ,0 ,0x0000 }, + {HSH_RCP_DATA_MAC_PORT_MASK ,2 ,2 ,0x0000 }, + {HSH_RCP_DATA_P_MASK ,1 ,61 ,0x0000 }, + {HSH_RCP_DATA_QW0_OFS ,8 ,11 ,0x0000 }, + {HSH_RCP_DATA_QW0_PE ,5 ,6 ,0x0000 }, + {HSH_RCP_DATA_QW4_OFS ,8 ,24 ,0x0000 }, + {HSH_RCP_DATA_QW4_PE ,5 ,19 ,0x0000 }, + {HSH_RCP_DATA_SEED ,32 ,382 ,0x0000 }, + {HSH_RCP_DATA_SORT ,2 ,4 ,0x0000 }, + {HSH_RCP_DATA_TNL_P ,1 ,414 ,0x0000 }, + {HSH_RCP_DATA_TOEPLITZ ,1 ,421 ,0x0000 }, + {HSH_RCP_DATA_W8_OFS ,8 ,37 ,0x0000 }, + {HSH_RCP_DATA_W8_PE ,5 ,32 ,0x0000 }, + {HSH_RCP_DATA_W8_SORT ,1 ,45 ,0x0000 }, + {HSH_RCP_DATA_W9_OFS ,8 ,51 ,0x0000 }, + {HSH_RCP_DATA_W9_P ,1 ,60 ,0x0000 }, + {HSH_RCP_DATA_W9_PE ,5 ,46 ,0x0000 }, + {HSH_RCP_DATA_W9_SORT ,1 ,59 ,0x0000 }, + {HSH_RCP_DATA_WORD_MASK ,320 ,62 ,0x0000 }, +}; + +static nthw_fpga_register_init_s hsh_registers[] = { + {HSH_RCP_CTRL ,0 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
hsh_rcp_ctrl_fields},
+ {HSH_RCP_DATA, 1, 743,NTHW_FPGA_REG_TYPE_WO, 0, 23,hsh_rcp_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +27
-0+}; + +static nthw_fpga_field_init_s ifr_counters_ctrl_fields[] = { + {IFR_COUNTERS_CTRL_ADR ,4 ,0 ,0x0000 }, + {IFR_COUNTERS_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_counters_data_fields[] = { + {IFR_COUNTERS_DATA_DROP ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_df_buf_ctrl_fields[] = { + {IFR_DF_BUF_CTRL_AVAILABLE ,11 ,0 ,0x0000 }, + {IFR_DF_BUF_CTRL_MTU_PROFILE ,16 ,11 ,0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_df_buf_data_fields[] = { + {IFR_DF_BUF_DATA_FIFO_DAT ,128 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_rcp_ctrl_fields[] = { + {IFR_RCP_CTRL_ADR ,4 ,0 ,0x0000 }, + {IFR_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_rcp_data_fields[] = { + {IFR_RCP_DATA_IPV4_DF_DROP ,1 ,17 ,0x0000 }, {
IFR_RCP_DATA_IPV4_EN, 1, 0,0x0000},
+ {IFR_RCP_DATA_IPV6_DROP, 1, 16,0x0000}, {IFR_RCP_DATA_IPV6_EN, 1, 1,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { IFR_RCP_DATA_MTU, 14, 2, 0x0000 }, +}; + +static nthw_fpga_register_init_s ifr_registers[] = { + { IFR_COUNTERS_CTRL, 4, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
ifr_counters_ctrl_fields},
+ {IFR_COUNTERS_DATA, 5, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,ifr_counters_data_fields},
+ {IFR_DF_BUF_CTRL, 2, 27,NTHW_FPGA_REG_TYPE_RO, 0, 2,ifr_df_buf_ctrl_fields},
+ {IFR_DF_BUF_DATA, 3, 128,NTHW_FPGA_REG_TYPE_RO, 0, 1,ifr_df_buf_data_fields},
+ {IFR_RCP_CTRL, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,ifr_rcp_ctrl_fields},
+ {IFR_RCP_DATA, 1, 18,NTHW_FPGA_REG_TYPE_WO, 0, 5,ifr_rcp_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +8
-0+}; + +static nthw_fpga_field_init_s iic_adr_fields[] = { + {IIC_ADR_SLV_ADR ,7 ,1 ,0 }, +}; + +static nthw_fpga_field_init_s iic_cr_fields[] = { + {IIC_CR_EN ,1 ,0 ,0 }, {IIC_CR_GC_EN ,1 ,6 ,0 }, {IIC_CR_MSMS ,1 ,2 ,0 },
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +14
-0+ { IIC_CR_RST, 1, 7, 0 }, { IIC_CR_RSTA, 1, 5, 0 }, { IIC_CR_TX, 1, 3, 0 }, + { IIC_CR_TXAK, 1, 4, 0 }, { IIC_CR_TXFIFO_RESET, 1, 1, 0 }, +}; + +static nthw_fpga_field_init_s iic_dgie_fields[] = { + { IIC_DGIE_GIE, 1, 31, 0 }, +}; + +static nthw_fpga_field_init_s iic_gpo_fields[] = { + { IIC_GPO_GPO_VAL, 1, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_ier_fields[] = { + { IIC_IER_INT0, 1, 0, 0 }, { IIC_IER_INT1, 1, 1, 0 }, { IIC_IER_INT2, 1, 2,0 },
+ {IIC_IER_INT3, 1, 3, 0 }, {IIC_IER_INT4, 1, 4, 0 }, {IIC_IER_INT5, 1, 5,
0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { IIC_IER_INT6, 1, 6, 0 }, { IIC_IER_INT7, 1, 7, 0 }, +}; + +static nthw_fpga_field_init_s iic_isr_fields[] = { + { IIC_ISR_INT0, 1, 0, 0 }, { IIC_ISR_INT1, 1, 1, 0 }, { IIC_ISR_INT2, 1, 2,0 },
+ {IIC_ISR_INT3, 1, 3, 0 }, {IIC_ISR_INT4, 1, 4, 0 }, {IIC_ISR_INT5, 1, 5,
0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +22
-0+ { IIC_ISR_INT6, 1, 6, 0 }, { IIC_ISR_INT7, 1, 7, 0 }, +}; + +static nthw_fpga_field_init_s iic_rx_fifo_fields[] = { + { IIC_RX_FIFO_RXDATA, 8, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_rx_fifo_ocy_fields[] = { + { IIC_RX_FIFO_OCY_OCY_VAL, 4, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_rx_fifo_pirq_fields[] = { + { IIC_RX_FIFO_PIRQ_CMP_VAL, 4, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_softr_fields[] = { + { IIC_SOFTR_RKEY, 4, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s iic_sr_fields[] = { + { IIC_SR_AAS, 1, 1, 0 }, { IIC_SR_ABGC, 1, 0, 0 }, { IIC_SR_BB, 1, 2, 0 }, + { IIC_SR_RXFIFO_EMPTY, 1, 6, 1 }, { IIC_SR_RXFIFO_FULL, 1, 5, 0 }, {
IIC_SR_SRW, 1, 3, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +57
-0+ { IIC_SR_TXFIFO_EMPTY, 1, 7, 1 }, { IIC_SR_TXFIFO_FULL, 1, 4, 0 }, +}; + +static nthw_fpga_field_init_s iic_tbuf_fields[] = { + { IIC_TBUF_TBUF_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_ten_adr_fields[] = { + { IIC_TEN_ADR_MSB_SLV_ADR, 3, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_thddat_fields[] = { + { IIC_THDDAT_THDDAT_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_thdsta_fields[] = { + { IIC_THDSTA_THDSTA_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_thigh_fields[] = { + { IIC_THIGH_THIGH_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_tlow_fields[] = { + { IIC_TLOW_TLOW_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_tsudat_fields[] = { + { IIC_TSUDAT_TSUDAT_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_tsusta_fields[] = { + { IIC_TSUSTA_TSUSTA_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_tsusto_fields[] = { + { IIC_TSUSTO_TSUSTO_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_tx_fifo_fields[] = { + { IIC_TX_FIFO_START, 1, 8, 0 }, + { IIC_TX_FIFO_STOP, 1, 9, 0 }, + { IIC_TX_FIFO_TXDATA, 8, 0, 0 }, +}; + +static nthw_fpga_field_init_s iic_tx_fifo_ocy_fields[] = { + { IIC_TX_FIFO_OCY_OCY_VAL, 4, 0, 0 }, +}; + +static nthw_fpga_register_init_s iic_registers[] = { + { IIC_ADR, 68, 8, NTHW_FPGA_REG_TYPE_RW, 0, 1, iic_adr_fields }, + { IIC_CR, 64, 8, NTHW_FPGA_REG_TYPE_RW, 0, 8, iic_cr_fields }, + { IIC_DGIE, 7, 32, NTHW_FPGA_REG_TYPE_RW, 0, 1, iic_dgie_fields }, + { IIC_GPO, 73, 1, NTHW_FPGA_REG_TYPE_RW, 0, 1, iic_gpo_fields }, + { IIC_IER, 10, 8, NTHW_FPGA_REG_TYPE_RW, 0, 8, iic_ier_fields }, + { IIC_ISR, 8, 8, NTHW_FPGA_REG_TYPE_RW, 0, 8, iic_isr_fields }, + { IIC_RX_FIFO, 67, 8, NTHW_FPGA_REG_TYPE_RO, 0, 1,
iic_rx_fifo_fields},
+ {IIC_RX_FIFO_OCY, 70, 4,NTHW_FPGA_REG_TYPE_RO, 0, 1,iic_rx_fifo_ocy_fields},
+ {IIC_RX_FIFO_PIRQ, 72, 4,NTHW_FPGA_REG_TYPE_RW, 0, 1,iic_rx_fifo_pirq_fields},
+ {IIC_SOFTR, 16, 4,NTHW_FPGA_REG_TYPE_WO, 0, 1,iic_softr_fields
},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ { IIC_SR, 65, 8, NTHW_FPGA_REG_TYPE_RO, 192, 8, iic_sr_fields }, + { IIC_TBUF, 78, 32, NTHW_FPGA_REG_TYPE_RW, 0, 1, iic_tbuf_fields }, + { IIC_TEN_ADR, 71, 3, NTHW_FPGA_REG_TYPE_RO, 0, 1,
iic_ten_adr_fields},
+ {IIC_THDDAT, 81, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,iic_thddat_fields},
+ {IIC_THDSTA, 76, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,iic_thdsta_fields},
+ {IIC_THIGH, 79, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,iic_thigh_fields
},
+ {IIC_TLOW, 80, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,iic_tlow_fields
},
+ {IIC_TSUDAT, 77, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,iic_tsudat_fields},
+ {IIC_TSUSTA, 74, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,iic_tsusta_fields},
+ {IIC_TSUSTO, 75, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,iic_tsusto_fields},
+ {IIC_TX_FIFO, 66, 10,NTHW_FPGA_REG_TYPE_WO, 0, 3,iic_tx_fifo_fields},
+ {IIC_TX_FIFO_OCY, 69, 4,NTHW_FPGA_REG_TYPE_RO, 0, 1,iic_tx_fifo_ocy_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +15
-0+}; + +static nthw_fpga_field_init_s ins_rcp_ctrl_fields[] = { + {INS_RCP_CTRL_ADR ,4 ,0 ,0x0000 }, + {INS_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s ins_rcp_data_fields[] = { + {INS_RCP_DATA_DYN ,5 ,0 ,0x0000 }, + {INS_RCP_DATA_LEN ,8 ,15 ,0x0000 }, + {INS_RCP_DATA_OFS ,10 ,5 ,0x0000 }, +}; + +static nthw_fpga_register_init_s ins_registers[] = { + {INS_RCP_CTRL ,0 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
ins_rcp_ctrl_fields},
+ {INS_RCP_DATA, 1, 23,NTHW_FPGA_REG_TYPE_WO, 0, 3,ins_rcp_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+}; + +static nthw_fpga_field_init_s km_cam_ctrl_fields[] = { + {KM_CAM_CTRL_ADR ,13 ,0 ,0x0000 }, + {KM_CAM_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s km_cam_data_fields[] = { + {KM_CAM_DATA_FT0 ,4 ,192 ,0x0000 }, {KM_CAM_DATA_FT1 ,4 ,196,
0x0000},
+ {KM_CAM_DATA_FT2, 4, 200,0x0000}, {KM_CAM_DATA_FT3, 4,
204,0x0000},
+ {KM_CAM_DATA_FT4, 4, 208,0x0000}, {KM_CAM_DATA_FT5, 4,
212,0x0000},
+ {KM_CAM_DATA_W0, 32, 0,0x0000}, {KM_CAM_DATA_W1, 32, 32,0x0000},
+ {KM_CAM_DATA_W2, 32, 64,0x0000}, {KM_CAM_DATA_W3, 32,
96,0x0000},
+ {KM_CAM_DATA_W4, 32, 128,0x0000}, {KM_CAM_DATA_W5, 32,
160,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+}; + +static nthw_fpga_field_init_s km_rcp_ctrl_fields[] = { + {KM_RCP_CTRL_ADR ,5 ,0 ,0x0000 }, + {KM_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s km_rcp_data_fields[] = { + {KM_RCP_DATA_BANK_A ,12 ,694 ,0x0000 }, {
KM_RCP_DATA_BANK_B, 12, 706,0x0000},
+ {KM_RCP_DATA_DUAL, 1, 651,0x0000}, {KM_RCP_DATA_DW0_B_DYN, 5, 729,0x0000},
+ {KM_RCP_DATA_DW0_B_OFS, 8, 734,0x0000}, {KM_RCP_DATA_DW10_DYN, 5, 55,0x0000},
+ {KM_RCP_DATA_DW10_OFS, 8, 60,0x0000}, {KM_RCP_DATA_DW10_SEL_A, 2, 68,0x0000},
+ {KM_RCP_DATA_DW10_SEL_B, 2, 70,0x0000}, {KM_RCP_DATA_DW2_B_DYN, 5, 742,0x0000},
+ {KM_RCP_DATA_DW2_B_OFS, 8, 747,0x0000}, {KM_RCP_DATA_DW8_DYN, 5, 36,0x0000},
+ {KM_RCP_DATA_DW8_OFS, 8, 41,0x0000}, {KM_RCP_DATA_DW8_SEL_A, 3, 49,0x0000},
+ {KM_RCP_DATA_DW8_SEL_B, 3, 52,0x0000}, {KM_RCP_DATA_EL_A, 4, 653,0x0000},
+ {KM_RCP_DATA_EL_B, 3, 657,0x0000}, {KM_RCP_DATA_FTM_A,
16, 662,0x0000},
+ {KM_RCP_DATA_FTM_B, 16, 678,0x0000}, {KM_RCP_DATA_INFO_A, 1, 660,0x0000},
+ {KM_RCP_DATA_INFO_B, 1, 661,0x0000}, {KM_RCP_DATA_KEYWAY_A, 1, 725,0x0000},
+ {KM_RCP_DATA_KEYWAY_B, 1, 726,0x0000}, {KM_RCP_DATA_KL_A, 4, 718,0x0000},
+ {KM_RCP_DATA_KL_B, 3, 722,0x0000}, {KM_RCP_DATA_MASK_A,
384, 75,0x0000},
+ {KM_RCP_DATA_MASK_B, 192, 459,0x0000}, {KM_RCP_DATA_PAIRED, 1, 652,0x0000},
+ {KM_RCP_DATA_QW0_DYN, 5, 0,0x0000}, {KM_RCP_DATA_QW0_OFS, 8, 5,0x0000},
+ {KM_RCP_DATA_QW0_SEL_A, 3, 13,0x0000}, {KM_RCP_DATA_QW0_SEL_B, 3, 16,0x0000},
+ {KM_RCP_DATA_QW4_DYN, 5, 19,0x0000}, {KM_RCP_DATA_QW4_OFS, 8, 24,0x0000},
+ {KM_RCP_DATA_QW4_SEL_A, 2, 32,0x0000}, {KM_RCP_DATA_QW4_SEL_B, 2, 34,0x0000},
+ {KM_RCP_DATA_SW4_B_DYN, 5, 755,0x0000}, {KM_RCP_DATA_SW4_B_OFS, 8, 760,0x0000},
+ {KM_RCP_DATA_SW5_B_DYN, 5, 768,0x0000}, {KM_RCP_DATA_SW5_B_OFS, 8, 773,0x0000},
+ {KM_RCP_DATA_SWX_CCH, 1, 72,0x0000}, {KM_RCP_DATA_SWX_SEL_A, 1, 73,0x0000},
+ {KM_RCP_DATA_SWX_SEL_B, 1, 74,0x0000}, {KM_RCP_DATA_SYNERGY_MODE, 2, 727,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +37
-0+}; + +static nthw_fpga_field_init_s km_status_fields[] = { + {KM_STATUS_TCQ_RDY ,1 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s km_tcam_ctrl_fields[] = { + {KM_TCAM_CTRL_ADR ,14 ,0 ,0x0000 }, + {KM_TCAM_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s km_tcam_data_fields[] = { + {KM_TCAM_DATA_T ,72 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s km_tci_ctrl_fields[] = { + {KM_TCI_CTRL_ADR ,10 ,0 ,0x0000 }, + {KM_TCI_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s km_tci_data_fields[] = { + {KM_TCI_DATA_COLOR ,32 ,0 ,0x0000 }, + {KM_TCI_DATA_FT ,4 ,32 ,0x0000 }, +}; + +static nthw_fpga_field_init_s km_tcq_ctrl_fields[] = { + {KM_TCQ_CTRL_ADR ,7 ,0 ,0x0000 }, + {KM_TCQ_CTRL_CNT ,5 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s km_tcq_data_fields[] = { + {KM_TCQ_DATA_BANK_MASK ,12 ,0 ,0x0000 }, + {KM_TCQ_DATA_QUAL ,3 ,12 ,0x0000 }, +}; + +static nthw_fpga_register_init_s km_registers[] = { + {KM_CAM_CTRL ,2 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
km_cam_ctrl_fields},
+ {KM_CAM_DATA, 3, 216,NTHW_FPGA_REG_TYPE_WO, 0, 12,km_cam_data_fields},
+ {KM_RCP_CTRL, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,km_rcp_ctrl_fields},
+ {KM_RCP_DATA, 1, 781,NTHW_FPGA_REG_TYPE_WO, 0, 44,km_rcp_data_fields},
+ {KM_STATUS, 10, 1,NTHW_FPGA_REG_TYPE_RO, 0, 1,km_status_fields},
+ {KM_TCAM_CTRL, 4, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,km_tcam_ctrl_fields},
+ {KM_TCAM_DATA, 5, 72,NTHW_FPGA_REG_TYPE_WO, 0, 1,km_tcam_data_fields},
+ {KM_TCI_CTRL, 6, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,km_tci_ctrl_fields},
+ {KM_TCI_DATA, 7, 36,NTHW_FPGA_REG_TYPE_WO, 0, 2,km_tci_data_fields},
+ {KM_TCQ_CTRL, 8, 21,NTHW_FPGA_REG_TYPE_WO, 0, 2,km_tcq_ctrl_fields},
+ {KM_TCQ_DATA, 9, 15,NTHW_FPGA_REG_TYPE_WO, 0, 2,km_tcq_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +27
-0+}; + +static nthw_fpga_field_init_s mac_pcs_bad_code_fields[] = { + {MAC_PCS_BAD_CODE_CODE_ERR ,16 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_bip_err_fields[] = { + {MAC_PCS_BIP_ERR_BIP_ERR ,640 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_block_lock_fields[] = { + {MAC_PCS_BLOCK_LOCK_LOCK ,20 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_block_lock_chg_fields[] = { + {MAC_PCS_BLOCK_LOCK_CHG_LOCK_CHG ,20 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_debounce_ctrl_fields[] = { + {MAC_PCS_DEBOUNCE_CTRL_NT_DEBOUNCE_LATENCY ,8 ,8 ,10 }, + {MAC_PCS_DEBOUNCE_CTRL_NT_FORCE_LINK_DOWN ,1 ,16 ,0 }, + {MAC_PCS_DEBOUNCE_CTRL_NT_LINKUP_LATENCY ,8 ,0 ,10 }, + {MAC_PCS_DEBOUNCE_CTRL_NT_PORT_CTRL ,2 ,17 ,2 }, +}; + +static nthw_fpga_field_init_s mac_pcs_drp_ctrl_fields[] = { + {MAC_PCS_DRP_CTRL_ADR ,10 ,16 ,0 }, {
MAC_PCS_DRP_CTRL_DATA, 16, 0, 0 },
+ {MAC_PCS_DRP_CTRL_DBG_BUSY, 1, 30,0x0000}, {MAC_PCS_DRP_CTRL_DONE, 1, 31,0x0000},
+ {MAC_PCS_DRP_CTRL_MOD_ADR, 3, 26, 0 }, {MAC_PCS_DRP_CTRL_WREN, 1, 29, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +66
-0+}; + +static nthw_fpga_field_init_s mac_pcs_fec_ctrl_fields[] = { + {MAC_PCS_FEC_CTRL_RS_FEC_CTRL_IN ,5 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_cw_cnt_fields[] = { + {MAC_PCS_FEC_CW_CNT_CW_CNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_err_cnt_0_fields[] = { + {MAC_PCS_FEC_ERR_CNT_0_ERR_CNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_err_cnt_1_fields[] = { + {MAC_PCS_FEC_ERR_CNT_1_ERR_CNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_err_cnt_2_fields[] = { + {MAC_PCS_FEC_ERR_CNT_2_ERR_CNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_err_cnt_3_fields[] = { + {MAC_PCS_FEC_ERR_CNT_3_ERR_CNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_lane_dly_0_fields[] = { + {MAC_PCS_FEC_LANE_DLY_0_DLY ,14 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_lane_dly_1_fields[] = { + {MAC_PCS_FEC_LANE_DLY_1_DLY ,14 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_lane_dly_2_fields[] = { + {MAC_PCS_FEC_LANE_DLY_2_DLY ,14 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_lane_dly_3_fields[] = { + {MAC_PCS_FEC_LANE_DLY_3_DLY ,14 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_lane_map_fields[] = { + {MAC_PCS_FEC_LANE_MAP_MAPPING ,8 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_stat_fields[] = { + {MAC_PCS_FEC_STAT_AM_LOCK ,1 ,10 ,0x0000 }, + {MAC_PCS_FEC_STAT_AM_LOCK_0 ,1 ,3 ,0x0000 }, + {MAC_PCS_FEC_STAT_AM_LOCK_1 ,1 ,4 ,0x0000 }, + {MAC_PCS_FEC_STAT_AM_LOCK_2 ,1 ,5 ,0x0000 }, + {MAC_PCS_FEC_STAT_AM_LOCK_3 ,1 ,6 ,0x0000 }, + {MAC_PCS_FEC_STAT_BLOCK_LOCK ,1 ,9 ,0x0000 }, + {MAC_PCS_FEC_STAT_BYPASS ,1 ,0 ,0x0000 }, + {MAC_PCS_FEC_STAT_FEC_LANE_ALGN ,1 ,7 ,0x0000 }, + {MAC_PCS_FEC_STAT_HI_SER ,1 ,2 ,0x0000 }, + {MAC_PCS_FEC_STAT_PCS_LANE_ALGN ,1 ,8 ,0x0000 }, + {MAC_PCS_FEC_STAT_VALID ,1 ,1 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_fec_ucw_cnt_fields[] = { + {MAC_PCS_FEC_UCW_CNT_UCW_CNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_gty_ctl_rx_fields[] = { + {MAC_PCS_GTY_CTL_RX_CDR_HOLD_0 ,1 ,24 ,0 }, {
MAC_PCS_GTY_CTL_RX_CDR_HOLD_1, 1, 25, 0 },
+ {MAC_PCS_GTY_CTL_RX_CDR_HOLD_2, 1, 26, 0 }, {MAC_PCS_GTY_CTL_RX_CDR_HOLD_3, 1, 27, 0 },
+ {MAC_PCS_GTY_CTL_RX_EQUA_RST_0, 1, 20, 0 }, {MAC_PCS_GTY_CTL_RX_EQUA_RST_1, 1, 21, 0 },
+ {MAC_PCS_GTY_CTL_RX_EQUA_RST_2, 1, 22, 0 }, {MAC_PCS_GTY_CTL_RX_EQUA_RST_3, 1, 23, 0 },
+ {MAC_PCS_GTY_CTL_RX_LPM_EN_0, 1, 16, 0 }, {MAC_PCS_GTY_CTL_RX_LPM_EN_1, 1, 17, 0 },
+ {MAC_PCS_GTY_CTL_RX_LPM_EN_2, 1, 18, 0 }, {MAC_PCS_GTY_CTL_RX_LPM_EN_3, 1, 19, 0 },
+ {MAC_PCS_GTY_CTL_RX_POLARITY_0, 1, 0, 0 }, {MAC_PCS_GTY_CTL_RX_POLARITY_1, 1, 1, 0 },
+ {MAC_PCS_GTY_CTL_RX_POLARITY_2, 1, 2, 0 }, {MAC_PCS_GTY_CTL_RX_POLARITY_3, 1, 3, 0 },
+ {MAC_PCS_GTY_CTL_RX_RATE_0, 3, 4, 0 }, {MAC_PCS_GTY_CTL_RX_RATE_1, 3, 7, 0 },
+ {MAC_PCS_GTY_CTL_RX_RATE_2, 3, 10, 0 }, {MAC_PCS_GTY_CTL_RX_RATE_3, 3, 13, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_field_init_s mac_pcs_gty_ctl_tx_fields[] = { + {MAC_PCS_GTY_CTL_TX_INHIBIT_0 ,1 ,4 ,0 }, {
MAC_PCS_GTY_CTL_TX_INHIBIT_1, 1, 5, 0 },
+ {MAC_PCS_GTY_CTL_TX_INHIBIT_2, 1, 6, 0 }, {MAC_PCS_GTY_CTL_TX_INHIBIT_3, 1, 7, 0 },
+ {MAC_PCS_GTY_CTL_TX_POLARITY_0, 1, 0, 0 }, {MAC_PCS_GTY_CTL_TX_POLARITY_1, 1, 1, 0 },
+ {MAC_PCS_GTY_CTL_TX_POLARITY_2, 1, 2, 0 }, {MAC_PCS_GTY_CTL_TX_POLARITY_3, 1, 3, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +47
-0+}; + +static nthw_fpga_field_init_s mac_pcs_gty_diff_ctl_fields[] = { + {MAC_PCS_GTY_DIFF_CTL_TX_DIFF_CTL_0 ,5 ,0 ,24 }, + {MAC_PCS_GTY_DIFF_CTL_TX_DIFF_CTL_1 ,5 ,5 ,24 }, + {MAC_PCS_GTY_DIFF_CTL_TX_DIFF_CTL_2 ,5 ,10 ,24 }, + {MAC_PCS_GTY_DIFF_CTL_TX_DIFF_CTL_3 ,5 ,15 ,24 }, +}; + +static nthw_fpga_field_init_s mac_pcs_gty_loop_fields[] = { + {MAC_PCS_GTY_LOOP_GT_LOOP_0 ,3 ,0 ,0 }, + {MAC_PCS_GTY_LOOP_GT_LOOP_1 ,3 ,3 ,0 }, + {MAC_PCS_GTY_LOOP_GT_LOOP_2 ,3 ,6 ,0 }, + {MAC_PCS_GTY_LOOP_GT_LOOP_3 ,3 ,9 ,0 }, +}; + +static nthw_fpga_field_init_s mac_pcs_gty_post_cursor_fields[] = { + {MAC_PCS_GTY_POST_CURSOR_TX_POST_CSR_0 ,5 ,0 ,20 }, + {MAC_PCS_GTY_POST_CURSOR_TX_POST_CSR_1 ,5 ,5 ,20 }, + {MAC_PCS_GTY_POST_CURSOR_TX_POST_CSR_2 ,5 ,10 ,20 }, + {MAC_PCS_GTY_POST_CURSOR_TX_POST_CSR_3 ,5 ,15 ,20 }, +}; + +static nthw_fpga_field_init_s mac_pcs_gty_prbs_sel_fields[] = { + {MAC_PCS_GTY_PRBS_SEL_RX_PRBS_SEL_0 ,4 ,16 ,0 }, + {MAC_PCS_GTY_PRBS_SEL_RX_PRBS_SEL_1 ,4 ,20 ,0 }, + {MAC_PCS_GTY_PRBS_SEL_RX_PRBS_SEL_2 ,4 ,24 ,0 }, + {MAC_PCS_GTY_PRBS_SEL_RX_PRBS_SEL_3 ,4 ,28 ,0 }, + {MAC_PCS_GTY_PRBS_SEL_TX_PRBS_SEL_0 ,4 ,0 ,0 }, + {MAC_PCS_GTY_PRBS_SEL_TX_PRBS_SEL_1 ,4 ,4 ,0 }, + {MAC_PCS_GTY_PRBS_SEL_TX_PRBS_SEL_2 ,4 ,8 ,0 }, + {MAC_PCS_GTY_PRBS_SEL_TX_PRBS_SEL_3 ,4 ,12 ,0 }, +}; + +static nthw_fpga_field_init_s mac_pcs_gty_pre_cursor_fields[] = { + {MAC_PCS_GTY_PRE_CURSOR_TX_PRE_CSR_0 ,5 ,0 ,0 }, + {MAC_PCS_GTY_PRE_CURSOR_TX_PRE_CSR_1 ,5 ,5 ,0 }, + {MAC_PCS_GTY_PRE_CURSOR_TX_PRE_CSR_2 ,5 ,10 ,0 }, + {MAC_PCS_GTY_PRE_CURSOR_TX_PRE_CSR_3 ,5 ,15 ,0 }, +}; + +static nthw_fpga_field_init_s mac_pcs_gty_rx_buf_stat_fields[] = { + {MAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_0 ,3 ,0 ,0x0000 }, + {MAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_1 ,3 ,3 ,0x0000 }, + {MAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_2 ,3 ,6 ,0x0000 }, + {MAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_3 ,3 ,9 ,0x0000 }, + {MAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_CHANGED_0 ,3 ,12 ,
0x0000},
+ {MAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_CHANGED_1, 3, 15,0x0000},
+ {MAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_CHANGED_2, 3, 18,0x0000},
+ {MAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_CHANGED_3, 3, 21,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +113
-0+}; + +static nthw_fpga_field_init_s mac_pcs_gty_scan_ctl_fields[] = { + {MAC_PCS_GTY_SCAN_CTL_EYE_SCAN_RST_0 ,1 ,0 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_EYE_SCAN_RST_1 ,1 ,1 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_EYE_SCAN_RST_2 ,1 ,2 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_EYE_SCAN_RST_3 ,1 ,3 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_EYE_SCAN_TRG_0 ,1 ,4 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_EYE_SCAN_TRG_1 ,1 ,5 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_EYE_SCAN_TRG_2 ,1 ,6 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_EYE_SCAN_TRG_3 ,1 ,7 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_PRBS_ERR_INS_0 ,1 ,12 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_PRBS_ERR_INS_1 ,1 ,13 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_PRBS_ERR_INS_2 ,1 ,14 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_PRBS_ERR_INS_3 ,1 ,15 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_PRBS_RST_0 ,1 ,8 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_PRBS_RST_1 ,1 ,9 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_PRBS_RST_2 ,1 ,10 ,0 }, + {MAC_PCS_GTY_SCAN_CTL_PRBS_RST_3 ,1 ,11 ,0 }, +}; + +static nthw_fpga_field_init_s mac_pcs_gty_scan_stat_fields[] = { + {MAC_PCS_GTY_SCAN_STAT_EYE_SCAN_ERR_0 ,1 ,0 ,0x0000 }, + {MAC_PCS_GTY_SCAN_STAT_EYE_SCAN_ERR_1 ,1 ,1 ,0x0000 }, + {MAC_PCS_GTY_SCAN_STAT_EYE_SCAN_ERR_2 ,1 ,2 ,0x0000 }, + {MAC_PCS_GTY_SCAN_STAT_EYE_SCAN_ERR_3 ,1 ,3 ,0x0000 }, + {MAC_PCS_GTY_SCAN_STAT_PRBS_ERR_0 ,1 ,4 ,0x0000 }, + {MAC_PCS_GTY_SCAN_STAT_PRBS_ERR_1 ,1 ,5 ,0x0000 }, + {MAC_PCS_GTY_SCAN_STAT_PRBS_ERR_2 ,1 ,6 ,0x0000 }, + {MAC_PCS_GTY_SCAN_STAT_PRBS_ERR_3 ,1 ,7 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_gty_stat_fields[] = { + {MAC_PCS_GTY_STAT_RX_RST_DONE_0 ,1 ,4 ,0x0000 }, + {MAC_PCS_GTY_STAT_RX_RST_DONE_1 ,1 ,5 ,0x0000 }, + {MAC_PCS_GTY_STAT_RX_RST_DONE_2 ,1 ,6 ,0x0000 }, + {MAC_PCS_GTY_STAT_RX_RST_DONE_3 ,1 ,7 ,0x0000 }, + {MAC_PCS_GTY_STAT_TX_BUF_STAT_0 ,2 ,8 ,0x0000 }, + {MAC_PCS_GTY_STAT_TX_BUF_STAT_1 ,2 ,10 ,0x0000 }, + {MAC_PCS_GTY_STAT_TX_BUF_STAT_2 ,2 ,12 ,0x0000 }, + {MAC_PCS_GTY_STAT_TX_BUF_STAT_3 ,2 ,14 ,0x0000 }, + {MAC_PCS_GTY_STAT_TX_RST_DONE_0 ,1 ,0 ,0x0000 }, + {MAC_PCS_GTY_STAT_TX_RST_DONE_1 ,1 ,1 ,0x0000 }, + {MAC_PCS_GTY_STAT_TX_RST_DONE_2 ,1 ,2 ,0x0000 }, + {MAC_PCS_GTY_STAT_TX_RST_DONE_3 ,1 ,3 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_link_summary_fields[] = { + {MAC_PCS_LINK_SUMMARY_ABS ,1 ,0 ,0x0000 }, + {MAC_PCS_LINK_SUMMARY_LH_ABS ,1 ,2 ,0x0000 }, + {MAC_PCS_LINK_SUMMARY_LH_LOCAL_FAULT ,1 ,13 ,0 }, + {MAC_PCS_LINK_SUMMARY_LH_REMOTE_FAULT ,1 ,14 ,0 }, + {MAC_PCS_LINK_SUMMARY_LINK_DOWN_CNT ,8 ,4 ,0 }, + {MAC_PCS_LINK_SUMMARY_LL_PHY_LINK_STATE ,1 ,3 ,0x0000 }, + {MAC_PCS_LINK_SUMMARY_LOCAL_FAULT ,1 ,17 ,0x0000 }, + {MAC_PCS_LINK_SUMMARY_NIM_INTERR ,1 ,12 ,0x0000 }, + {MAC_PCS_LINK_SUMMARY_NT_PHY_LINK_STATE ,1 ,1 ,0x0000 }, + {MAC_PCS_LINK_SUMMARY_REMOTE_FAULT ,1 ,18 ,0x0000 }, + {MAC_PCS_LINK_SUMMARY_RESERVED ,2 ,15 ,0 }, +}; + +static nthw_fpga_field_init_s mac_pcs_mac_pcs_config_fields[] = { + {MAC_PCS_MAC_PCS_CONFIG_RX_CORE_RST ,1 ,3 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_RX_ENABLE ,1 ,5 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_RX_FORCE_RESYNC ,1 ,6 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_RX_PATH_RST ,1 ,1 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_RX_TEST_PATTERN ,1 ,7 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_TX_CORE_RST ,1 ,2 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_TX_ENABLE ,1 ,8 ,1 }, + {MAC_PCS_MAC_PCS_CONFIG_TX_FCS_REMOVE ,1 ,4 ,1 }, + {MAC_PCS_MAC_PCS_CONFIG_TX_PATH_RST ,1 ,0 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_TX_SEND_IDLE ,1 ,9 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_TX_SEND_RFI ,1 ,10 ,0 }, + {MAC_PCS_MAC_PCS_CONFIG_TX_TEST_PATTERN ,1 ,11 ,0 }, +}; + +static nthw_fpga_field_init_s mac_pcs_max_pkt_len_fields[] = { + {MAC_PCS_MAX_PKT_LEN_MAX_LEN ,14 ,0 ,10000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_phymac_misc_fields[] = { + {MAC_PCS_PHYMAC_MISC_TS_EOP ,1 ,3 ,1 }, + {MAC_PCS_PHYMAC_MISC_TX_MUX_STATE ,4 ,4 ,0x0000 }, + {MAC_PCS_PHYMAC_MISC_TX_SEL_HOST ,1 ,0 ,1 }, + {MAC_PCS_PHYMAC_MISC_TX_SEL_RX_LOOP ,1 ,2 ,0 }, + {MAC_PCS_PHYMAC_MISC_TX_SEL_TFG ,1 ,1 ,0 }, +}; + +static nthw_fpga_field_init_s mac_pcs_phy_stat_fields[] = { + {MAC_PCS_PHY_STAT_ALARM ,1 ,2 ,0x0000 }, + {MAC_PCS_PHY_STAT_MOD_PRS ,1 ,1 ,0x0000 }, + {MAC_PCS_PHY_STAT_RX_LOS ,1 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_stat_pcs_rx_fields[] = { + {MAC_PCS_STAT_PCS_RX_ALIGNED ,1 ,1 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_ALIGNED_ERR ,1 ,2 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_GOT_SIGNAL_OS ,1 ,9 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_HI_BER ,1 ,8 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_INTERNAL_LOCAL_FAULT ,1 ,4 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_LOCAL_FAULT ,1 ,6 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_MISALIGNED ,1 ,3 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_RECEIVED_LOCAL_FAULT ,1 ,5 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_REMOTE_FAULT ,1 ,7 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_STATUS ,1 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_stat_pcs_rx_latch_fields[] = { + {MAC_PCS_STAT_PCS_RX_LATCH_ALIGNED ,1 ,1 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_LATCH_ALIGNED_ERR ,1 ,2 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_LATCH_GOT_SIGNAL_OS ,1 ,9 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_LATCH_HI_BER ,1 ,8 ,0x0000 }, + {MAC_PCS_STAT_PCS_RX_LATCH_INTERNAL_LOCAL_FAULT ,1 ,4 ,
0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ { MAC_PCS_STAT_PCS_RX_LATCH_LOCAL_FAULT, 1, 6, 0x0000 }, + { MAC_PCS_STAT_PCS_RX_LATCH_MISALIGNED, 1, 3, 0x0000 }, + { MAC_PCS_STAT_PCS_RX_LATCH_RECEIVED_LOCAL_FAULT, 1, 5,
0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+ { MAC_PCS_STAT_PCS_RX_LATCH_REMOTE_FAULT, 1, 7, 0x0000 }, + { MAC_PCS_STAT_PCS_RX_LATCH_STATUS, 1, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_stat_pcs_tx_fields[] = { + { MAC_PCS_STAT_PCS_TX_LOCAL_FAULT, 1, 0, 0x0000 }, + { MAC_PCS_STAT_PCS_TX_LOCAL_FAULT_CHANGED, 1, 5, 0x0000 }, + { MAC_PCS_STAT_PCS_TX_PTP_FIFO_READ_ERROR, 1, 4, 0x0000 }, + { MAC_PCS_STAT_PCS_TX_PTP_FIFO_READ_ERROR_CHANGED, 1, 9,
0x0000},(quoted diff) +2
-0+ { MAC_PCS_STAT_PCS_TX_PTP_FIFO_WRITE_ERROR, 1, 3, 0x0000 }, + { MAC_PCS_STAT_PCS_TX_PTP_FIFO_WRITE_ERROR_CHANGED, 1, 8,
0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +33
-0+ { MAC_PCS_STAT_PCS_TX_TX_OVFOUT, 1, 2, 0x0000 }, + { MAC_PCS_STAT_PCS_TX_TX_OVFOUT_CHANGED, 1, 7, 0x0000 }, + { MAC_PCS_STAT_PCS_TX_TX_UNFOUT, 1, 1, 0x0000 }, + { MAC_PCS_STAT_PCS_TX_TX_UNFOUT_CHANGED, 1, 6, 0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_synced_fields[] = { + { MAC_PCS_SYNCED_SYNC, 20, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_synced_err_fields[] = { + { MAC_PCS_SYNCED_ERR_SYNC_ERROR, 20, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_test_err_fields[] = { + { MAC_PCS_TEST_ERR_CODE_ERR, 16, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_timestamp_comp_fields[] = { + { MAC_PCS_TIMESTAMP_COMP_RX_DLY, 16, 0, 1451 }, + { MAC_PCS_TIMESTAMP_COMP_TX_DLY, 16, 16, 1440 }, +}; + +static nthw_fpga_field_init_s mac_pcs_vl_demuxed_fields[] = { + { MAC_PCS_VL_DEMUXED_LOCK, 20, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s mac_pcs_vl_demuxed_chg_fields[] = { + { MAC_PCS_VL_DEMUXED_CHG_LOCK_CHG, 20, 0, 0x0000 }, +}; + +static nthw_fpga_register_init_s mac_pcs_registers[] = { + { MAC_PCS_BAD_CODE, 26, 16, NTHW_FPGA_REG_TYPE_RO, 0, 1,
mac_pcs_bad_code_fields},
+ {MAC_PCS_BIP_ERR, 31, 640,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_pcs_bip_err_fields},
+ {MAC_PCS_BLOCK_LOCK, 27, 20,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_pcs_block_lock_fields},(quoted diff) +2
-0+ { + MAC_PCS_BLOCK_LOCK_CHG, 28, 20,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_block_lock_chg_fields + }, + { + MAC_PCS_DEBOUNCE_CTRL, 1, 19,
NTHW_FPGA_REG_TYPE_RW, 264714, 4,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_pcs_debounce_ctrl_fields + }, + { MAC_PCS_DRP_CTRL, 43, 32, NTHW_FPGA_REG_TYPE_MIXED, 0, 6,
mac_pcs_drp_ctrl_fields},
+ {MAC_PCS_FEC_CTRL, 2, 5,NTHW_FPGA_REG_TYPE_RW, 0, 1,mac_pcs_fec_ctrl_fields},
+ {MAC_PCS_FEC_CW_CNT, 9, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_pcs_fec_cw_cnt_fields},(quoted diff) +2
-0+ { + MAC_PCS_FEC_ERR_CNT_0, 11, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_fec_err_cnt_0_fields + }, + { + MAC_PCS_FEC_ERR_CNT_1, 12, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_fec_err_cnt_1_fields + }, + { + MAC_PCS_FEC_ERR_CNT_2, 13, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_fec_err_cnt_2_fields + }, + { + MAC_PCS_FEC_ERR_CNT_3, 14, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_fec_err_cnt_3_fields + }, + { + MAC_PCS_FEC_LANE_DLY_0, 5, 14,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_fec_lane_dly_0_fields + }, + { + MAC_PCS_FEC_LANE_DLY_1, 6, 14,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_fec_lane_dly_1_fields + }, + { + MAC_PCS_FEC_LANE_DLY_2, 7, 14,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_fec_lane_dly_2_fields + }, + { + MAC_PCS_FEC_LANE_DLY_3, 8, 14,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_pcs_fec_lane_dly_3_fields + }, + { MAC_PCS_FEC_LANE_MAP, 4, 8, NTHW_FPGA_REG_TYPE_RO, 0, 1,
mac_pcs_fec_lane_map_fields},
+ {MAC_PCS_FEC_STAT, 3, 11,NTHW_FPGA_REG_TYPE_RO, 0, 11,mac_pcs_fec_stat_fields},
+ {MAC_PCS_FEC_UCW_CNT, 10, 32,NTHW_FPGA_REG_TYPE_RO, 0,
1,mac_pcs_fec_ucw_cnt_fields},
+ {MAC_PCS_GTY_CTL_RX, 38, 28,NTHW_FPGA_REG_TYPE_RW, 0, 20,mac_pcs_gty_ctl_rx_fields},
+ {MAC_PCS_GTY_CTL_TX, 39, 8,NTHW_FPGA_REG_TYPE_RW, 0, 8,mac_pcs_gty_ctl_tx_fields},(quoted diff) +2
-0+ { + MAC_PCS_GTY_DIFF_CTL, 35, 20,
NTHW_FPGA_REG_TYPE_RW, 811800, 4,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_pcs_gty_diff_ctl_fields + }, + { MAC_PCS_GTY_LOOP, 20, 12, NTHW_FPGA_REG_TYPE_RW, 0, 4,
mac_pcs_gty_loop_fields},(quoted diff) +2
-0+ { + MAC_PCS_GTY_POST_CURSOR, 36, 20,
NTHW_FPGA_REG_TYPE_RW, 676500, 4,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_pcs_gty_post_cursor_fields + }, + { MAC_PCS_GTY_PRBS_SEL, 40, 32, NTHW_FPGA_REG_TYPE_RW, 0,8,
mac_pcs_gty_prbs_sel_fields},(quoted diff) +2
-0+ { + MAC_PCS_GTY_PRE_CURSOR, 37, 20,
NTHW_FPGA_REG_TYPE_RW, 0, 4,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_gty_pre_cursor_fields + }, + { + MAC_PCS_GTY_RX_BUF_STAT, 34, 24,
NTHW_FPGA_REG_TYPE_RO, 0, 8,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_gty_rx_buf_stat_fields + }, + { + MAC_PCS_GTY_SCAN_CTL, 41, 16,
NTHW_FPGA_REG_TYPE_RW, 0, 16,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_gty_scan_ctl_fields + }, + { + MAC_PCS_GTY_SCAN_STAT, 42, 8,
NTHW_FPGA_REG_TYPE_RO, 0, 8,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_pcs_gty_scan_stat_fields + }, + { MAC_PCS_GTY_STAT, 33, 16, NTHW_FPGA_REG_TYPE_RO, 0, 12,
mac_pcs_gty_stat_fields},
+ {MAC_PCS_LINK_SUMMARY, 0, 19,NTHW_FPGA_REG_TYPE_RO, 0,
11,mac_pcs_link_summary_fields},(quoted diff) +2
-0+ { + MAC_PCS_MAC_PCS_CONFIG, 19, 12,
NTHW_FPGA_REG_TYPE_RW, 272, 12,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_pcs_mac_pcs_config_fields + }, + { + MAC_PCS_MAX_PKT_LEN, 17, 14,
NTHW_FPGA_REG_TYPE_RW, 10000, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_pcs_max_pkt_len_fields + }, + { MAC_PCS_PHYMAC_MISC, 16, 8, NTHW_FPGA_REG_TYPE_MIXED,9, 5,
mac_pcs_phymac_misc_fields},
+ {MAC_PCS_PHY_STAT, 15, 3,NTHW_FPGA_REG_TYPE_RO, 0, 3,mac_pcs_phy_stat_fields},
+ {MAC_PCS_STAT_PCS_RX, 21, 10,NTHW_FPGA_REG_TYPE_RO, 0, 10,mac_pcs_stat_pcs_rx_fields},(quoted diff) +2
-0+ { + MAC_PCS_STAT_PCS_RX_LATCH, 22, 10,
NTHW_FPGA_REG_TYPE_RO, 0, 10,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_pcs_stat_pcs_rx_latch_fields + }, + { MAC_PCS_STAT_PCS_TX, 23, 10, NTHW_FPGA_REG_TYPE_RO, 0, 10,
mac_pcs_stat_pcs_tx_fields},
+ {MAC_PCS_SYNCED, 24, 20,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_pcs_synced_fields},
+ {MAC_PCS_SYNCED_ERR, 25, 20,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_pcs_synced_err_fields},
+ {MAC_PCS_TEST_ERR, 32, 16,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_pcs_test_err_fields},(quoted diff) +2
-0+ { + MAC_PCS_TIMESTAMP_COMP, 18, 32,
NTHW_FPGA_REG_TYPE_RW, 94373291, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_pcs_timestamp_comp_fields + }, + { MAC_PCS_VL_DEMUXED, 29, 20, NTHW_FPGA_REG_TYPE_RO, 0, 1,
mac_pcs_vl_demuxed_fields},(quoted diff) +2
-0+ { + MAC_PCS_VL_DEMUXED_CHG, 30, 20,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +42
-0+mac_pcs_vl_demuxed_chg_fields + }, +}; + +static nthw_fpga_field_init_s mac_rx_bad_fcs_fields[] = { + {MAC_RX_BAD_FCS_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_rx_fragment_fields[] = { + {MAC_RX_FRAGMENT_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_rx_packet_bad_fcs_fields[] = { + {MAC_RX_PACKET_BAD_FCS_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_rx_packet_small_fields[] = { + {MAC_RX_PACKET_SMALL_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_rx_total_bytes_fields[] = { + {MAC_RX_TOTAL_BYTES_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_rx_total_good_bytes_fields[] = { + {MAC_RX_TOTAL_GOOD_BYTES_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_rx_total_good_packets_fields[] = { + {MAC_RX_TOTAL_GOOD_PACKETS_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_rx_total_packets_fields[] = { + {MAC_RX_TOTAL_PACKETS_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_rx_undersize_fields[] = { + {MAC_RX_UNDERSIZE_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_register_init_s mac_rx_registers[] = { + {MAC_RX_BAD_FCS ,0 ,32 ,NTHW_FPGA_REG_TYPE_RO ,0 ,1 ,
mac_rx_bad_fcs_fields},
+ {MAC_RX_FRAGMENT, 6, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_rx_fragment_fields},(quoted diff) +2
-0+ { + MAC_RX_PACKET_BAD_FCS, 7, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_rx_packet_bad_fcs_fields + }, + { MAC_RX_PACKET_SMALL, 3, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1,
mac_rx_packet_small_fields},
+ {MAC_RX_TOTAL_BYTES, 4, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_rx_total_bytes_fields},(quoted diff) +2
-0+ { + MAC_RX_TOTAL_GOOD_BYTES, 5, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_rx_total_good_bytes_fields + }, + { + MAC_RX_TOTAL_GOOD_PACKETS, 2, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_rx_total_good_packets_fields + }, + { MAC_RX_TOTAL_PACKETS, 1, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1,
mac_rx_total_packets_fields},
+ {MAC_RX_UNDERSIZE, 8, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_rx_undersize_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +24
-0+}; + +static nthw_fpga_field_init_s mac_tx_packet_small_fields[] = { + {MAC_TX_PACKET_SMALL_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_tx_total_bytes_fields[] = { + {MAC_TX_TOTAL_BYTES_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_tx_total_good_bytes_fields[] = { + {MAC_TX_TOTAL_GOOD_BYTES_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_tx_total_good_packets_fields[] = { + {MAC_TX_TOTAL_GOOD_PACKETS_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s mac_tx_total_packets_fields[] = { + {MAC_TX_TOTAL_PACKETS_COUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_register_init_s mac_tx_registers[] = { + {MAC_TX_PACKET_SMALL ,2 ,32 ,NTHW_FPGA_REG_TYPE_RO ,0 ,1 ,
mac_tx_packet_small_fields},
+ {MAC_TX_TOTAL_BYTES, 3, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,mac_tx_total_bytes_fields},(quoted diff) +2
-0+ { + MAC_TX_TOTAL_GOOD_BYTES, 4, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+ mac_tx_total_good_bytes_fields + }, + { + MAC_TX_TOTAL_GOOD_PACKETS, 1, 32,
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ mac_tx_total_good_packets_fields + }, + { MAC_TX_TOTAL_PACKETS, 0, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1,
mac_tx_total_packets_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +31
-0+}; + +static nthw_fpga_field_init_s pci_rd_tg_tg_ctrl_fields[] = { + {PCI_RD_TG_TG_CTRL_TG_RD_RDY ,1 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_rd_tg_tg_rdaddr_fields[] = { + {PCI_RD_TG_TG_RDADDR_RAM_ADDR ,9 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_rd_tg_tg_rddata0_fields[] = { + {PCI_RD_TG_TG_RDDATA0_PHYS_ADDR_LOW ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_rd_tg_tg_rddata1_fields[] = { + {PCI_RD_TG_TG_RDDATA1_PHYS_ADDR_HIGH ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_rd_tg_tg_rddata2_fields[] = { + {PCI_RD_TG_TG_RDDATA2_REQ_HID ,6 ,22 ,0 }, + {PCI_RD_TG_TG_RDDATA2_REQ_SIZE ,22 ,0 ,0 }, + {PCI_RD_TG_TG_RDDATA2_WAIT ,1 ,30 ,0 }, + {PCI_RD_TG_TG_RDDATA2_WRAP ,1 ,31 ,0 }, +}; + +static nthw_fpga_field_init_s pci_rd_tg_tg_rd_run_fields[] = { + {PCI_RD_TG_TG_RD_RUN_RD_ITERATION ,16 ,0 ,0 }, +}; + +static nthw_fpga_register_init_s pci_rd_tg_registers[] = { + {PCI_RD_TG_TG_CTRL ,5 ,1 ,NTHW_FPGA_REG_TYPE_RO ,0 ,1 ,
pci_rd_tg_tg_ctrl_fields},
+ {PCI_RD_TG_TG_RDADDR, 3, 9,NTHW_FPGA_REG_TYPE_WO, 0, 1,pci_rd_tg_tg_rdaddr_fields},
+ {PCI_RD_TG_TG_RDDATA0, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,pci_rd_tg_tg_rddata0_fields},
+ {PCI_RD_TG_TG_RDDATA1, 1, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,pci_rd_tg_tg_rddata1_fields},
+ {PCI_RD_TG_TG_RDDATA2, 2, 32,NTHW_FPGA_REG_TYPE_WO, 0, 4,pci_rd_tg_tg_rddata2_fields},
+ {PCI_RD_TG_TG_RD_RUN, 4, 16,NTHW_FPGA_REG_TYPE_WO, 0, 1,pci_rd_tg_tg_rd_run_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +24
-0+}; + +static nthw_fpga_field_init_s pci_ta_control_fields[] = { + {PCI_TA_CONTROL_ENABLE ,1 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_ta_length_error_fields[] = { + {PCI_TA_LENGTH_ERROR_AMOUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s pci_ta_packet_bad_fields[] = { + {PCI_TA_PACKET_BAD_AMOUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s pci_ta_packet_good_fields[] = { + {PCI_TA_PACKET_GOOD_AMOUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s pci_ta_payload_error_fields[] = { + {PCI_TA_PAYLOAD_ERROR_AMOUNT ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_register_init_s pci_ta_registers[] = { + {PCI_TA_CONTROL ,0 ,1 ,NTHW_FPGA_REG_TYPE_WO ,0 ,1 ,
pci_ta_control_fields},
+ {PCI_TA_LENGTH_ERROR, 3, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,pci_ta_length_error_fields},
+ {PCI_TA_PACKET_BAD, 2, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,pci_ta_packet_bad_fields},
+ {PCI_TA_PACKET_GOOD, 1, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,pci_ta_packet_good_fields},
+ {PCI_TA_PAYLOAD_ERROR, 4, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,pci_ta_payload_error_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +24
-0+}; + +static nthw_fpga_field_init_s pci_wr_tg_tg_ctrl_fields[] = { + {PCI_WR_TG_TG_CTRL_TG_WR_RDY ,1 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_wr_tg_tg_seq_fields[] = { + {PCI_WR_TG_TG_SEQ_SEQUENCE ,16 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_wr_tg_tg_wraddr_fields[] = { + {PCI_WR_TG_TG_WRADDR_RAM_ADDR ,9 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_wr_tg_tg_wrdata0_fields[] = { + {PCI_WR_TG_TG_WRDATA0_PHYS_ADDR_LOW ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_wr_tg_tg_wrdata1_fields[] = { + {PCI_WR_TG_TG_WRDATA1_PHYS_ADDR_HIGH ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pci_wr_tg_tg_wrdata2_fields[] = { + {PCI_WR_TG_TG_WRDATA2_INC_MODE ,1 ,29 ,0 }, {
PCI_WR_TG_TG_WRDATA2_REQ_HID, 6, 22, 0 },
+ {PCI_WR_TG_TG_WRDATA2_REQ_SIZE, 22, 0, 0 }, {PCI_WR_TG_TG_WRDATA2_WAIT, 1, 30, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+ { PCI_WR_TG_TG_WRDATA2_WRAP, 1, 31, 0 }, +}; + +static nthw_fpga_field_init_s pci_wr_tg_tg_wr_run_fields[] = { + { PCI_WR_TG_TG_WR_RUN_WR_ITERATION, 16, 0, 0 }, +}; + +static nthw_fpga_register_init_s pci_wr_tg_registers[] = { + { PCI_WR_TG_TG_CTRL, 5, 1, NTHW_FPGA_REG_TYPE_RO, 0, 1,
pci_wr_tg_tg_ctrl_fields},
+ {PCI_WR_TG_TG_SEQ, 6, 16,NTHW_FPGA_REG_TYPE_RW, 0, 1,pci_wr_tg_tg_seq_fields},
+ {PCI_WR_TG_TG_WRADDR, 3, 9,NTHW_FPGA_REG_TYPE_WO, 0, 1,pci_wr_tg_tg_wraddr_fields},
+ {PCI_WR_TG_TG_WRDATA0, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0,
1,pci_wr_tg_tg_wrdata0_fields},
+ {PCI_WR_TG_TG_WRDATA1, 1, 32,NTHW_FPGA_REG_TYPE_WO, 0,
1,pci_wr_tg_tg_wrdata1_fields},
+ {PCI_WR_TG_TG_WRDATA2, 2, 32,NTHW_FPGA_REG_TYPE_WO, 0,
5,pci_wr_tg_tg_wrdata2_fields},
+ {PCI_WR_TG_TG_WR_RUN, 4, 16,NTHW_FPGA_REG_TYPE_WO, 0, 1,pci_wr_tg_tg_wr_run_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +35
-0+}; + +static nthw_fpga_field_init_s pdb_config_fields[] = { + {PDB_CONFIG_PORT_OFS ,6 ,3 ,0 }, + {PDB_CONFIG_TS_FORMAT ,3 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pdb_rcp_ctrl_fields[] = { + {PDB_RCP_CTRL_ADR ,4 ,0 ,0x0000 }, + {PDB_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s pdb_rcp_data_fields[] = { + {PDB_RCP_DATA_ALIGN ,1 ,17 ,0x0000 }, + {PDB_RCP_DATA_CRC_OVERWRITE ,1 ,16 ,0x0000 }, + {PDB_RCP_DATA_DESCRIPTOR ,4 ,0 ,0x0000 }, + {PDB_RCP_DATA_DESC_LEN ,5 ,4 ,0 }, + {PDB_RCP_DATA_DUPLICATE_BIT ,5 ,61 ,0x0000 }, + {PDB_RCP_DATA_DUPLICATE_EN ,1 ,60 ,0x0000 }, + {PDB_RCP_DATA_IP_PROT_TNL ,1 ,57 ,0x0000 }, + {PDB_RCP_DATA_OFS0_DYN ,5 ,18 ,0x0000 }, + {PDB_RCP_DATA_OFS0_REL ,8 ,23 ,0x0000 }, + {PDB_RCP_DATA_OFS1_DYN ,5 ,31 ,0x0000 }, + {PDB_RCP_DATA_OFS1_REL ,8 ,36 ,0x0000 }, + {PDB_RCP_DATA_OFS2_DYN ,5 ,44 ,0x0000 }, + {PDB_RCP_DATA_OFS2_REL ,8 ,49 ,0x0000 }, + {PDB_RCP_DATA_PCAP_KEEP_FCS ,1 ,66 ,0x0000 }, + {PDB_RCP_DATA_PPC_HSH ,2 ,58 ,0x0000 }, + {PDB_RCP_DATA_TX_IGNORE ,1 ,14 ,0x0000 }, + {PDB_RCP_DATA_TX_NOW ,1 ,15 ,0x0000 }, + {PDB_RCP_DATA_TX_PORT ,5 ,9 ,0x0000 }, +}; + +static nthw_fpga_register_init_s pdb_registers[] = { + {PDB_CONFIG ,2 ,10 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
pdb_config_fields},
+ {PDB_RCP_CTRL, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,pdb_rcp_ctrl_fields},
+ {PDB_RCP_DATA, 1, 67,NTHW_FPGA_REG_TYPE_WO, 0, 18,pdb_rcp_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_field_init_s pdi_cr_fields[] = { + {PDI_CR_EN ,1 ,0 ,0 }, {PDI_CR_PARITY ,1 ,4 ,0 }, {PDI_CR_RST ,1 ,1 ,0 },
+ {PDI_CR_RXRST, 1, 2, 0 }, {PDI_CR_STOP, 1, 5, 0 }, {PDI_CR_TXRST, 1,
3, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +51
-0+}; + +static nthw_fpga_field_init_s pdi_drr_fields[] = { + {PDI_DRR_DRR ,8 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pdi_dtr_fields[] = { + {PDI_DTR_DTR ,8 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s pdi_pre_fields[] = { + {PDI_PRE_PRE ,7 ,0 ,3 }, +}; + +static nthw_fpga_field_init_s pdi_sr_fields[] = { + {PDI_SR_DISABLE_BUSY ,1 ,2 ,0 }, {PDI_SR_DONE ,1 ,0 ,0 }, + {PDI_SR_ENABLE_BUSY ,1 ,1 ,0 }, {PDI_SR_FRAME_ERR ,1 ,5 ,0 }, + {PDI_SR_OVERRUN_ERR ,1 ,7 ,0 }, {PDI_SR_PARITY_ERR ,1 ,6 ,0 }, + {PDI_SR_RXLVL ,7 ,8 ,0 }, {PDI_SR_RX_BUSY ,1 ,4 ,0 }, + {PDI_SR_TXLVL ,7 ,15 ,0 }, {PDI_SR_TX_BUSY ,1 ,3 ,0 }, +}; + +static nthw_fpga_field_init_s pdi_srr_fields[] = { + {PDI_SRR_RST ,4 ,0 ,0 }, +}; + +static nthw_fpga_register_init_s pdi_registers[] = { + {PDI_CR ,1 ,6 ,NTHW_FPGA_REG_TYPE_WO ,0 ,6 , pdi_cr_fields }, + {PDI_DRR ,4 ,8 ,NTHW_FPGA_REG_TYPE_RO ,0 ,1 , pdi_drr_fields }, + {PDI_DTR ,3 ,8 ,NTHW_FPGA_REG_TYPE_WO ,0 ,1 , pdi_dtr_fields }, + {PDI_PRE ,5 ,7 ,NTHW_FPGA_REG_TYPE_WO ,3 ,1 , pdi_pre_fields }, + {PDI_SR ,2 ,22 ,NTHW_FPGA_REG_TYPE_RO ,0 ,10 , pdi_sr_fields }, + {PDI_SRR ,0 ,4 ,NTHW_FPGA_REG_TYPE_WO ,0 ,1 , pdi_srr_fields }, +}; + +static nthw_fpga_field_init_s qsl_qen_ctrl_fields[] = { + {QSL_QEN_CTRL_ADR ,5 ,0 ,0x0000 }, + {QSL_QEN_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s qsl_qen_data_fields[] = { + {QSL_QEN_DATA_EN ,4 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s qsl_qst_ctrl_fields[] = { + {QSL_QST_CTRL_ADR ,12 ,0 ,0x0000 }, + {QSL_QST_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s qsl_qst_data_fields[] = { + {QSL_QST_DATA_LRE ,1 ,9 ,0x0000 }, {QSL_QST_DATA_QEN ,1 ,7 ,
0x0000},
+ {QSL_QST_DATA_QUEUE, 7, 0,0x0000}, {QSL_QST_DATA_TCI, 16,
10,0x0000},
+ {QSL_QST_DATA_TX_PORT, 1, 8,0x0000}, {QSL_QST_DATA_VEN, 1,
26,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+}; + +static nthw_fpga_field_init_s qsl_rcp_ctrl_fields[] = { + {QSL_RCP_CTRL_ADR ,5 ,0 ,0x0000 }, + {QSL_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s qsl_rcp_data_fields[] = { + {QSL_RCP_DATA_DISCARD ,1 ,0 ,0x0000 }, {QSL_RCP_DATA_DROP ,2 ,1,
0x0000},
+ {QSL_RCP_DATA_LR, 2, 51,0x0000}, {QSL_RCP_DATA_TBL_HI, 12,
15,0x0000},
+ {QSL_RCP_DATA_TBL_IDX, 12, 27,0x0000}, {QSL_RCP_DATA_TBL_LO, 12, 3,0x0000},
+ {QSL_RCP_DATA_TBL_MSK, 12, 39,0x0000}, {QSL_RCP_DATA_TSA,
1, 53,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +15
-0+ { QSL_RCP_DATA_VLI, 2, 54, 0x0000 }, +}; + +static nthw_fpga_field_init_s qsl_unmq_ctrl_fields[] = { + { QSL_UNMQ_CTRL_ADR, 1, 0, 0x0000 }, + { QSL_UNMQ_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s qsl_unmq_data_fields[] = { + { QSL_UNMQ_DATA_DEST_QUEUE, 7, 0, 0x0000 }, + { QSL_UNMQ_DATA_EN, 1, 7, 0x0000 }, +}; + +static nthw_fpga_register_init_s qsl_registers[] = { + { QSL_QEN_CTRL, 4, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
qsl_qen_ctrl_fields},
+ {QSL_QEN_DATA, 5, 4,NTHW_FPGA_REG_TYPE_WO, 0, 1,qsl_qen_data_fields},
+ {QSL_QST_CTRL, 2, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,qsl_qst_ctrl_fields},
+ {QSL_QST_DATA, 3, 27,NTHW_FPGA_REG_TYPE_WO, 0, 6,qsl_qst_data_fields},
+ {QSL_RCP_CTRL, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,qsl_rcp_ctrl_fields},
+ {QSL_RCP_DATA, 1, 56,NTHW_FPGA_REG_TYPE_WO, 0, 9,qsl_rcp_data_fields},
+ {QSL_UNMQ_CTRL, 6, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,qsl_unmq_ctrl_fields},
+ {QSL_UNMQ_DATA, 7, 8,NTHW_FPGA_REG_TYPE_WO, 0, 2,qsl_unmq_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +24
-0+}; + +static nthw_fpga_field_init_s qspi_cr_fields[] = { + {QSPI_CR_CPHA ,1 ,4 ,0 }, {QSPI_CR_CPOL ,1 ,3 ,0 }, + {QSPI_CR_LOOP ,1 ,0 ,0 }, {QSPI_CR_LSBF ,1 ,9 ,0 }, + {QSPI_CR_MSSAE ,1 ,7 ,1 }, {QSPI_CR_MST ,1 ,2 ,0 }, + {QSPI_CR_MTI ,1 ,8 ,1 }, {QSPI_CR_RXFIFO_RST ,1 ,6 ,0 }, + {QSPI_CR_SPE ,1 ,1 ,0 }, {QSPI_CR_TXFIFO_RST ,1 ,5 ,0 }, +}; + +static nthw_fpga_field_init_s qspi_dgie_fields[] = { + {QSPI_DGIE_GIE ,1 ,31 ,0 }, +}; + +static nthw_fpga_field_init_s qspi_drr_fields[] = { + {QSPI_DRR_DATA_VAL ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s qspi_dtr_fields[] = { + {QSPI_DTR_DATA_VAL ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s qspi_ier_fields[] = { + {QSPI_IER_CMD_ERR ,1 ,13 ,0 }, {QSPI_IER_CPOL_CPHA_ERR ,1 ,9 ,0 },
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +10
-0+ { QSPI_IER_DRR_FULL, 1, 4, 0 }, { QSPI_IER_DRR_NEMPTY, 1, 8, 0 }, + { QSPI_IER_DRR_OR, 1, 5, 0 }, { QSPI_IER_DTR_EMPTY, 1, 2, 0 }, + { QSPI_IER_DTR_UR, 1, 3, 0 }, { QSPI_IER_LOOP_ERR, 1, 12, 0 }, + { QSPI_IER_MODF, 1, 0, 0 }, { QSPI_IER_MSB_ERR, 1, 11, 0 }, + { QSPI_IER_SLV_ERR, 1, 10, 0 }, { QSPI_IER_SLV_MODF, 1, 1, 0 }, + { QSPI_IER_SLV_MS, 1, 7, 0 }, { QSPI_IER_TXFIFO_HEMPTY, 1, 6, 0 }, +}; + +static nthw_fpga_field_init_s qspi_isr_fields[] = { + { QSPI_ISR_CMD_ERR, 1, 13, 0 }, { QSPI_ISR_CPOL_CPHA_ERR, 1, 9, 0},
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +35
-0+ { QSPI_ISR_DRR_FULL, 1, 4, 0 }, { QSPI_ISR_DRR_NEMPTY, 1, 8, 0 }, + { QSPI_ISR_DRR_OR, 1, 5, 0 }, { QSPI_ISR_DTR_EMPTY, 1, 2, 0 }, + { QSPI_ISR_DTR_UR, 1, 3, 0 }, { QSPI_ISR_LOOP_ERR, 1, 12, 0 }, + { QSPI_ISR_MODF, 1, 0, 0 }, { QSPI_ISR_MSB_ERR, 1, 11, 0 }, + { QSPI_ISR_SLV_ERR, 1, 10, 0 }, { QSPI_ISR_SLV_MODF, 1, 1, 0 }, + { QSPI_ISR_SLV_MS, 1, 7, 0 }, { QSPI_ISR_TXFIFO_HEMPTY, 1, 6, 0 }, +}; + +static nthw_fpga_field_init_s qspi_rx_fifo_ocy_fields[] = { + { QSPI_RX_FIFO_OCY_OCY_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s qspi_sr_fields[] = { + { QSPI_SR_CMD_ERR, 1, 10, 0 }, { QSPI_SR_CPOL_CPHA_ERR, 1, 6, 0 }, + { QSPI_SR_LOOP_ERR, 1, 9, 0 }, { QSPI_SR_MODF, 1, 4, 0 }, + { QSPI_SR_MSB_ERR, 1, 8, 0 }, { QSPI_SR_RXEMPTY, 1, 0, 1 }, + { QSPI_SR_RXFULL, 1, 1, 0 }, { QSPI_SR_SLVMS, 1, 5, 1 }, + { QSPI_SR_SLV_ERR, 1, 7, 0 }, { QSPI_SR_TXEMPTY, 1, 2, 1 }, + { QSPI_SR_TXFULL, 1, 3, 0 }, +}; + +static nthw_fpga_field_init_s qspi_srr_fields[] = { + { QSPI_SRR_RST, 4, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s qspi_ssr_fields[] = { + { QSPI_SSR_SEL_SLV, 32, 0, 4294967295 }, +}; + +static nthw_fpga_field_init_s qspi_tx_fifo_ocy_fields[] = { + { QSPI_TX_FIFO_OCY_OCY_VAL, 32, 0, 0 }, +}; + +static nthw_fpga_register_init_s qspi_registers[] = { + { QSPI_CR, 24, 10, NTHW_FPGA_REG_TYPE_RW, 384, 10,
qspi_cr_fields},
+ {QSPI_DGIE, 7, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,qspi_dgie_fields},
+ {QSPI_DRR, 27, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,qspi_drr_fields
},
+ {QSPI_DTR, 26, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,qspi_dtr_fields},
+ {QSPI_IER, 10, 14,NTHW_FPGA_REG_TYPE_RW, 0, 14,qspi_ier_fields
},
+ {QSPI_ISR, 8, 14,NTHW_FPGA_REG_TYPE_RW, 0, 14,qspi_isr_fields
},
+ {QSPI_RX_FIFO_OCY, 30, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,qspi_rx_fifo_ocy_fields},
+ {QSPI_SR, 25, 11,NTHW_FPGA_REG_TYPE_RO, 37, 11,qspi_sr_fields
},
+ {QSPI_SRR, 16, 4,NTHW_FPGA_REG_TYPE_WO, 0, 1,qspi_srr_fields
},
+ {QSPI_SSR, 28, 32,NTHW_FPGA_REG_TYPE_RW, 4294967295, 1,qspi_ssr_fields},
+ {QSPI_TX_FIFO_OCY, 29, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,qspi_tx_fifo_ocy_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +12
-0+}; + +static nthw_fpga_field_init_s rac_dbg_ctrl_fields[] = { + {RAC_DBG_CTRL_C ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rac_dbg_data_fields[] = { + {RAC_DBG_DATA_D ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rac_rab_buf_free_fields[] = { + {RAC_RAB_BUF_FREE_IB_FREE ,9 ,0 ,511 }, {
RAC_RAB_BUF_FREE_IB_OVF, 1, 12, 0 },
+ {RAC_RAB_BUF_FREE_OB_FREE, 9, 16, 511 }, {RAC_RAB_BUF_FREE_OB_OVF, 1, 28, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +51
-0+ { RAC_RAB_BUF_FREE_TIMEOUT, 1, 31, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_buf_used_fields[] = { + { RAC_RAB_BUF_USED_FLUSH, 1, 31, 0 }, + { RAC_RAB_BUF_USED_IB_USED, 9, 0, 0 }, + { RAC_RAB_BUF_USED_OB_USED, 9, 16, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_dma_ib_hi_fields[] = { + { RAC_RAB_DMA_IB_HI_PHYADDR, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_dma_ib_lo_fields[] = { + { RAC_RAB_DMA_IB_LO_PHYADDR, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_dma_ib_rd_fields[] = { + { RAC_RAB_DMA_IB_RD_PTR, 16, 0, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_dma_ib_wr_fields[] = { + { RAC_RAB_DMA_IB_WR_PTR, 16, 0, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_dma_ob_hi_fields[] = { + { RAC_RAB_DMA_OB_HI_PHYADDR, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_dma_ob_lo_fields[] = { + { RAC_RAB_DMA_OB_LO_PHYADDR, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_dma_ob_wr_fields[] = { + { RAC_RAB_DMA_OB_WR_PTR, 16, 0, 0 }, +}; + +static nthw_fpga_field_init_s rac_rab_ib_data_fields[] = { + { RAC_RAB_IB_DATA_D, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s rac_rab_init_fields[] = { + { RAC_RAB_INIT_RAB, 3, 0, 7 }, +}; + +static nthw_fpga_field_init_s rac_rab_ob_data_fields[] = { + { RAC_RAB_OB_DATA_D, 32, 0, 0x0000 }, +}; + +static nthw_fpga_register_init_s rac_registers[] = { + { RAC_DBG_CTRL, 4200, 32, NTHW_FPGA_REG_TYPE_RW, 0, 1,
rac_dbg_ctrl_fields},
+ {RAC_DBG_DATA, 4208, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,rac_dbg_data_fields},(quoted diff) +2
-0+ { + RAC_RAB_BUF_FREE, 4176, 32,
NTHW_FPGA_REG_TYPE_MIXED, 33489407, 5,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0+ rac_rab_buf_free_fields + }, + { RAC_RAB_BUF_USED, 4184, 32, NTHW_FPGA_REG_TYPE_MIXED, 0,3,
rac_rab_buf_used_fields},
+ {RAC_RAB_DMA_IB_HI, 4360, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,rac_rab_dma_ib_hi_fields},
+ {RAC_RAB_DMA_IB_LO, 4352, 32,NTHW_FPGA_REG_TYPE_WO, 0,
1,rac_rab_dma_ib_lo_fields},
+ {RAC_RAB_DMA_IB_RD, 4424, 16,NTHW_FPGA_REG_TYPE_RO, 0, 1,rac_rab_dma_ib_rd_fields},
+ {RAC_RAB_DMA_IB_WR, 4416, 16,NTHW_FPGA_REG_TYPE_WO, 0,
1,rac_rab_dma_ib_wr_fields},
+ {RAC_RAB_DMA_OB_HI, 4376, 32,NTHW_FPGA_REG_TYPE_WO, 0,
1,rac_rab_dma_ob_hi_fields},
+ {RAC_RAB_DMA_OB_LO, 4368, 32,NTHW_FPGA_REG_TYPE_WO, 0,
1,rac_rab_dma_ob_lo_fields},
+ {RAC_RAB_DMA_OB_WR, 4480, 16,NTHW_FPGA_REG_TYPE_RO, 0,
1,rac_rab_dma_ob_wr_fields},
+ {RAC_RAB_IB_DATA, 4160, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,rac_rab_ib_data_fields},
+ {RAC_RAB_INIT, 4192, 3,NTHW_FPGA_REG_TYPE_RW, 7, 1,rac_rab_init_fields},
+ {RAC_RAB_OB_DATA, 4168, 32,NTHW_FPGA_REG_TYPE_RC1, 0, 1,rac_rab_ob_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +30
-0+}; + +static nthw_fpga_field_init_s rfd_ctrl_fields[] = { + {RFD_CTRL_CFP ,1 ,2 ,1 }, + {RFD_CTRL_ISL ,1 ,0 ,1 }, + {RFD_CTRL_PWMCW ,1 ,1 ,1 }, +}; + +static nthw_fpga_field_init_s rfd_max_frame_size_fields[] = { + {RFD_MAX_FRAME_SIZE_MAX ,14 ,0 ,9018 }, +}; + +static nthw_fpga_field_init_s rfd_tnl_vlan_fields[] = { + {RFD_TNL_VLAN_TPID0 ,16 ,0 ,33024 }, + {RFD_TNL_VLAN_TPID1 ,16 ,16 ,33024 }, +}; + +static nthw_fpga_field_init_s rfd_vlan_fields[] = { + {RFD_VLAN_TPID0 ,16 ,0 ,33024 }, + {RFD_VLAN_TPID1 ,16 ,16 ,33024 }, +}; + +static nthw_fpga_field_init_s rfd_vxlan_fields[] = { + {RFD_VXLAN_DP0 ,16 ,0 ,4789 }, + {RFD_VXLAN_DP1 ,16 ,16 ,4789 }, +}; + +static nthw_fpga_register_init_s rfd_registers[] = { + {RFD_CTRL ,0 ,3 ,NTHW_FPGA_REG_TYPE_WO ,7 ,3 , rfd_ctrl_fields }, + {RFD_MAX_FRAME_SIZE ,1 ,14 ,NTHW_FPGA_REG_TYPE_WO ,9018 ,1,
rfd_max_frame_size_fields},
+ {RFD_TNL_VLAN, 3, 32,NTHW_FPGA_REG_TYPE_WO, 2164293888,
2,rfd_tnl_vlan_fields},
+ {RFD_VLAN, 2, 32,NTHW_FPGA_REG_TYPE_WO, 2164293888, 2,rfd_vlan_fields},
+ {RFD_VXLAN, 4, 32,NTHW_FPGA_REG_TYPE_WO, 313856693, 2,rfd_vxlan_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_field_init_s rmc_ctrl_fields[] = { + {RMC_CTRL_BLOCK_KEEPA ,1 ,1 ,1 }, {
RMC_CTRL_BLOCK_MAC_PORT, 2, 8, 3 },
+ {RMC_CTRL_BLOCK_RPP_SLICE, 8, 10, 0 }, {RMC_CTRL_BLOCK_STATT, 1, 0, 1 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +18
-0+ { RMC_CTRL_LAG_PHY_ODD_EVEN, 1, 24, 0 }, +}; + +static nthw_fpga_field_init_s rmc_dbg_fields[] = { + { RMC_DBG_MERGE, 31, 0, 0 }, +}; + +static nthw_fpga_field_init_s rmc_mac_if_fields[] = { + { RMC_MAC_IF_ERR, 31, 0, 0 }, +}; + +static nthw_fpga_field_init_s rmc_status_fields[] = { + { RMC_STATUS_DESCR_FIFO_OF, 1, 16, 0 }, + { RMC_STATUS_SF_RAM_OF, 1, 0, 0 }, +}; + +static nthw_fpga_register_init_s rmc_registers[] = { + { RMC_CTRL, 0, 25, NTHW_FPGA_REG_TYPE_RW, 771, 5,
rmc_ctrl_fields},
+ {RMC_DBG, 2, 31,NTHW_FPGA_REG_TYPE_RO, 0, 1,rmc_dbg_fields
},
+ {RMC_MAC_IF, 3, 31,NTHW_FPGA_REG_TYPE_RO, 0, 1,rmc_mac_if_fields},
+ {RMC_STATUS, 1, 17,NTHW_FPGA_REG_TYPE_RO, 0, 2,rmc_status_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +18
-0+}; + +static nthw_fpga_field_init_s rpl_ext_ctrl_fields[] = { + {RPL_EXT_CTRL_ADR ,10 ,0 ,0x0000 }, + {RPL_EXT_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rpl_ext_data_fields[] = { + {RPL_EXT_DATA_RPL_PTR ,12 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rpl_rcp_ctrl_fields[] = { + {RPL_RCP_CTRL_ADR ,4 ,0 ,0x0000 }, + {RPL_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rpl_rcp_data_fields[] = { + {RPL_RCP_DATA_DYN ,5 ,0 ,0x0000 }, {
RPL_RCP_DATA_ETH_TYPE_WR, 1, 36,0x0000},
+ {RPL_RCP_DATA_EXT_PRIO, 1, 35,0x0000}, {RPL_RCP_DATA_LEN, 8,
15,0x0000},
+ {RPL_RCP_DATA_OFS, 10, 5,0x0000}, {RPL_RCP_DATA_RPL_PTR,
12, 23,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +13
-0+}; + +static nthw_fpga_field_init_s rpl_rpl_ctrl_fields[] = { + {RPL_RPL_CTRL_ADR ,12 ,0 ,0x0000 }, + {RPL_RPL_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rpl_rpl_data_fields[] = { + {RPL_RPL_DATA_VALUE ,128 ,0 ,0x0000 }, +}; + +static nthw_fpga_register_init_s rpl_registers[] = { + {RPL_EXT_CTRL ,2 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
rpl_ext_ctrl_fields},
+ {RPL_EXT_DATA, 3, 12,NTHW_FPGA_REG_TYPE_WO, 0, 1,rpl_ext_data_fields},
+ {RPL_RCP_CTRL, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,rpl_rcp_ctrl_fields},
+ {RPL_RCP_DATA, 1, 37,NTHW_FPGA_REG_TYPE_WO, 0, 6,rpl_rcp_data_fields},
+ {RPL_RPL_CTRL, 4, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,rpl_rpl_ctrl_fields},
+ {RPL_RPL_DATA, 5, 128,NTHW_FPGA_REG_TYPE_WO, 0, 1,rpl_rpl_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +26
-0+}; + +static nthw_fpga_field_init_s rpp_lr_ifr_rcp_ctrl_fields[] = { + {RPP_LR_IFR_RCP_CTRL_ADR ,4 ,0 ,0x0000 }, + {RPP_LR_IFR_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rpp_lr_ifr_rcp_data_fields[] = { + {RPP_LR_IFR_RCP_DATA_IPV4_DF_DROP ,1 ,17 ,0x0000 }, + {RPP_LR_IFR_RCP_DATA_IPV4_EN ,1 ,0 ,0x0000 }, + {RPP_LR_IFR_RCP_DATA_IPV6_DROP ,1 ,16 ,0x0000 }, + {RPP_LR_IFR_RCP_DATA_IPV6_EN ,1 ,1 ,0x0000 }, + {RPP_LR_IFR_RCP_DATA_MTU ,14 ,2 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rpp_lr_rcp_ctrl_fields[] = { + {RPP_LR_RCP_CTRL_ADR ,4 ,0 ,0x0000 }, + {RPP_LR_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s rpp_lr_rcp_data_fields[] = { + {RPP_LR_RCP_DATA_EXP ,14 ,0 ,0x0000 }, +}; + +static nthw_fpga_register_init_s rpp_lr_registers[] = { + {RPP_LR_IFR_RCP_CTRL ,2 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,2 ,
rpp_lr_ifr_rcp_ctrl_fields},
+ {RPP_LR_IFR_RCP_DATA, 3, 18,NTHW_FPGA_REG_TYPE_WO, 0, 5,rpp_lr_ifr_rcp_data_fields},
+ {RPP_LR_RCP_CTRL, 0, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,rpp_lr_rcp_ctrl_fields},
+ {RPP_LR_RCP_DATA, 1, 14,NTHW_FPGA_REG_TYPE_WO, 0, 1,rpp_lr_rcp_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +15
-0+}; + +static nthw_fpga_field_init_s rst9563_ctrl_fields[] = { + {RST9563_CTRL_PTP_MMCM_CLKSEL ,1 ,2 ,1 }, + {RST9563_CTRL_TS_CLKSEL ,1 ,1 ,1 }, + {RST9563_CTRL_TS_CLKSEL_OVERRIDE ,1 ,0 ,1 }, +}; + +static nthw_fpga_field_init_s rst9563_power_fields[] = { + {RST9563_POWER_PU_NSEB ,1 ,1 ,0 }, + {RST9563_POWER_PU_PHY ,1 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s rst9563_rst_fields[] = { + {RST9563_RST_CORE_MMCM ,1 ,15 ,0 }, {RST9563_RST_DDR4 ,3 ,3 ,7 },
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { RST9563_RST_MAC_RX, 2, 9, 3 }, { RST9563_RST_PERIPH, 1, 13, 0 }, + { RST9563_RST_PHY, 2, 7, 3 }, { RST9563_RST_PTP, 1, 11, 1 }, + { RST9563_RST_PTP_MMCM, 1, 16, 0 }, { RST9563_RST_RPP, 1, 2, 1 }, + { RST9563_RST_SDC, 1, 6, 1 }, { RST9563_RST_SYS, 1, 0, 1 }, + { RST9563_RST_SYS_MMCM, 1, 14, 0 }, { RST9563_RST_TMC, 1, 1, 1},
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +23
-0+ { RST9563_RST_TS, 1, 12, 1 }, { RST9563_RST_TS_MMCM, 1, 17, 0 }, +}; + +static nthw_fpga_field_init_s rst9563_stat_fields[] = { + { RST9563_STAT_CORE_MMCM_LOCKED, 1, 5, 0x0000 }, + { RST9563_STAT_DDR4_MMCM_LOCKED, 1, 2, 0x0000 }, + { RST9563_STAT_DDR4_PLL_LOCKED, 1, 3, 0x0000 }, + { RST9563_STAT_PTP_MMCM_LOCKED, 1, 0, 0x0000 }, + { RST9563_STAT_SYS_MMCM_LOCKED, 1, 4, 0x0000 }, + { RST9563_STAT_TS_MMCM_LOCKED, 1, 1, 0x0000 }, +}; + +static nthw_fpga_field_init_s rst9563_sticky_fields[] = { + { RST9563_STICKY_CORE_MMCM_UNLOCKED, 1, 5, 0x0000 }, + { RST9563_STICKY_DDR4_MMCM_UNLOCKED, 1, 2, 0x0000 }, + { RST9563_STICKY_DDR4_PLL_UNLOCKED, 1, 3, 0x0000 }, + { RST9563_STICKY_PTP_MMCM_UNLOCKED, 1, 0, 0x0000 }, + { RST9563_STICKY_SYS_MMCM_UNLOCKED, 1, 4, 0x0000 }, + { RST9563_STICKY_TS_MMCM_UNLOCKED, 1, 1, 0x0000 }, +}; + +static nthw_fpga_register_init_s rst9563_registers[] = { + { RST9563_CTRL, 1, 3, NTHW_FPGA_REG_TYPE_RW, 7, 3,
rst9563_ctrl_fields},
+ {RST9563_POWER, 4, 2,NTHW_FPGA_REG_TYPE_RW, 0, 2,rst9563_power_fields},
+ {RST9563_RST, 0, 18,NTHW_FPGA_REG_TYPE_RW, 8191, 14,rst9563_rst_fields},
+ {RST9563_STAT, 2, 6,NTHW_FPGA_REG_TYPE_RO, 0, 6,rst9563_stat_fields},
+ {RST9563_STICKY, 3, 6,NTHW_FPGA_REG_TYPE_RC1, 0, 6,rst9563_sticky_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+}; + +static nthw_fpga_field_init_s slc_rcp_ctrl_fields[] = { + {SLC_RCP_CTRL_ADR ,6 ,0 ,0x0000 }, + {SLC_RCP_CTRL_CNT ,16 ,16 ,0x0000 }, +}; + +static nthw_fpga_field_init_s slc_rcp_data_fields[] = { + {SLC_RCP_DATA_HEAD_DYN ,5 ,1 ,0x0000 }, {
SLC_RCP_DATA_HEAD_OFS, 8, 6,0x0000},
+ {SLC_RCP_DATA_HEAD_SLC_EN, 1, 0,0x0000}, {SLC_RCP_DATA_PCAP, 1, 35,0x0000},
+ {SLC_RCP_DATA_TAIL_DYN, 5, 15,0x0000}, {SLC_RCP_DATA_TAIL_OFS, 15, 20,0x0000},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { SLC_RCP_DATA_TAIL_SLC_EN, 1, 14, 0x0000 }, +}; + +static nthw_fpga_register_init_s slc_registers[] = { + { SLC_RCP_CTRL, 0, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2,
slc_rcp_ctrl_fields},
+ {SLC_RCP_DATA, 1, 36,NTHW_FPGA_REG_TYPE_WO, 0, 7,slc_rcp_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +27
-0+}; + +static nthw_fpga_field_init_s spim_cfg_fields[] = { + {SPIM_CFG_PRE ,3 ,0 ,5 }, +}; + +static nthw_fpga_field_init_s spim_cfg_clk_fields[] = { + {SPIM_CFG_CLK_MODE ,2 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s spim_cr_fields[] = { + {SPIM_CR_EN ,1 ,1 ,0 }, + {SPIM_CR_LOOP ,1 ,0 ,0 }, + {SPIM_CR_RXRST ,1 ,3 ,0 }, + {SPIM_CR_TXRST ,1 ,2 ,0 }, +}; + +static nthw_fpga_field_init_s spim_drr_fields[] = { + {SPIM_DRR_DRR ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s spim_dtr_fields[] = { + {SPIM_DTR_DTR ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s spim_sr_fields[] = { + {SPIM_SR_DONE ,1 ,0 ,0 }, {SPIM_SR_RXEMPTY ,1 ,2 ,1 }, {
SPIM_SR_RXFULL, 1, 4, 0 },
+ {SPIM_SR_RXLVL, 8, 16, 0 }, {SPIM_SR_TXEMPTY, 1, 1, 1 }, {SPIM_SR_TXFULL, 1, 3, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0+ { SPIM_SR_TXLVL, 8, 8, 0 }, +}; + +static nthw_fpga_field_init_s spim_srr_fields[] = { + { SPIM_SRR_RST, 4, 0, 0 }, +}; + +static nthw_fpga_register_init_s spim_registers[] = { + { SPIM_CFG, 5, 3, NTHW_FPGA_REG_TYPE_WO, 5, 1, spim_cfg_fields},
+ {SPIM_CFG_CLK, 6, 2,NTHW_FPGA_REG_TYPE_WO, 0, 1,spim_cfg_clk_fields},(quoted diff) +2
-0+ { SPIM_CR, 1, 4, NTHW_FPGA_REG_TYPE_WO, 0, 4, spim_cr_fields }, + { SPIM_DRR, 4, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1, spim_drr_fields},
+ {SPIM_DTR, 3, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,spim_dtr_fields
},(quoted diff) +2
-0+ { SPIM_SR, 2, 24, NTHW_FPGA_REG_TYPE_RO, 6, 7, spim_sr_fields }, + { SPIM_SRR, 0, 4, NTHW_FPGA_REG_TYPE_WO, 0, 1, spim_srr_fields},
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_field_init_s spis_cr_fields[] = { + {SPIS_CR_DEBUG ,1 ,4 ,0 }, {SPIS_CR_EN ,1 ,1 ,0 }, {SPIS_CR_LOOP ,1, 0, 0 },
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +37
-0+ { SPIS_CR_RXRST, 1, 3, 0 }, { SPIS_CR_TXRST, 1, 2, 0 }, +}; + +static nthw_fpga_field_init_s spis_drr_fields[] = { + { SPIS_DRR_DRR, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s spis_dtr_fields[] = { + { SPIS_DTR_DTR, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s spis_ram_ctrl_fields[] = { + { SPIS_RAM_CTRL_ADR, 6, 0, 0 }, + { SPIS_RAM_CTRL_CNT, 6, 6, 0 }, +}; + +static nthw_fpga_field_init_s spis_ram_data_fields[] = { + { SPIS_RAM_DATA_DATA, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s spis_sr_fields[] = { + { SPIS_SR_DONE, 1, 0, 0 }, { SPIS_SR_FRAME_ERR, 1, 24, 0 }, + { SPIS_SR_READ_ERR, 1, 25, 0 }, { SPIS_SR_RXEMPTY, 1, 2, 1 }, + { SPIS_SR_RXFULL, 1, 4, 0 }, { SPIS_SR_RXLVL, 8, 16, 0 }, + { SPIS_SR_TXEMPTY, 1, 1, 1 }, { SPIS_SR_TXFULL, 1, 3, 0 }, + { SPIS_SR_TXLVL, 8, 8, 0 }, { SPIS_SR_WRITE_ERR, 1, 26, 0 }, +}; + +static nthw_fpga_field_init_s spis_srr_fields[] = { + { SPIS_SRR_RST, 4, 0, 0 }, +}; + +static nthw_fpga_register_init_s spis_registers[] = { + { SPIS_CR, 1, 5, NTHW_FPGA_REG_TYPE_WO, 0, 5, spis_cr_fields }, + { SPIS_DRR, 4, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1, spis_drr_fields }, + { SPIS_DTR, 3, 32, NTHW_FPGA_REG_TYPE_WO, 0, 1, spis_dtr_fields }, + { SPIS_RAM_CTRL, 5, 12, NTHW_FPGA_REG_TYPE_RW, 0, 2,
spis_ram_ctrl_fields},
+ {SPIS_RAM_DATA, 6, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,spis_ram_data_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +77
-0+ { SPIS_SR, 2, 27, NTHW_FPGA_REG_TYPE_RO, 6, 10, spis_sr_fields }, + { SPIS_SRR, 0, 4, NTHW_FPGA_REG_TYPE_WO, 0, 1, spis_srr_fields }, +}; + +static nthw_fpga_field_init_s sta_byte_fields[] = { + { STA_BYTE_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_cfg_fields[] = { + { STA_CFG_CNT_CLEAR, 1, 1, 0 }, + { STA_CFG_DMA_ENA, 1, 0, 0 }, +}; + +static nthw_fpga_field_init_s sta_cv_err_fields[] = { + { STA_CV_ERR_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_fcs_err_fields[] = { + { STA_FCS_ERR_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_host_adr_lsb_fields[] = { + { STA_HOST_ADR_LSB_LSB, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s sta_host_adr_msb_fields[] = { + { STA_HOST_ADR_MSB_MSB, 32, 0, 0 }, +}; + +static nthw_fpga_field_init_s sta_load_bin_fields[] = { + { STA_LOAD_BIN_BIN, 32, 0, 8388607 }, +}; + +static nthw_fpga_field_init_s sta_load_bps_rx_0_fields[] = { + { STA_LOAD_BPS_RX_0_BPS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_load_bps_rx_1_fields[] = { + { STA_LOAD_BPS_RX_1_BPS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_load_bps_tx_0_fields[] = { + { STA_LOAD_BPS_TX_0_BPS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_load_bps_tx_1_fields[] = { + { STA_LOAD_BPS_TX_1_BPS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_load_pps_rx_0_fields[] = { + { STA_LOAD_PPS_RX_0_PPS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_load_pps_rx_1_fields[] = { + { STA_LOAD_PPS_RX_1_PPS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_load_pps_tx_0_fields[] = { + { STA_LOAD_PPS_TX_0_PPS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_load_pps_tx_1_fields[] = { + { STA_LOAD_PPS_TX_1_PPS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_pckt_fields[] = { + { STA_PCKT_CNT, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s sta_status_fields[] = { + { STA_STATUS_STAT_TOGGLE_MISSED, 1, 0, 0x0000 }, +}; + +static nthw_fpga_register_init_s sta_registers[] = { + { STA_BYTE, 4, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1, sta_byte_fields }, + { STA_CFG, 0, 2, NTHW_FPGA_REG_TYPE_RW, 0, 2, sta_cfg_fields }, + { STA_CV_ERR, 5, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1,
sta_cv_err_fields},
+ {STA_FCS_ERR, 6, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_fcs_err_fields},
+ {STA_HOST_ADR_LSB, 1, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,sta_host_adr_lsb_fields},
+ {STA_HOST_ADR_MSB, 2, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,sta_host_adr_msb_fields},
+ {STA_LOAD_BIN, 8, 32,NTHW_FPGA_REG_TYPE_WO, 8388607, 1,sta_load_bin_fields},
+ {STA_LOAD_BPS_RX_0, 11, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_load_bps_rx_0_fields},
+ {STA_LOAD_BPS_RX_1, 13, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_load_bps_rx_1_fields},
+ {STA_LOAD_BPS_TX_0, 15, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_load_bps_tx_0_fields},
+ {STA_LOAD_BPS_TX_1, 17, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_load_bps_tx_1_fields},
+ {STA_LOAD_PPS_RX_0, 10, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_load_pps_rx_0_fields},
+ {STA_LOAD_PPS_RX_1, 12, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_load_pps_rx_1_fields},
+ {STA_LOAD_PPS_TX_0, 14, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_load_pps_tx_0_fields},
+ {STA_LOAD_PPS_TX_1, 16, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,sta_load_pps_tx_1_fields},(quoted diff) +2
-0+ { STA_PCKT, 3, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1, sta_pckt_fields }, + { STA_STATUS, 7, 1, NTHW_FPGA_REG_TYPE_RC1, 0, 1,
sta_status_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +15
-0+}; + +static nthw_fpga_field_init_s tempmon_alarms_fields[] = { + {TEMPMON_ALARMS_OT ,1 ,1 ,0x0000 }, + {TEMPMON_ALARMS_OT_OVERWR ,1 ,2 ,0 }, + {TEMPMON_ALARMS_OT_OVERWRVAL ,1 ,3 ,0 }, + {TEMPMON_ALARMS_TEMP ,1 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s tempmon_stat_fields[] = { + {TEMPMON_STAT_TEMP ,12 ,0 ,0x0000 }, +}; + +static nthw_fpga_register_init_s tempmon_registers[] = { + {TEMPMON_ALARMS ,1 ,4 ,NTHW_FPGA_REG_TYPE_MIXED ,0 ,4 ,
tempmon_alarms_fields},
+ {TEMPMON_STAT, 0, 12,NTHW_FPGA_REG_TYPE_RO, 0, 1,tempmon_stat_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +13
-0+}; + +static nthw_fpga_field_init_s tint_ctrl_fields[] = { + {TINT_CTRL_INTERVAL ,32 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s tint_status_fields[] = { + {TINT_STATUS_DELAYED ,8 ,8 ,0 }, + {TINT_STATUS_SKIPPED ,8 ,0 ,0 }, +}; + +static nthw_fpga_register_init_s tint_registers[] = { + {TINT_CTRL ,0 ,32 ,NTHW_FPGA_REG_TYPE_WO ,0 ,1 , tint_ctrl_fields},
+ {TINT_STATUS, 1, 16,NTHW_FPGA_REG_TYPE_RC1, 0, 2,tint_status_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0+}; + +static nthw_fpga_field_init_s tsm_con0_config_fields[] = { + {TSM_CON0_CONFIG_BLIND ,5 ,8 ,9 }, {
TSM_CON0_CONFIG_DC_SRC, 3, 5, 0 },
+ {TSM_CON0_CONFIG_PORT, 3, 0, 0 }, {TSM_CON0_CONFIG_PPSIN_2_5V, 1, 13, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +5
-0+ { TSM_CON0_CONFIG_SAMPLE_EDGE, 2, 3, 2 }, +}; + +static nthw_fpga_field_init_s tsm_con0_interface_fields[] = { + { TSM_CON0_INTERFACE_EX_TERM, 2, 0, 3 }, {
TSM_CON0_INTERFACE_IN_REF_PWM, 8, 12, 128 },
+ {TSM_CON0_INTERFACE_PWM_ENA, 1, 2, 0 }, {TSM_CON0_INTERFACE_RESERVED, 1, 3, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +13
-0+ { TSM_CON0_INTERFACE_VTERM_PWM, 8, 4, 0 }, +}; + +static nthw_fpga_field_init_s tsm_con0_sample_hi_fields[] = { + { TSM_CON0_SAMPLE_HI_SEC, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con0_sample_lo_fields[] = { + { TSM_CON0_SAMPLE_LO_NS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con1_config_fields[] = { + { TSM_CON1_CONFIG_BLIND, 5, 8, 9 }, {
TSM_CON1_CONFIG_DC_SRC, 3, 5, 0 },
+ {TSM_CON1_CONFIG_PORT, 3, 0, 0 }, {TSM_CON1_CONFIG_PPSIN_2_5V, 1, 13, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +13
-0+ { TSM_CON1_CONFIG_SAMPLE_EDGE, 2, 3, 2 }, +}; + +static nthw_fpga_field_init_s tsm_con1_sample_hi_fields[] = { + { TSM_CON1_SAMPLE_HI_SEC, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con1_sample_lo_fields[] = { + { TSM_CON1_SAMPLE_LO_NS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con2_config_fields[] = { + { TSM_CON2_CONFIG_BLIND, 5, 8, 9 }, {
TSM_CON2_CONFIG_DC_SRC, 3, 5, 0 },
+ {TSM_CON2_CONFIG_PORT, 3, 0, 0 }, {TSM_CON2_CONFIG_PPSIN_2_5V, 1, 13, 0 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +77
-0+ { TSM_CON2_CONFIG_SAMPLE_EDGE, 2, 3, 2 }, +}; + +static nthw_fpga_field_init_s tsm_con2_sample_hi_fields[] = { + { TSM_CON2_SAMPLE_HI_SEC, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con2_sample_lo_fields[] = { + { TSM_CON2_SAMPLE_LO_NS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con3_config_fields[] = { + { TSM_CON3_CONFIG_BLIND, 5, 5, 26 }, + { TSM_CON3_CONFIG_PORT, 3, 0, 1 }, + { TSM_CON3_CONFIG_SAMPLE_EDGE, 2, 3, 1 }, +}; + +static nthw_fpga_field_init_s tsm_con3_sample_hi_fields[] = { + { TSM_CON3_SAMPLE_HI_SEC, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con3_sample_lo_fields[] = { + { TSM_CON3_SAMPLE_LO_NS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con4_config_fields[] = { + { TSM_CON4_CONFIG_BLIND, 5, 5, 26 }, + { TSM_CON4_CONFIG_PORT, 3, 0, 1 }, + { TSM_CON4_CONFIG_SAMPLE_EDGE, 2, 3, 1 }, +}; + +static nthw_fpga_field_init_s tsm_con4_sample_hi_fields[] = { + { TSM_CON4_SAMPLE_HI_SEC, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con4_sample_lo_fields[] = { + { TSM_CON4_SAMPLE_LO_NS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con5_config_fields[] = { + { TSM_CON5_CONFIG_BLIND, 5, 5, 26 }, + { TSM_CON5_CONFIG_PORT, 3, 0, 1 }, + { TSM_CON5_CONFIG_SAMPLE_EDGE, 2, 3, 1 }, +}; + +static nthw_fpga_field_init_s tsm_con5_sample_hi_fields[] = { + { TSM_CON5_SAMPLE_HI_SEC, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con5_sample_lo_fields[] = { + { TSM_CON5_SAMPLE_LO_TIME, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con6_config_fields[] = { + { TSM_CON6_CONFIG_BLIND, 5, 5, 26 }, + { TSM_CON6_CONFIG_PORT, 3, 0, 1 }, + { TSM_CON6_CONFIG_SAMPLE_EDGE, 2, 3, 1 }, +}; + +static nthw_fpga_field_init_s tsm_con6_sample_hi_fields[] = { + { TSM_CON6_SAMPLE_HI_SEC, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con6_sample_lo_fields[] = { + { TSM_CON6_SAMPLE_LO_NS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con7_host_sample_hi_fields[] = { + { TSM_CON7_HOST_SAMPLE_HI_SEC, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_con7_host_sample_lo_fields[] = { + { TSM_CON7_HOST_SAMPLE_LO_NS, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_config_fields[] = { + { TSM_CONFIG_NTTS_SRC, 2, 5, 0 }, { TSM_CONFIG_NTTS_SYNC, 1, 4,0 },
+ {TSM_CONFIG_TIMESET_EDGE, 2, 8, 1 }, {TSM_CONFIG_TIMESET_SRC, 3, 10, 0 },
+ {TSM_CONFIG_TIMESET_UP, 1, 7, 0 }, {TSM_CONFIG_TS_FORMAT, 4,
0, 1 },drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +14
-0+}; + +static nthw_fpga_field_init_s tsm_int_config_fields[] = { + {TSM_INT_CONFIG_AUTO_DISABLE ,1 ,0 ,0 }, + {TSM_INT_CONFIG_MASK ,19 ,1 ,0 }, +}; + +static nthw_fpga_field_init_s tsm_int_stat_fields[] = { + {TSM_INT_STAT_CAUSE ,19 ,1 ,0 }, + {TSM_INT_STAT_ENABLE ,1 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s tsm_led_fields[] = { + {TSM_LED_LED0_BG_COLOR ,2 ,3 ,0 }, {TSM_LED_LED0_COLOR ,2 ,1 ,0 },
(quoted diff) +2
-0+ { TSM_LED_LED0_MODE, 1, 0, 0 }, { TSM_LED_LED0_SRC, 4, 5, 0 }, + { TSM_LED_LED1_BG_COLOR, 2, 12, 0 }, { TSM_LED_LED1_COLOR, 2,10, 0 },
(quoted diff) +2
-0+ { TSM_LED_LED1_MODE, 1, 9, 0 }, { TSM_LED_LED1_SRC, 4, 14, 1 }, + { TSM_LED_LED2_BG_COLOR, 2, 21, 0 }, { TSM_LED_LED2_COLOR, 2,19, 0 },
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +85
-0+ { TSM_LED_LED2_MODE, 1, 18, 0 }, { TSM_LED_LED2_SRC, 4, 23, 2 }, +}; + +static nthw_fpga_field_init_s tsm_ntts_config_fields[] = { + {TSM_NTTS_CONFIG_AUTO_HARDSET ,1 ,5 ,1 }, + {TSM_NTTS_CONFIG_EXT_CLK_ADJ ,1 ,6 ,0 }, + {TSM_NTTS_CONFIG_HIGH_SAMPLE ,1 ,4 ,0 }, + {TSM_NTTS_CONFIG_TS_SRC_FORMAT ,4 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s tsm_ntts_ext_stat_fields[] = { + {TSM_NTTS_EXT_STAT_MASTER_ID ,8 ,16 ,0x0000 }, + {TSM_NTTS_EXT_STAT_MASTER_REV ,8 ,24 ,0x0000 }, + {TSM_NTTS_EXT_STAT_MASTER_STAT ,16 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_ntts_limit_hi_fields[] = { + {TSM_NTTS_LIMIT_HI_SEC ,16 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s tsm_ntts_limit_lo_fields[] = { + {TSM_NTTS_LIMIT_LO_NS ,32 ,0 ,100000 }, +}; + +static nthw_fpga_field_init_s tsm_ntts_offset_fields[] = { + {TSM_NTTS_OFFSET_NS ,30 ,0 ,0 }, +}; + +static nthw_fpga_field_init_s tsm_ntts_sample_hi_fields[] = { + {TSM_NTTS_SAMPLE_HI_SEC ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_ntts_sample_lo_fields[] = { + {TSM_NTTS_SAMPLE_LO_NS ,32 ,0 ,0x0000 }, +}; + +static nthw_fpga_field_init_s tsm_ntts_stat_fields[] = {Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
},
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +87
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
tsm_con0_config_fields},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
524291, 5,
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
tsm_con0_sample_hi_fields},
+ {TSM_CON0_SAMPLE_LO, 26, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con0_sample_lo_fields},
+ {TSM_CON1_CONFIG, 28, 14,NTHW_FPGA_REG_TYPE_RW, 2320, 5,tsm_con1_config_fields},
+ {TSM_CON1_SAMPLE_HI, 30, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con1_sample_hi_fields},
+ {TSM_CON1_SAMPLE_LO, 29, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con1_sample_lo_fields},
+ {TSM_CON2_CONFIG, 31, 14,NTHW_FPGA_REG_TYPE_RW, 2320, 5,tsm_con2_config_fields},
+ {TSM_CON2_SAMPLE_HI, 33, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con2_sample_hi_fields},
+ {TSM_CON2_SAMPLE_LO, 32, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con2_sample_lo_fields},
+ {TSM_CON3_CONFIG, 34, 10,NTHW_FPGA_REG_TYPE_RW, 841, 3,tsm_con3_config_fields},
+ {TSM_CON3_SAMPLE_HI, 36, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con3_sample_hi_fields},
+ {TSM_CON3_SAMPLE_LO, 35, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con3_sample_lo_fields},
+ {TSM_CON4_CONFIG, 37, 10,NTHW_FPGA_REG_TYPE_RW, 841, 3,tsm_con4_config_fields},
+ {TSM_CON4_SAMPLE_HI, 39, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con4_sample_hi_fields},
+ {TSM_CON4_SAMPLE_LO, 38, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con4_sample_lo_fields},
+ {TSM_CON5_CONFIG, 40, 10,NTHW_FPGA_REG_TYPE_RW, 841, 3,tsm_con5_config_fields},
+ {TSM_CON5_SAMPLE_HI, 42, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con5_sample_hi_fields},
+ {TSM_CON5_SAMPLE_LO, 41, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con5_sample_lo_fields},
+ {TSM_CON6_CONFIG, 43, 10,NTHW_FPGA_REG_TYPE_RW, 841, 3,tsm_con6_config_fields},
+ {TSM_CON6_SAMPLE_HI, 45, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con6_sample_hi_fields},
+ {TSM_CON6_SAMPLE_LO, 44, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_con6_sample_lo_fields},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
tsm_config_fields},
+ {TSM_INT_CONFIG, 2, 20,NTHW_FPGA_REG_TYPE_RW, 0, 2,tsm_int_config_fields},
+ {TSM_INT_STAT, 3, 20,NTHW_FPGA_REG_TYPE_MIXED, 0, 2,tsm_int_stat_fields},
+ {TSM_LED, 4, 27,NTHW_FPGA_REG_TYPE_RW, 16793600, 12,tsm_led_fields},
+ {TSM_NTTS_CONFIG, 13, 7,NTHW_FPGA_REG_TYPE_RW, 32, 4,tsm_ntts_config_fields},
+ {TSM_NTTS_EXT_STAT, 15, 32,NTHW_FPGA_REG_TYPE_MIXED, 0, 3,tsm_ntts_ext_stat_fields},
+ {TSM_NTTS_LIMIT_HI, 23, 16,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_ntts_limit_hi_fields},
+ {TSM_NTTS_LIMIT_LO, 22, 32,NTHW_FPGA_REG_TYPE_RW,
100000, 1,tsm_ntts_limit_lo_fields},
+ {TSM_NTTS_OFFSET, 21, 30,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_ntts_offset_fields},
+ {TSM_NTTS_SAMPLE_HI, 19, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ntts_sample_hi_fields},
+ {TSM_NTTS_SAMPLE_LO, 18, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ntts_sample_lo_fields},
+ {TSM_NTTS_STAT, 14, 17,NTHW_FPGA_REG_TYPE_RO, 0, 3,tsm_ntts_stat_fields},
+ {TSM_NTTS_TS_T0_HI, 17, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ntts_ts_t0_hi_fields},
+ {TSM_NTTS_TS_T0_LO, 16, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ntts_ts_t0_lo_fields},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
tsm_pb_ctrl_fields},
+ {TSM_PB_INSTMEM, 64, 32,NTHW_FPGA_REG_TYPE_WO, 0, 2,tsm_pb_instmem_fields},
+ {TSM_PI_CTRL_I, 54, 32,NTHW_FPGA_REG_TYPE_WO, 0, 1,tsm_pi_ctrl_i_fields},
+ {TSM_PI_CTRL_KI, 52, 24,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_pi_ctrl_ki_fields},
+ {TSM_PI_CTRL_KP, 51, 24,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_pi_ctrl_kp_fields},
+ {TSM_PI_CTRL_SHL, 53, 4,NTHW_FPGA_REG_TYPE_WO, 0, 1,tsm_pi_ctrl_shl_fields},
+ {TSM_STAT, 1, 16,NTHW_FPGA_REG_TYPE_RO, 0, 9,tsm_stat_fields
},
+ {TSM_TIMER_CTRL, 48, 2,NTHW_FPGA_REG_TYPE_RW, 0, 2,tsm_timer_ctrl_fields},
+ {TSM_TIMER_T0, 49, 30,NTHW_FPGA_REG_TYPE_RW, 50000, 1,tsm_timer_t0_fields},
+ {TSM_TIMER_T1, 50, 30,NTHW_FPGA_REG_TYPE_RW, 50000, 1,tsm_timer_t1_fields},
+ {TSM_TIME_HARDSET_HI, 12, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_time_hardset_hi_fields},
+ {TSM_TIME_HARDSET_LO, 11, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_time_hardset_lo_fields},
+ {TSM_TIME_HI, 9, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_time_hi_fields},
+ {TSM_TIME_LO, 8, 32,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_time_lo_fields},
+ {TSM_TIME_RATE_ADJ, 10, 29,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_time_rate_adj_fields},
+ {TSM_TS_HI, 6, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ts_hi_fields},
+ {TSM_TS_LO, 5, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ts_lo_fields},
+ {TSM_TS_OFFSET, 7, 30,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_ts_offset_fields},
+ {TSM_TS_STAT, 55, 17,NTHW_FPGA_REG_TYPE_RO, 0, 2,tsm_ts_stat_fields},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_REG_TYPE_RO, 0, 1,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
tsm_ts_stat_tar_hi_fields},
+ {TSM_TS_STAT_TAR_LO, 56, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ts_stat_tar_lo_fields},
+ {TSM_TS_STAT_X, 58, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ts_stat_x_fields},
+ {TSM_TS_STAT_X2_HI, 60, 16,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ts_stat_x2_hi_fields},
+ {TSM_TS_STAT_X2_LO, 59, 32,NTHW_FPGA_REG_TYPE_RO, 0, 1,tsm_ts_stat_x2_lo_fields},
+ {TSM_UTC_OFFSET, 65, 8,NTHW_FPGA_REG_TYPE_RW, 0, 1,tsm_utc_offset_fields},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
34,
cat_registers},
+ {MOD_CSU, 0,MOD_CSU, 0, 0,NTHW_FPGA_BUS_TYPE_RAB1,
9728, 2,csu_registers},
+ {MOD_DBS, 0,MOD_DBS, 0, 11,NTHW_FPGA_BUS_TYPE_RAB2,
12832, 27,dbs_registers},
+ {MOD_FLM, 0,MOD_FLM, 0, 23,NTHW_FPGA_BUS_TYPE_RAB1,
1280, 43,flm_registers},
+ {MOD_GFG, 0,MOD_GFG, 1, 1,NTHW_FPGA_BUS_TYPE_RAB2,
8704, 10,gfg_registers},
+ {MOD_GMF, 0,MOD_GMF, 2, 5,NTHW_FPGA_BUS_TYPE_RAB2,
9216, 12,gmf_registers},
+ {MOD_GMF, 1,MOD_GMF, 2, 5,NTHW_FPGA_BUS_TYPE_RAB2,
9728, 12,gmf_registers},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_BUS_TYPE_RAB0, 16386, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
9472, 2,
hfu_registers},
+ {MOD_HIF, 0,MOD_HIF, 0, 0,NTHW_FPGA_BUS_TYPE_PCI, 0, 18,hif_registers},
+ {MOD_HSH, 0,MOD_HSH, 0, 5,NTHW_FPGA_BUS_TYPE_RAB1,
1536, 2,hsh_registers},
+ {MOD_IFR, 0,MOD_IFR, 0, 7,NTHW_FPGA_BUS_TYPE_RAB1, 9984,
6,ifr_registers},
+ {MOD_IIC, 0,MOD_IIC, 0, 1,NTHW_FPGA_BUS_TYPE_RAB0, 768, 22,iic_registers},
+ {MOD_IIC, 1,MOD_IIC, 0, 1,NTHW_FPGA_BUS_TYPE_RAB0, 896, 22,iic_registers},
+ {MOD_IIC, 2,MOD_IIC, 0, 1,NTHW_FPGA_BUS_TYPE_RAB0, 24832,
22,iic_registers},
+ {MOD_IIC, 3,MOD_IIC, 0, 1,NTHW_FPGA_BUS_TYPE_RAB0, 24960,
22,iic_registers},
+ {MOD_KM, 0,MOD_KM, 0, 7,NTHW_FPGA_BUS_TYPE_RAB1, 1024,
11,km_registers},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_BUS_TYPE_RAB2, 10240, 44,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_BUS_TYPE_RAB2, 11776, 44,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_BUS_TYPE_RAB2, 10752, 9,mac_rx_registers},
+ {MOD_MAC_RX, 1,MOD_MAC_RX, 0, 0,NTHW_FPGA_BUS_TYPE_RAB2, 12288, 9,mac_rx_registers},
+ {MOD_MAC_TX, 0,MOD_MAC_TX, 0, 0,NTHW_FPGA_BUS_TYPE_RAB2, 11264, 5,mac_tx_registers},
+ {MOD_MAC_TX, 1,MOD_MAC_TX, 0, 0,NTHW_FPGA_BUS_TYPE_RAB2, 12800, 5,mac_tx_registers},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_BUS_TYPE_RAB0, 2320, 6,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
2336, 5,
pci_ta_registers},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_BUS_TYPE_RAB0, 2304, 7,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
2560, 3,
pdb_registers},
+ {MOD_PDI, 0,MOD_PDI, 1, 1,NTHW_FPGA_BUS_TYPE_RAB0, 64, 6,pdi_registers},
+ {MOD_QSL, 0,MOD_QSL, 0, 7,NTHW_FPGA_BUS_TYPE_RAB1, 1792,
8,qsl_registers},
+ {MOD_QSPI, 0,MOD_QSPI, 0, 0,NTHW_FPGA_BUS_TYPE_RAB0,
512, 11,qspi_registers},
+ {MOD_RAC, 0,MOD_RAC, 3, 0,NTHW_FPGA_BUS_TYPE_PCI, 8192,
14,rac_registers},
+ {MOD_RFD, 0,MOD_RFD, 0, 4,NTHW_FPGA_BUS_TYPE_RAB1, 256,
5,rfd_registers},
+ {MOD_RMC, 0,MOD_RMC, 1, 3,NTHW_FPGA_BUS_TYPE_RAB0,
12288, 4,rmc_registers},
+ {MOD_RPP_LR, 0,MOD_RPP_LR, 0, 2,NTHW_FPGA_BUS_TYPE_RAB1, 2304, 4,rpp_lr_registers},
+ {MOD_RST9563, 0,MOD_RST9563, 0, 5,NTHW_FPGA_BUS_TYPE_RAB0, 1024, 5,rst9563_registers},
+ {MOD_SLC_LR, 0,MOD_SLC, 0, 2,NTHW_FPGA_BUS_TYPE_RAB1,
2048, 2,slc_registers},
+ {MOD_SPIM, 0,MOD_SPIM, 1, 1,NTHW_FPGA_BUS_TYPE_RAB0,
80, 7,spim_registers},
+ {MOD_SPIS, 0,MOD_SPIS, 1, 0,NTHW_FPGA_BUS_TYPE_RAB0, 256,
7,spis_registers},
+ {MOD_STA, 0,MOD_STA, 0, 9,NTHW_FPGA_BUS_TYPE_RAB0, 2048,
17,sta_registers},(quoted diff) +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NTHW_FPGA_BUS_TYPE_RAB0, 16384, 2,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1280, 2,
tint_registers},
+ {MOD_TSM, 0,MOD_TSM, 0, 8,NTHW_FPGA_BUS_TYPE_RAB2,
1024, 66,tsm_registers},
+ {MOD_TX_CPY, 0,MOD_CPY, 0, 4,NTHW_FPGA_BUS_TYPE_RAB1,
9216, 26,cpy_registers},
+ {MOD_TX_INS, 0,MOD_INS, 0, 2,NTHW_FPGA_BUS_TYPE_RAB1,
8704, 2,ins_registers},
+ {MOD_TX_RPL, 0,MOD_RPL, 0, 4,NTHW_FPGA_BUS_TYPE_RAB1,
8960, 6,rpl_registers},drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +160
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
fpga_modules,drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +9
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_instances.c new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&nthw_fpga_9563_055_039_0000, NULL };drivers/net/ntnic/nthw/supported/nthw_fpga_instances.c new file +2
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_instances.h new file +7
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h new file +11
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
first element */
drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h new file +82
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.c new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
MOD_CAT, "CAT" },drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.c new file +74
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.h new file +11
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_param_defs.h new file +232
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs.h new file +94
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_cat.h new file +237
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_cb.h new file +73
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_cor.h new file +81
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_cpy.h new file +112
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_csu.h new file +30
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_dbs.h new file +144
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ddp.h new file +34
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_epp.h new file +64
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_eqm.h new file +45
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_fhm.h new file +48
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_flm.h new file +237
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gfg.h new file +126
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gmf.h new file +20
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x32dc6426UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gmf.h new file +48
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
diff --git
a/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy.hb/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy.hnew file mode 100644
index 0000000000..6574263d50drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy.h new file +48
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
diff --git
a/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy_ports.hb/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy_ports.hnew file mode 100644
index 0000000000..c90a4d3209
---/dev/null
+++b/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy_ports.hdrivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy.h new file +72
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
diff --git
a/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_sfpp.hb/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_sfpp.hnew file mode 100644
index 0000000000..f271b0cd46drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_sfpp.h new file +34
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_hfu.h new file +48
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_hif.h new file +79
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_hsh.h new file +49
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_i2cm.h new file +38
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ifr.h new file +41
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_igam.h new file +28
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_iic.h new file +96
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ins.h new file +29
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ioa.h new file +44
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_ipf.h new file +84
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_km.h new file +125
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac.h new file +177
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
diff --git
a/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.hb/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.hnew file mode 100644
index 0000000000..3ad544798cdrivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +26
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xf5845748UL)
+#defineMAC_PCS_DEBOUNCE_CTRL_NT_FORCE_LINK_DOWN
(0x1a8a9237UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +126
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x476782c4UL)
+#defineMAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_CHANGED_1(0x3060b252UL)
+#defineMAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_CHANGED_2(0xa969e3e8UL)
+#defineMAC_PCS_GTY_RX_BUF_STAT_RX_BUF_STAT_CHANGED_3(0xde6ed37eUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +101
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x97082914UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x547ece84UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +7
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xf39f6854UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xcd4c168aUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +29
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
diff --git
a/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs_xxv.hb/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs_xxv.hnew file mode 100644
index 0000000000..92878fb01f
---/dev/null
+++b/drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs_xxv.hdrivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +70
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x1a5e1df6UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +9
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x5bcb427dUL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_0_SW_FEC_OVERWRITE(0x28a23fa1UL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_0_SW_SPEED_OVERWRITE(0x864c3454UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +6
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xcdbc9daeUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +9
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xf5a3d3ecUL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_1_SW_FEC_OVERWRITE(0xc7f08940UL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_1_SW_SPEED_OVERWRITE(0xe32b0f12UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +6
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x6eea1b07UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +9
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xdc6b671eUL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_2_SW_FEC_OVERWRITE(0x2d765422UL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_2_SW_SPEED_OVERWRITE(0x4c8242d8UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +5
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x1617c34eUL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_3_FEC74_REQUEST_10G(0xb9089b5fUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x4249b6b2UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +7
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x7203f68fUL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_3_SW_FEC_OVERWRITE(0xc224e2c3UL)
+#defineMAC_PCS_XXV_ANEG_CONFIG_3_SW_SPEED_OVERWRITE(0x29e5799eUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +42
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xc77ef9eaUL)
+#defineMAC_PCS_XXV_ANEG_LP_ABILITIES_0_LP_25GBASE_CR_S(0xee68c58aUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x7e852202UL)
+#defineMAC_PCS_XXV_ANEG_LP_ABILITIES_1_LP_25GBASE_CR_S(0x69ce0ec9UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x6ff8487bUL)
+#defineMAC_PCS_XXV_ANEG_LP_ABILITIES_2_LP_25GBASE_CR_S(0x3a54554dUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xd6039393UL)
+#defineMAC_PCS_XXV_ANEG_LP_ABILITIES_3_LP_25GBASE_CR_S(0xbdf29e0eUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x15810dbeUL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_0_C_FEC74_REQUEST(0x1bd96c1dUL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_0_C_FEC91_ABILITY(0x41df7842UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_0_C_FEC91_REQUEST(0x4f8719e1UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_0_LP_25GBASE_CR1(0x23d251c1UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_0_LP_EX_ABILITY_VALID(0xc632a6a7UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x9227c6fdUL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_1_C_FEC74_REQUEST(0x9c7fa75eUL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_1_C_FEC91_ABILITY(0xc679b301UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_1_C_FEC91_REQUEST(0xc821d2a2UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_1_LP_25GBASE_CR1(0x8dbac050UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_1_LP_EX_ABILITY_VALID(0x59e82539UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xc1bd9d79UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_2_C_FEC74_REQUEST(0xcfe5fcdaUL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_2_C_FEC91_ABILITY(0x95e3e885UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_2_C_FEC91_REQUEST(0x9bbb8926UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_2_LP_25GBASE_CR1(0xa47274a2UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_2_LP_EX_ABILITY_VALID(0x22f6a7daUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x461b563aUL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_3_C_FEC74_REQUEST(0x48433799UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_3_C_FEC91_ABILITY(0x124523c6UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_3_C_FEC91_REQUEST(0x1c1d4265UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_3_LP_25GBASE_CR1(0xa1ae533UL)
+#defineMAC_PCS_XXV_ANEG_LP_EX_ABILITIES_3_LP_EX_ABILITY_VALID(0xbd2c2444UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +10
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xae1e4dedUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +8
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x4498908fUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +8
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xabca266eUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +42
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x391c7c3bUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +13
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xbebab778UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +26
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x6a8627bfUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +9
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x32bcbfc6UL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_0_NT_FORCE_LINK_DOWN(0xf5caa84cUL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_0_NT_LINKUP_LATENCY(0x39c69ab7UL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_0_NT_PORT_CTRL(0xbba352c4UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xad663c58UL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_1_NT_FORCE_LINK_DOWN(0x90ad930aUL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_1_NT_LINKUP_LATENCY(0xee241aefUL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_1_NT_PORT_CTRL(0x26acb3b2UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xd678bebbUL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_2_NT_FORCE_LINK_DOWN(0x3f04dec0UL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_2_NT_LINKUP_LATENCY(0x4d729c46UL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_2_NT_PORT_CTRL(0x5acd9669UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x49a23d25UL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_3_NT_FORCE_LINK_DOWN(0x5a63e586UL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_3_NT_LINKUP_LATENCY(0x9a901c1eUL)
+#defineMAC_PCS_XXV_DEBOUNCE_CTRL_3_NT_PORT_CTRL(0xc7c2771fUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x98570079UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x21acdb91UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x30d1b1e8UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x892a6a00UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xbad20553UL)
+#defineMAC_PCS_XXV_FEC74_CONFIG_0_RX_FEC74_ENABLE(0x95657559UL)
+#defineMAC_PCS_XXV_FEC74_CONFIG_0_TX_FEC74_ENABLE(0xb79fa1abUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x250886cdUL)
+#defineMAC_PCS_XXV_FEC74_CONFIG_1_RX_FEC74_ENABLE(0x12c3be1aUL)
+#defineMAC_PCS_XXV_FEC74_CONFIG_1_TX_FEC74_ENABLE(0x30396ae8UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x5e16042eUL)
+#defineMAC_PCS_XXV_FEC74_CONFIG_2_RX_FEC74_ENABLE(0x4159e59eUL)
+#defineMAC_PCS_XXV_FEC74_CONFIG_2_TX_FEC74_ENABLE(0x63a3316cUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xc1cc87b0UL)
+#defineMAC_PCS_XXV_FEC74_CONFIG_3_RX_FEC74_ENABLE(0xc6ff2eddUL)
+#defineMAC_PCS_XXV_FEC74_CONFIG_3_TX_FEC74_ENABLE(0xe405fa2fUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x70e15dbbUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xc91a8653UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xd867ec2aUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x619c37c2UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +39
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x833ddf3dUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x9415bbfdUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xad6d16bdUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xba45727dUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +18
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x7b6f0b43UL)
+#defineMAC_PCS_XXV_GTY_POST_CURSOR_0_TX_POST_CSR_ADJUSTED(0xa87d9ad2UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xa6f9d2c6UL)
+#defineMAC_PCS_XXV_GTY_POST_CURSOR_1_TX_POST_CSR_ADJUSTED(0xbf55fe12UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x1b33be08UL)
+#defineMAC_PCS_XXV_GTY_POST_CURSOR_2_TX_POST_CSR_ADJUSTED(0x862d5352UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xc6a5678dUL)
+#defineMAC_PCS_XXV_GTY_POST_CURSOR_3_TX_POST_CSR_ADJUSTED(0x91053792UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +35
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xd738196fUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x48e29af1UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x33fc1812UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xac269b8cUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +26
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x3a6efcd0UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_0_DEC_POST(0xdfcc5d39UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_0_DEC_PRE(0xa8605393UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_0_INC_MAIN(0xa36cbdfbUL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_0_INC_POST(0x46ce1c12UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +5
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xd5ac97eeUL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_1_DEC_POST(0x300e3607UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_1_DEC_PRE(0xbf1b47d0UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_1_INC_MAIN(0x4caed6c5UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_1_INC_POST(0xa90c772cUL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_1_INC_PRE(0xb40bd6d3UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x3e9b2cedUL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_2_DEC_POST(0xdb398d04UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_2_DEC_PRE(0x86967b15UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_2_INC_MAIN(0xa7996dc6UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_2_INC_POST(0x423bcc2fUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +5
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xd15947d3UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_3_DEC_POST(0x34fbe63aUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x485b06f8UL)
+#defineMAC_PCS_XXV_LE_LT_COEF_RECEIVED_3_INC_POST(0xadf9a711UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +38
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x5fc67735UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_ANEG_CONSORTIUM_MISMATCH(0x61d4136fUL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_INTERNAL_LOCAL_FAULT(0x16fc1a7aUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x95aab8f5UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_LOCAL_FAULT(0x4a2e2158UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_RECEIVED_LOCAL_FAULT(0x56dc5f65UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_REMOTE_FAULT(0xbeeda6f3UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_RX_FEC74_LOCK_ERROR(0xcf25e9b5UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_RX_HIGH_BIT_ERROR_RATE(0x8d8fa991UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_RX_PCS_VALID_CTRL_CODE(0x2846c322UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_RX_RSFEC_HI_SER(0xbb5aafe6UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_TX_LOCAL_FAULT(0x8f3e56b4UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LH_TX_UNDERRUN(0xb1c337c4UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LINK_DOWN_CNT(0xbe8bc6e3UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LL_PHY_LINK_STATE(0x7050253fUL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LL_RX_BLOCK_LOCK(0x639554a2UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LL_RX_FEC74_LOCK(0x73211ce0UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LL_RX_RSFEC_LANE_ALIGNMENT(0xd0bd97c6UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_0_LL_TX_RSFEC_LANE_ALIGNMENT(0x3d77e5bcUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0x31581429UL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
0xe63dacddUL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_1_ANEG_CONSORTIUM_MISMATCH(0x86c9b5f8UL)
+#defineMAC_PCS_XXV_LINK_SUMMARY_1_INTERNAL_LOCAL_FAULT(0x1d47ebaUL)drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
33 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
6 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
33 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
6 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
33 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +58
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +6
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +42
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +4
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +12
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +107
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +9
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +74
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_rx.h new file +90
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
5 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_tfg.h new file +42
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_tx.h new file +70
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_msk.h new file +42
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
5 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_rd_tg.h new file +37
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_ta.h new file +32
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
5 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_wr_tg.h new file +40
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcie3.h new file +281
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
8 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcie3.h new file +19
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
11 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcie3.h new file +19
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcs.h new file +92
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcs100.h new file +90
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pdb.h new file +47
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pdi.h new file +48
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
5 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +24
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +7
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +2
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +110
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +22
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
3 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +23
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
8 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +19
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
11 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_phy_tile.h new file +19
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_qsl.h new file +65
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_qspi.h new file +89
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_r2drp.h new file +29
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rac.h new file +72
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rfd.h new file +37
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rmc.h new file +35
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_roa.h new file +67
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rpf.h new file +30
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rpl.h new file +42
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rpp_lr.h new file +36
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
5 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rst9563.h new file +59
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_sdc.h new file +44
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_slc.h new file +33
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_slc_lr.h new file +22
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_spim.h new file +75
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_spis.h new file +50
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_sta.h new file +59
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
5 lines not shown · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tempmon.h new file +29
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tint.h new file +27
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tsm.h new file +294
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_cpy.h new file +22
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_csi.h new file +22
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_cso.h new file +22
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_ins.h new file +22
-0Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_tx_rpl.h new file +22
-1Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1 line not shown · raw message
Parts of this message are not shown here. View the raw message.
On 6/7/2024 2:03 PM, Serhii Iliushyk wrote:
Moved down. Please don't top post.
Quoted 41 lines
------------------------------------------------------------------------
*From:* Mykola Kostenok <[email protected]>
*Sent:* 04 June 2024 13:29
*To:* Serhii Iliushyk <[email protected]>; [email protected] <[email protected]> *Cc:* Christian Koue Muf <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
*Subject:* RE: [PATCH v3 01/17] net/ntnic: Add registers for NapaTech SmartNiC
Recheck-request: iol-unit-amd64-testing, iol-compile-amd64-testing, iol-unit-arm64-testing, iol-compile-arm64-testingQuoted 9 lines
-----Original Message-----
From: Serhii Iliushyk <[email protected]>
Sent: Monday, June 3, 2024 7:18 PM
To: [email protected]
Cc: Mykola Kostenok <[email protected]>; Christian Koue Muf <[email protected]>; [email protected]; [email protected]
Subject: [PATCH v3 01/17] net/ntnic: Add registers for NapaTech SmartNiCQuoted 7 lines
The NTNIC PMD does not rely on a kernel space Napatech driver, thus all defines related to the register layout is part of the PMD code, which will be added in later commits.
Signed-off-by Serhii Iliushyk <[email protected]>---
.../supported/nthw_fpga_9563_055_039_0000.c | 3488Hi Ferruh,
We have sent a patch set which includes base PMD driver for NapaTech smartNiC for DPDK v24.07.
This time, driver has limited basic functionality(Link up only) and we have made refactoring to split it into smaller patches. Extended functionality is planned for upstream to the next release DPDK 24.11.
Quoted 6 lines
Patches have passed the CI but there are several code style warnings which we assumed as false-positive.
Could you please take a look at these patches and suggest us how we can procced with it?
Hi Serhii,
Thanks for the rework.
Still there are some big chunk of code added without being used. Some auto generated code and register definition files are understandable, but there are lots of .c files as well adding lots of new functions as a bunch, out of any context.
It is not possible for anyone to detect any unused code or review them without knowing where/how they are actually used.
(To put with a simple analogy, you are staring to build an apartment by putting windows and doors in place first.)
I will progress with the series, as it is more pragmatic to have it merged than keeping out of tree.
There will be more comments on patches, but in high-level, primary comment is please don't include anything not used/necessary for this initial functionality.
Everything can be merged later when they are actually needed/used.
Btw, I can see some of the checkpatch warnings are valid, can you please go through them?
Quoted 7 lines
Disclaimer: This email and any files transmitted with it may contain confidential information intended for the addressee(s) only. The information is not to be surrendered or copied to unauthorized persons. If you have received this communication in error, please notify the sender immediately and delete this e-mail from your system.
And it would be nice if you can get rid of above disclaimer, it doesn't make sense in an open-source contribution.
Quoted 51 lines · Ferruh Yigit
On 6/7/2024 2:03 PM, Serhii Iliushyk wrote:
Moved down. Please don't top post.
Quoted 47 lines
------------------------------------------------------------------------
*From:* Mykola Kostenok <[email protected]>
*Sent:* 04 June 2024 13:29
*To:* Serhii Iliushyk <[email protected]>; [email protected] <[email protected]> *Cc:* Christian Koue Muf <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
*Subject:* RE: [PATCH v3 01/17] net/ntnic: Add registers for NapaTech SmartNiC
Recheck-request: iol-unit-amd64-testing, iol-compile-amd64-testing, iol-unit-arm64-testing, iol-compile-arm64-testingQuoted 9 lines
-----Original Message-----
From: Serhii Iliushyk <[email protected]>
Sent: Monday, June 3, 2024 7:18 PM
To: [email protected]
Cc: Mykola Kostenok <[email protected]>; Christian Koue Muf <[email protected]>; [email protected]; [email protected]
Subject: [PATCH v3 01/17] net/ntnic: Add registers for NapaTech SmartNiCQuoted 7 lines
The NTNIC PMD does not rely on a kernel space Napatech driver, thus all defines related to the register layout is part of the PMD code, which will be added in later commits.
Signed-off-by Serhii Iliushyk <[email protected]>---
.../supported/nthw_fpga_9563_055_039_0000.c | 3488Hi Ferruh,
We have sent a patch set which includes base PMD driver for NapaTech smartNiC for DPDK v24.07.
This time, driver has limited basic functionality(Link up only) and we have made refactoring to split it into smaller patches. Extended functionality is planned for upstream to the next release DPDK 24.11.
Patches have passed the CI but there are several code style warnings which we assumed as false-positive.
Could you please take a look at these patches and suggest us how we can procced with it?
<...>
Quoted 5 lines
Btw, I can see some of the checkpatch warnings are valid, can you please go through them?
Can you also run './devtools/check-git-log.sh' and fix reported issues? I can see a few places it will complain.
PATCH v4 1/23 net/ntnic: add ethdev and makes PMD available
In reply to Serhii IliushykAdd ntnic ethdev base implementation
--- .mailmap | 1 + MAINTAINERS | 7 ++++ doc/guides/nics/features/ntnic.ini | 9 +++++ doc/guides/nics/index.rst | 1 + doc/guides/nics/ntnic.rst | 43 ++++++++++++++++++++++++ drivers/net/meson.build | 1 + drivers/net/ntnic/meson.build | 24 ++++++++++++++ drivers/net/ntnic/ntnic_ethdev.c | 53 ++++++++++++++++++++++++++++++ 8 files changed, 139 insertions(+) create mode 100644 doc/guides/nics/features/ntnic.ini create mode 100644 doc/guides/nics/ntnic.rst create mode 100644 drivers/net/ntnic/meson.build create mode 100644 drivers/net/ntnic/ntnic_ethdev.c
.mailmap +1 -0
@@ -1289,6 +1289,7 @@ Sergey Madaminov <[email protected]> Sergey Mironov <[email protected]> Sergey Temerkhanov <[email protected]> Sergio Gonzalez Monroy <[email protected]> +Serhii Iliushyk <[email protected]> Seth Arnold <[email protected]> Seth Howell <[email protected]> Shachar Beiser <[email protected]>
MAINTAINERS +7 -0
@@ -857,6 +857,13 @@ F: drivers/net/octeon_ep/ F: doc/guides/nics/features/octeon_ep.ini F: doc/guides/nics/octeon_ep.rst +Napatech ntnic +M: Christian Koue Muf <[email protected]> +M: Serhii Iliushyk <[email protected]> +F: drivers/net/ntnic/ +F: doc/guides/nics/ntnic.rst +F: doc/guides/nics/features/ntnic.ini + NVIDIA mlx4 M: Matan Azrad <[email protected]> M: Viacheslav Ovsiienko <[email protected]>
doc/guides/nics/features/ntnic.ini new file +9 -0
@@ -0,0 +1,9 @@ +; +; Supported features of the 'ntnic' network poll mode driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Link status = Y +Linux = Y +x86-64 = Y
doc/guides/nics/index.rst +1 -0
@@ -53,6 +53,7 @@ Network Interface Controller Drivers nfb nfp ngbe + ntnic null octeon_ep octeontx
doc/guides/nics/ntnic.rst new file +43 -0
43 lines not on this page · raw message
drivers/net/meson.build +1 -0
@@ -45,6 +45,7 @@ drivers = [ 'nfb', 'nfp', 'ngbe', + 'ntnic', 'null', 'octeontx', 'octeon_ep',
drivers/net/ntnic/meson.build new file +24 -0
@@ -0,0 +1,24 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020-2023 Napatech A/S + +if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64') + build = false + reason = 'only supported on x86_64 Linux' + subdir_done() +endif + +# cflags +cflags += [ + '-std=c11', +] + +# includes +includes = [ + include_directories('.'), +] + +# all sources +sources = files( + 'ntnic_ethdev.c', +) +# END
drivers/net/ntnic/ntnic_ethdev.c new file +53 -0
53 lines not on this page · raw message
Signature · 1 line
2.45.0
PATCH v4 2/23 net/ntnic: add logging implementation
Add ntnic specific implementation for logging
--- drivers/net/ntnic/meson.build | 2 + drivers/net/ntnic/ntlog/include/ntlog.h | 49 +++++++++++++++++++++++ drivers/net/ntnic/ntlog/ntlog.c | 53 +++++++++++++++++++++++++ drivers/net/ntnic/ntnic_ethdev.c | 2 + 4 files changed, 106 insertions(+) create mode 100644 drivers/net/ntnic/ntlog/include/ntlog.h create mode 100644 drivers/net/ntnic/ntlog/ntlog.c
drivers/net/ntnic/meson.build +2 -0
@@ -15,10 +15,12 @@ cflags += [ # includes includes = [ include_directories('.'), + include_directories('ntlog/include'), ] # all sources sources = files( + 'ntlog/ntlog.c', 'ntnic_ethdev.c', ) # END
drivers/net/ntnic/ntlog/include/ntlog.h new file +49 -0
49 lines not on this page · raw message
drivers/net/ntnic/ntlog/ntlog.c new file +53 -0
53 lines not on this page · raw message
drivers/net/ntnic/ntnic_ethdev.c +2 -0
@@ -12,6 +12,8 @@#include <rte_bus_pci.h> #include <ethdev_pci.h> +#include "ntlog.h" +/* Global static variables: */ static int
Signature · 1 line
2.45.0
PATCH v4 3/23 net/ntnic: add minimal initialization for PCI device
In reply to Serhii Iliushykadd implementation for probe/init and remove/deinit of the PCI device
--- drivers/net/ntnic/ntnic_ethdev.c | 104 ++++++++++++++++++++++++++++++- 1 file changed, 103 insertions(+), 1 deletion(-)
drivers/net/ntnic/ntnic_ethdev.c +103 -1
@@ -17,14 +17,63 @@/* Global static variables: */ static int -nthw_pci_dev_init(struct rte_pci_device *pci_dev __rte_unused) +nthw_pci_dev_init (struct rte_pci_device *pci_dev) { +uint32_t n_port_mask =-1 ;/* All ports enabled by default */ +int n_phy_ports; +NT_LOG_DBGX (DEBUG ,NTNIC ,"Dev %s PF #%i Init : %02x:%02x:%i\n" , pci_dev->name, + pci_dev->addr.function, pci_dev->addr.bus, pci_dev->addr.devid, + pci_dev->addr.function); + + n_phy_ports =0 ; + +for (int n_intf_no =0 ; n_intf_no < n_phy_ports; n_intf_no++) { +struct rte_eth_dev *eth_dev =NULL ; +char name[32 ]; + +if ((1 << n_intf_no) & ~n_port_mask) +continue ; + +snprintf (name,sizeof (name),"ntnic%d" , n_intf_no); + + eth_dev =rte_eth_dev_allocate (name);/* TODO: name */ + +if (!eth_dev) { +NT_LOG_DBGX (ERR ,NTNIC ,"%s: %s: error=%d\n" , + (pci_dev->name[0 ] ? pci_dev->name :"NA" ), name,-1 ); +return -1 ; + } + +NT_LOG_DBGX (DEBUG ,NTNIC ,"eth_dev %p, port_id %u, if_index %u\n" , + eth_dev, eth_dev->data->port_id, n_intf_no); + + +struct rte_eth_link pmd_link; + pmd_link.link_speed =RTE_ETH_SPEED_NUM_NONE ; + pmd_link.link_duplex =RTE_ETH_LINK_FULL_DUPLEX ; + pmd_link.link_status =RTE_ETH_LINK_DOWN ; + pmd_link.link_autoneg =RTE_ETH_LINK_AUTONEG ; + + eth_dev->device = &pci_dev->device; + eth_dev->data->dev_link = pmd_link; + eth_dev->data->numa_node = pci_dev->device.numa_node; + eth_dev->dev_ops =NULL ; + eth_dev->state =RTE_ETH_DEV_ATTACHED ; + +rte_eth_copy_pci_info (eth_dev, pci_dev); +/* performs rte_eth_copy_pci_info() */ +eth_dev_pci_specific_init (eth_dev, pci_dev); + +/* increase initialized ethernet devices - PF */ + } +return 0 ; }static int nthw_pci_dev_deinit(struct rte_eth_dev *eth_dev __rte_unused) { +NT_LOG_DBGX (DEBUG ,NTNIC ,"PCI device deinitialization\n" );return 0 ; }
@@ -33,13 +82,65 @@ nthw_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, struct rte_pci_device *pci_dev) {int res; + +NT_LOG_DBGX (DEBUG ,NTNIC ,"pcidev: name: '%s'\n" , pci_dev->name); +NT_LOG_DBGX (DEBUG ,NTNIC ,"devargs: name: '%s'\n" , pci_dev->device.name); + +if (pci_dev->device.devargs) { +NT_LOG_DBGX (DEBUG ,NTNIC ,"devargs: args: '%s'\n" , + (pci_dev->device.devargs->args ? pci_dev->device.devargs->args :"NULL" )); +NT_LOG_DBGX (DEBUG ,NTNIC ,"devargs: data: '%s'\n" , + (pci_dev->device.devargs->data ? pci_dev->device.devargs->data :"NULL" )); + } + +const int n_rte_has_pci =rte_eal_has_pci (); +NT_LOG (DBG ,NTNIC ,"has_pci=%d\n" , n_rte_has_pci); + +if (n_rte_has_pci ==0 ) { +NT_LOG (ERR ,NTNIC ,"has_pci=%d: this PMD needs hugepages\n" , n_rte_has_pci); +return -1 ; + } + +const int n_rte_vfio_no_io_mmu_enabled =rte_vfio_noiommu_is_enabled (); +NT_LOG (DBG ,NTNIC ,"vfio_no_iommu_enabled=%d\n" , n_rte_vfio_no_io_mmu_enabled); + +if (n_rte_vfio_no_io_mmu_enabled) { +NT_LOG (ERR ,NTNIC ,"vfio_no_iommu_enabled=%d: this PMD needs VFIO IOMMU\n" , + n_rte_vfio_no_io_mmu_enabled); +return -1 ; + } + +const enum rte_iova_mode n_rte_io_va_mode =rte_eal_iova_mode (); +NT_LOG (DBG ,NTNIC ,"iova mode=%d\n" , n_rte_io_va_mode); + +if (n_rte_io_va_mode !=RTE_IOVA_PA ) { +NT_LOG (WRN ,NTNIC ,"iova mode (%d) should be PA for performance reasons\n" , + n_rte_io_va_mode); + } + +NT_LOG (DBG ,NTNIC , +"busid=" PCI_PRI_FMT +" pciid=%04x:%04x_%04x:%04x locstr=%s @ numanode=%d: drv=%s drvalias=%s\n" , + pci_dev->addr.domain, pci_dev->addr.bus, pci_dev->addr.devid, + pci_dev->addr.function, pci_dev->id.vendor_id, pci_dev->id.device_id, + pci_dev->id.subsystem_vendor_id, pci_dev->id.subsystem_device_id, + pci_dev->name[0 ] ? pci_dev->name :"NA" ,/* locstr */ + pci_dev->device.numa_node, + pci_dev->driver->driver.name ? pci_dev->driver->driver.name :"NA" , + pci_dev->driver->driver.alias ? pci_dev->driver->driver.alias :"NA" ); + + res =nthw_pci_dev_init (pci_dev); + +NT_LOG_DBGX (DEBUG ,NTNIC ,"leave: res=%d\n" , res);return res; }static int nthw_pci_remove (struct rte_pci_device *pci_dev) { +NT_LOG_DBGX (DEBUG ,NTNIC ); +return rte_eth_dev_pci_generic_remove (pci_dev, nthw_pci_dev_deinit); }
@@ -48,6 +149,7 @@ static struct rte_pci_driver rte_nthw_pmd = { .name = "net_ntnic", }, + .drv_flags = RTE_PCI_DRV_NEED_MAPPING, .probe = nthw_pci_probe, .remove = nthw_pci_remove, };
Signature · 1 line
2.45.0
PATCH v4 4/23 net/ntnic: add NT utilities implementation
In reply to Serhii IliushykAdd ntnic utilities.
--- drivers/net/ntnic/meson.build | 2 ++ drivers/net/ntnic/ntnic_ethdev.c | 2 ++ drivers/net/ntnic/ntutil/include/nt_util.h | 28 ++++++++++++++++++ drivers/net/ntnic/ntutil/nt_util.c | 33 ++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 drivers/net/ntnic/ntutil/include/nt_util.h create mode 100644 drivers/net/ntnic/ntutil/nt_util.c
drivers/net/ntnic/meson.build +2 -0
@@ -16,11 +16,13 @@ cflags += [ includes = [ include_directories('.'), include_directories('ntlog/include'), + include_directories('ntutil/include'), ] # all sources sources = files( 'ntlog/ntlog.c', + 'ntutil/nt_util.c', 'ntnic_ethdev.c', ) # END
drivers/net/ntnic/ntnic_ethdev.c +2 -0
@@ -14,6 +14,8 @@#include "ntlog.h" +#include "nt_util.h" +/* Global static variables: */ static int
drivers/net/ntnic/ntutil/include/nt_util.h new file +28 -0
@@ -0,0 +1,28 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef NTOSS_SYSTEM_NT_UTIL_H +#define NTOSS_SYSTEM_NT_UTIL_H + +#include <stdint.h> + +#ifndef ARRAY_SIZE +#define ARRAY_SIZE (arr) RTE_DIM(arr) +#endif + +#define PCIIDENT_TO_DOMAIN (pci_ident) ((uint16_t)(((unsigned int)(pci_ident) >> 16) & 0xFFFFU)) +#define PCIIDENT_TO_BUSNR (pci_ident) ((uint8_t)(((unsigned int)(pci_ident) >> 8) & 0xFFU)) +#define PCIIDENT_TO_DEVNR (pci_ident) ((uint8_t)(((unsigned int)(pci_ident) >> 3) & 0x1FU)) +#define PCIIDENT_TO_FUNCNR (pci_ident) ((uint8_t)(((unsigned int)(pci_ident) >> 0) & 0x7U)) +#define PCIIDENT_PRINT_STR "%04x:%02x:%02x.%x" +#define BDF_TO_PCIIDENT (dom, bus, dev, fnc) (((dom) << 16) | ((bus) << 8) | ((dev) << 3) | (fnc)) + +uint64_t nt_os_get_time_monotonic_counter (void ); +void nt_os_wait_usec (int val); + +uint64_t nt_util_align_size (uint64_t size); + + +#endif /* NTOSS_SYSTEM_NT_UTIL_H */
drivers/net/ntnic/ntutil/nt_util.c new file +33 -0
@@ -0,0 +1,33 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#include <unistd.h> +#include <stdlib.h> +#include <stdint.h> +#include <inttypes.h> +#include <assert.h> + +#include <rte_ethdev.h> +#include <rte_malloc.h> + +#include "ntlog.h" +#include "nt_util.h" + +/* uses usleep which schedules out the calling thread */ +void nt_os_wait_usec (int val) +{ +rte_delay_us_sleep (val); +} + +uint64_t nt_os_get_time_monotonic_counter (void ) +{ +return rte_get_timer_cycles (); +} + +/* Allocation size matching minimum alignment of specified size */ +uint64_t nt_util_align_size (uint64_t size) +{ +return 1 <<rte_log2_u64 (size); +}
Signature · 1 line
2.45.0
PATCH v4 5/23 net/ntnic: add VFIO module
In reply to Serhii IliushykAdd ntnic VFIO functionality.
--- drivers/net/ntnic/meson.build | 1 + drivers/net/ntnic/ntnic_ethdev.c | 20 +- drivers/net/ntnic/ntnic_vfio.c | 235 +++++++++++++++++++++ drivers/net/ntnic/ntnic_vfio.h | 29 +++ drivers/net/ntnic/ntutil/include/nt_util.h | 15 ++ drivers/net/ntnic/ntutil/nt_util.c | 65 ++++++ 6 files changed, 362 insertions(+), 3 deletions(-) create mode 100644 drivers/net/ntnic/ntnic_vfio.c create mode 100644 drivers/net/ntnic/ntnic_vfio.h
drivers/net/ntnic/meson.build +1 -0
@@ -23,6 +23,7 @@ includes = [ sources = files( 'ntlog/ntlog.c', 'ntutil/nt_util.c', + 'ntnic_vfio.c', 'ntnic_ethdev.c', ) # END
drivers/net/ntnic/ntnic_ethdev.c +17 -3
@@ -8,25 +8,37 @@#include <rte_eal.h> #include <rte_dev.h> #include <rte_vfio.h> -#include <rte_ethdev.h> -#include <rte_bus_pci.h> -#include <ethdev_pci.h> #include "ntlog.h" +#include "ntnic_vfio.h" #include "nt_util.h" +#define EXCEPTION_PATH_HID 0 +/* Global static variables: */ static int nthw_pci_dev_init (struct rte_pci_device *pci_dev) { +nt_vfio_init (); +uint32_t n_port_mask =-1 ;/* All ports enabled by default */ int n_phy_ports;NT_LOG_DBGX (DEBUG ,NTNIC ,"Dev %s PF #%i Init : %02x:%02x:%i\n" , pci_dev->name, pci_dev->addr.function, pci_dev->addr.bus, pci_dev->addr.devid, pci_dev->addr.function); + +/* Setup VFIO context */ +int vfio =nt_vfio_setup (pci_dev); + +if (vfio <0 ) { +NT_LOG_DBGX (ERR ,TNIC ,"%s: vfio_setup error %d\n" , + (pci_dev->name[0 ] ? pci_dev->name :"NA" ),-1 ); +return -1 ; + } + n_phy_ports =0 ;for (int n_intf_no =0 ; n_intf_no < n_phy_ports; n_intf_no++) {
@@ -76,6 +88,7 @@ static int nthw_pci_dev_deinit(struct rte_eth_dev *eth_dev __rte_unused) {NT_LOG_DBGX (DEBUG ,NTNIC ,"PCI device deinitialization\n" ); +nt_vfio_remove (EXCEPTION_PATH_HID );return 0 ; }
@@ -157,3 +170,4 @@ static struct rte_pci_driver rte_nthw_pmd = { };RTE_PMD_REGISTER_PCI (net_ntnic, rte_nthw_pmd); +RTE_PMD_REGISTER_KMOD_DEP (net_ntnic,"* vfio-pci" );
drivers/net/ntnic/ntnic_vfio.c new file +235 -0
235 lines not on this page · raw message
drivers/net/ntnic/ntnic_vfio.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef _NTNIC_VFIO_H_ +#define _NTNIC_VFIO_H_ + +#include <rte_dev.h> +#include <rte_bus_pci.h> +#include <ethdev_pci.h> + +void +nt_vfio_init (void ); + +int +nt_vfio_setup (struct rte_pci_device *dev); +int +nt_vfio_remove (int vf_num); + +int +nt_vfio_dma_map (int vf_num,void *virt_addr,uint64_t *iova_addr,uint64_t size); +int +nt_vfio_dma_unmap (int vf_num,void *virt_addr,uint64_t iova_addr,uint64_t size); + +/* Find device (PF/VF) number from device address */ +int +nt_vfio_vf_num (const struct rte_pci_device *dev); +#endif /* _NTNIC_VFIO_H_ */
drivers/net/ntnic/ntutil/include/nt_util.h +15 -0
@@ -24,5 +24,20 @@ void nt_os_wait_usec(int val);uint64_t nt_util_align_size (uint64_t size); +struct nt_dma_s { +uint64_t iova; +uint64_t addr; +uint64_t size; +}; + +struct nt_dma_s *nt_dma_alloc (uint64_t size,uint64_t align,int numa); +void nt_dma_free (struct nt_dma_s *vfio_addr); + +struct nt_util_vfio_impl { +int (*vfio_dma_map)(int vf_num,void *virt_addr,uint64_t *iova_addr,uint64_t size); +int (*vfio_dma_unmap)(int vf_num,void *virt_addr,uint64_t iova_addr,uint64_t size); +}; + +void nt_util_vfio_init (struct nt_util_vfio_impl *impl);#endif /* NTOSS_SYSTEM_NT_UTIL_H */
drivers/net/ntnic/ntutil/nt_util.c +65 -0
74 lines not on this page · raw message
Signature · 1 line
2.45.0
PATCH v4 6/23 net/ntnic: add NT NIC driver dependencies
In reply to Serhii IliushykAdd structures and interfaces specific for NT smartNiC
--- drivers/net/ntnic/include/ntdrv_4ga.h | 17 ++ drivers/net/ntnic/include/ntos_drv.h | 33 ++++ drivers/net/ntnic/include/ntos_system.h | 21 ++ drivers/net/ntnic/meson.build | 1 + drivers/net/ntnic/ntnic_ethdev.c | 243 +++++++++++++++++++++++- 5 files changed, 314 insertions(+), 1 deletion(-) create mode 100644 drivers/net/ntnic/include/ntdrv_4ga.h create mode 100644 drivers/net/ntnic/include/ntos_drv.h create mode 100644 drivers/net/ntnic/include/ntos_system.h
drivers/net/ntnic/include/ntdrv_4ga.h new file +17 -0
@@ -0,0 +1,17 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef __NTDRV_4GA_H__ +#define __NTDRV_4GA_H__ + + +typedef struct ntdrv_4ga_s { +uint32_t pciident; +char *p_drv_name; + +volatile bool b_shutdown; +}ntdrv_4ga_t ; + +#endif /* __NTDRV_4GA_H__ */
drivers/net/ntnic/include/ntos_drv.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef __NTOS_DRV_H__ +#define __NTOS_DRV_H__ + +#include <unistd.h> +#include <stdlib.h> +#include <stdint.h> +#include <inttypes.h> + +#include <rte_ether.h> + +#define NUM_MAC_ADDRS_PER_PORT (16U) +#define NUM_MULTICAST_ADDRS_PER_PORT (16U) + +#define NUM_ADAPTER_MAX (8) +#define NUM_ADAPTER_PORTS_MAX (128) + +struct pmd_internals { +const struct rte_pci_device *pci_dev; +char name[20 ]; +int n_intf_no; +int if_index; +uint32_t port; +uint32_t port_id; +struct drv_s *p_drv; +struct pmd_internals *next; +}; + +#endif /* __NTOS_DRV_H__ */
drivers/net/ntnic/include/ntos_system.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef __NTOS_SYSTEM_H__ +#define __NTOS_SYSTEM_H__ + +#include "ntdrv_4ga.h" + +struct drv_s { +int adapter_no; +struct rte_pci_device *p_dev; +struct ntdrv_4ga_s ntdrv; + +int n_eth_dev_init_count; +int probe_finished; +int setup_finished; +}; + +#endif /* __NTOS_SYSTEM_H__ */
drivers/net/ntnic/meson.build +1 -0
@@ -15,6 +15,7 @@ cflags += [ # includes includes = [ include_directories('.'), + include_directories('include'), include_directories('ntlog/include'), include_directories('ntutil/include'), ]
drivers/net/ntnic/ntnic_ethdev.c +242 -1
312 lines not on this page · raw message
Signature · 1 line
2.45.0
PATCH v4 7/23 net/ntnic: add core platform functionality
In reply to Serhii IliushykAdd ntnic basic platform interfaces
--- drivers/net/ntnic/include/ntos_drv.h | 2 + drivers/net/ntnic/meson.build | 2 + drivers/net/ntnic/nthw/nthw_drv.h | 88 ++++++++++++++++++++++ drivers/net/ntnic/nthw/nthw_platform.c | 14 ++++ drivers/net/ntnic/nthw/nthw_platform_drv.h | 21 ++++++ 5 files changed, 127 insertions(+) create mode 100644 drivers/net/ntnic/nthw/nthw_drv.h create mode 100644 drivers/net/ntnic/nthw/nthw_platform.c create mode 100644 drivers/net/ntnic/nthw/nthw_platform_drv.h
drivers/net/ntnic/include/ntos_drv.h +2 -0
@@ -13,6 +13,8 @@#include <rte_ether.h> +#include "nthw_drv.h" +#define NUM_MAC_ADDRS_PER_PORT (16U)#define NUM_MULTICAST_ADDRS_PER_PORT (16U)
drivers/net/ntnic/meson.build +2 -0
@@ -18,10 +18,12 @@ includes = [ include_directories('include'), include_directories('ntlog/include'), include_directories('ntutil/include'), + include_directories('nthw'), ] # all sources sources = files( + 'nthw/nthw_platform.c', 'ntlog/ntlog.c', 'ntutil/nt_util.c', 'ntnic_vfio.c',
drivers/net/ntnic/nthw/nthw_drv.h new file +88 -0
88 lines not on this page · raw message
drivers/net/ntnic/nthw/nthw_platform.c new file +14 -0
@@ -0,0 +1,14 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#include "nthw_platform_drv.h" + +nthw_adapter_id_t nthw_platform_get_nthw_adapter_id (const uint16_t n_pci_device_id) +{ +switch (n_pci_device_id) { +default : +return NT_HW_ADAPTER_ID_UNKNOWN ; + } +}
drivers/net/ntnic/nthw/nthw_platform_drv.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef __NTHW_PLATFORM_DRV_H__ +#define __NTHW_PLATFORM_DRV_H__ + +#include <stdint.h> + +#define NT_HW_PCI_VENDOR_ID (0x18f4) + +enum nthw_adapter_id_e { +NT_HW_ADAPTER_ID_UNKNOWN =0 , +}; + +typedef enum nthw_adapter_id_e nthw_adapter_id_t ; + +nthw_adapter_id_t nthw_platform_get_nthw_adapter_id (const uint16_t n_pci_device_id); + +#endif /* __NTHW_PLATFORM_DRV_H__ */
Signature · 1 line
2.45.0
PATCH v4 8/23 net/ntnic: add adapter initialization
In reply to Serhii IliushykAdd interfaces for initialize the adapter
--- drivers/net/ntnic/adapter/nt4ga_adapter.c | 148 ++++++++++++++++++++++ drivers/net/ntnic/include/nt4ga_adapter.h | 40 ++++++ drivers/net/ntnic/include/ntdrv_4ga.h | 2 + drivers/net/ntnic/meson.build | 2 + drivers/net/ntnic/ntnic_ethdev.c | 73 ++++++++++- drivers/net/ntnic/ntnic_mod_reg.c | 20 +++ drivers/net/ntnic/ntnic_mod_reg.h | 27 ++++ 7 files changed, 311 insertions(+), 1 deletion(-) create mode 100644 drivers/net/ntnic/adapter/nt4ga_adapter.c create mode 100644 drivers/net/ntnic/include/nt4ga_adapter.h create mode 100644 drivers/net/ntnic/ntnic_mod_reg.c create mode 100644 drivers/net/ntnic/ntnic_mod_reg.h
drivers/net/ntnic/adapter/nt4ga_adapter.c new file +148 -0
@@ -0,0 +1,148 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#include <rte_thread.h> + +#include "ntlog.h" +#include "nt_util.h" +#include "ntnic_mod_reg.h" + +static int nt4ga_adapter_show_info (struct adapter_info_s *p_adapter_info,FILE *pfh) +{ +const char *const p_dev_name = p_adapter_info->p_dev_name; +const char *const p_adapter_id_str = p_adapter_info->mp_adapter_id_str; +fpga_info_t *p_fpga_info = &p_adapter_info->fpga_info; +hw_info_t *p_hw_info = &p_adapter_info->hw_info; +char a_pci_ident_str[32 ]; + +snprintf (a_pci_ident_str,sizeof (a_pci_ident_str),PCIIDENT_PRINT_STR , +PCIIDENT_TO_DOMAIN (p_fpga_info->pciident), +PCIIDENT_TO_BUSNR (p_fpga_info->pciident), +PCIIDENT_TO_DEVNR (p_fpga_info->pciident), +PCIIDENT_TO_FUNCNR (p_fpga_info->pciident)); + +fprintf (pfh,"%s: DeviceName: %s\n" , p_adapter_id_str, (p_dev_name ? p_dev_name :"NA" )); +fprintf (pfh,"%s: PCI Details:\n" , p_adapter_id_str); +fprintf (pfh,"%s: %s: %08X: %04X:%04X %04X:%04X\n" , p_adapter_id_str, a_pci_ident_str, + p_fpga_info->pciident, p_hw_info->pci_vendor_id, p_hw_info->pci_device_id, + p_hw_info->pci_sub_vendor_id, p_hw_info->pci_sub_device_id); +fprintf (pfh,"%s: FPGA Details:\n" , p_adapter_id_str); +fprintf (pfh,"%s: %03d-%04d-%02d-%02d [%016" PRIX64 "] (%08X)\n" , p_adapter_id_str, + p_fpga_info->n_fpga_type_id, p_fpga_info->n_fpga_prod_id, + p_fpga_info->n_fpga_ver_id, p_fpga_info->n_fpga_rev_id, p_fpga_info->n_fpga_ident, + p_fpga_info->n_fpga_build_time); +fprintf (pfh,"%s: FpgaDebugMode=0x%x\n" , p_adapter_id_str, p_fpga_info->n_fpga_debug_mode); +fprintf (pfh,"%s: Hw=0x%02X_rev%d: %s\n" , p_adapter_id_str, p_hw_info->hw_platform_id, + p_fpga_info->nthw_hw_info.hw_id, p_fpga_info->nthw_hw_info.hw_plat_id_str); +fprintf (pfh,"%s: MCU Details:\n" , p_adapter_id_str); + + +return 0 ; +} + +static int nt4ga_adapter_init (struct adapter_info_s *p_adapter_info) +{ +char *const p_dev_name =malloc (24 ); +char *const p_adapter_id_str =malloc (24 ); +fpga_info_t *fpga_info = &p_adapter_info->fpga_info; +hw_info_t *p_hw_info = &p_adapter_info->hw_info; + + + p_hw_info->n_nthw_adapter_id =nthw_platform_get_nthw_adapter_id (p_hw_info->pci_device_id); + + fpga_info->n_nthw_adapter_id = p_hw_info->n_nthw_adapter_id; +/* ref: DN-0060 section 9 */ + p_hw_info->hw_product_type = p_hw_info->pci_device_id &0x000f ; +/* ref: DN-0060 section 9 */ + p_hw_info->hw_platform_id = (p_hw_info->pci_device_id >>4 ) &0x00ff ; +/* ref: DN-0060 section 9 */ + p_hw_info->hw_reserved1 = (p_hw_info->pci_device_id >>12 ) &0x000f ; + +/* mp_dev_name */ + p_adapter_info->p_dev_name = p_dev_name; + +if (p_dev_name) { +snprintf (p_dev_name,24 ,PCIIDENT_PRINT_STR , +PCIIDENT_TO_DOMAIN (p_adapter_info->fpga_info.pciident), +PCIIDENT_TO_BUSNR (p_adapter_info->fpga_info.pciident), +PCIIDENT_TO_DEVNR (p_adapter_info->fpga_info.pciident), +PCIIDENT_TO_FUNCNR (p_adapter_info->fpga_info.pciident)); +NT_LOG (DBG ,NTNIC ,"%s: (0x%08X)\n" , p_dev_name, + p_adapter_info->fpga_info.pciident); + } + +/* mp_adapter_id_str */ + p_adapter_info->mp_adapter_id_str = p_adapter_id_str; + + p_adapter_info->fpga_info.mp_adapter_id_str = p_adapter_id_str; + +if (p_adapter_id_str) { +snprintf (p_adapter_id_str,24 ,"PCI:" PCIIDENT_PRINT_STR , +PCIIDENT_TO_DOMAIN (p_adapter_info->fpga_info.pciident), +PCIIDENT_TO_BUSNR (p_adapter_info->fpga_info.pciident), +PCIIDENT_TO_DEVNR (p_adapter_info->fpga_info.pciident), +PCIIDENT_TO_FUNCNR (p_adapter_info->fpga_info.pciident)); +NT_LOG (DBG ,NTNIC ,"%s: %s\n" , p_adapter_id_str, p_dev_name); + } + + { +int i; + +for (i =0 ; i < (int )ARRAY_SIZE (p_adapter_info->mp_port_id_str); i++) { +char *p =malloc (32 ); + +if (p) { +snprintf (p,32 ,"%s:intf_%d" , + (p_adapter_id_str ? p_adapter_id_str :"NA" ), i); + } + + p_adapter_info->mp_port_id_str[i] = p; + } + } + +return 0 ; +} + +static int nt4ga_adapter_deinit (struct adapter_info_s *p_adapter_info) +{ +fpga_info_t *fpga_info = &p_adapter_info->fpga_info; +int i; +int res =-1 ; + + +/* Free adapter port ident strings */ +for (i =0 ; i < fpga_info->n_phy_ports; i++) { +if (p_adapter_info->mp_port_id_str[i]) { +free (p_adapter_info->mp_port_id_str[i]); + p_adapter_info->mp_port_id_str[i] =NULL ; + } + } + +/* Free adapter ident string */ +if (p_adapter_info->mp_adapter_id_str) { +free (p_adapter_info->mp_adapter_id_str); + p_adapter_info->mp_adapter_id_str =NULL ; + } + +/* Free devname ident string */ +if (p_adapter_info->p_dev_name) { +free (p_adapter_info->p_dev_name); + p_adapter_info->p_dev_name =NULL ; + } + +return res; +} + +static const struct adapter_ops ops = { + .init = nt4ga_adapter_init, + .deinit = nt4ga_adapter_deinit, + + .show_info = nt4ga_adapter_show_info, +}; + +void adapter_init (void ) +{ +register_adapter_ops (&ops); +}
drivers/net/ntnic/include/nt4ga_adapter.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef _NT4GA_ADAPTER_H_ +#define _NT4GA_ADAPTER_H_ + +#include "ntos_drv.h" +typedef struct hw_info_s { +/* pciids */ +uint16_t pci_vendor_id; +uint16_t pci_device_id; +uint16_t pci_sub_vendor_id; +uint16_t pci_sub_device_id; +uint16_t pci_class_id; + +/* Derived from pciid */ +nthw_adapter_id_t n_nthw_adapter_id; +int hw_platform_id; +int hw_product_type; +int hw_reserved1; +}hw_info_t ; + +typedef struct adapter_info_s { +struct hw_info_s hw_info; +struct fpga_info_s fpga_info; + +char *mp_port_id_str[NUM_ADAPTER_PORTS_MAX ]; +char *mp_adapter_id_str; +char *p_dev_name; +volatile bool *pb_shutdown; + +int adapter_no; +int n_rx_host_buffers; +int n_tx_host_buffers; +}adapter_info_t ; + + +#endif /* _NT4GA_ADAPTER_H_ */
drivers/net/ntnic/include/ntdrv_4ga.h +2 -0
@@ -6,9 +6,11 @@ #ifndef __NTDRV_4GA_H__ #define __NTDRV_4GA_H__ +#include "nt4ga_adapter.h" typedef struct ntdrv_4ga_s { uint32_t pciident; + struct adapter_info_s adapter_info; char *p_drv_name; volatile bool b_shutdown;
drivers/net/ntnic/meson.build +2 -0
@@ -23,9 +23,11 @@ includes = [ # all sources sources = files( + 'adapter/nt4ga_adapter.c', 'nthw/nthw_platform.c', 'ntlog/ntlog.c', 'ntutil/nt_util.c', + 'ntnic_mod_reg.c', 'ntnic_vfio.c', 'ntnic_ethdev.c', )
drivers/net/ntnic/ntnic_ethdev.c +72 -1
130 lines not on this page · raw message
drivers/net/ntnic/ntnic_mod_reg.c new file +20 -0
@@ -0,0 +1,20 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#include "ntnic_mod_reg.h" + +static const struct adapter_ops *adapter_ops; + +void register_adapter_ops (const struct adapter_ops *ops) +{ + adapter_ops = ops; +} + +const struct adapter_ops *get_adapter_ops (void ) +{ +if (adapter_ops ==NULL ) +adapter_init (); +return adapter_ops; +}
drivers/net/ntnic/ntnic_mod_reg.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef __NTNIC_MOD_REG_H__ +#define __NTNIC_MOD_REG_H__ + +#include <stdint.h> +#include "nthw_platform_drv.h" +#include "nthw_drv.h" +#include "nt4ga_adapter.h" +#include "ntos_drv.h" + +struct adapter_ops { +int (*init)(struct adapter_info_s *p_adapter_info); +int (*deinit)(struct adapter_info_s *p_adapter_info); + +int (*show_info)(struct adapter_info_s *p_adapter_info,FILE *pfh); +}; + +void register_adapter_ops (const struct adapter_ops *ops); +const struct adapter_ops *get_adapter_ops (void ); +void adapter_init (void ); + + +#endif /* __NTNIC_MOD_REG_H__ */
Signature · 1 line
2.45.0
PATCH v4 9/23 net/ntnic: add registers and FPGA model for NapaTech NIC
In reply to Serhii IliushykThe NTNIC PMD does not rely on a kernel space Napatech driver, thus all defines related to the register layout is part of the PMD code, which will be added in later commits.
--- drivers/net/ntnic/include/fpga_model.h | 104 ++ drivers/net/ntnic/meson.build | 4 + .../net/ntnic/nthw/model/nthw_fpga_model.c | 1194 ++++++++++++++++ .../net/ntnic/nthw/model/nthw_fpga_model.h | 245 ++++ drivers/net/ntnic/nthw/nthw_register.h | 21 + .../supported/nthw_fpga_9563_055_039_0000.c | 1233 +++++++++++++++++ .../nthw/supported/nthw_fpga_instances.c | 6 + .../nthw/supported/nthw_fpga_instances.h | 7 + .../ntnic/nthw/supported/nthw_fpga_mod_defs.h | 36 + .../nthw/supported/nthw_fpga_mod_str_map.c | 21 + .../nthw/supported/nthw_fpga_mod_str_map.h | 11 + .../nthw/supported/nthw_fpga_param_defs.h | 232 ++++ .../ntnic/nthw/supported/nthw_fpga_reg_defs.h | 35 + .../nthw/supported/nthw_fpga_reg_defs_gfg.h | 126 ++ .../nthw/supported/nthw_fpga_reg_defs_gmf.h | 68 + .../supported/nthw_fpga_reg_defs_gpio_phy.h | 48 + .../nthw/supported/nthw_fpga_reg_defs_hif.h | 79 ++ .../nthw/supported/nthw_fpga_reg_defs_i2cm.h | 38 + .../nthw/supported/nthw_fpga_reg_defs_iic.h | 96 ++ .../supported/nthw_fpga_reg_defs_mac_pcs.h | 298 ++++ .../supported/nthw_fpga_reg_defs_pci_rd_tg.h | 37 + .../supported/nthw_fpga_reg_defs_pci_wr_tg.h | 40 + .../nthw/supported/nthw_fpga_reg_defs_pcie3.h | 281 ++++ .../nthw/supported/nthw_fpga_reg_defs_rac.h | 72 + .../supported/nthw_fpga_reg_defs_rst9563.h | 59 + .../nthw/supported/nthw_fpga_reg_defs_sdc.h | 44 + drivers/net/ntnic/ntnic_ethdev.c | 1 + 27 files changed, 4436 insertions(+) create mode 100644 drivers/net/ntnic/include/fpga_model.h create mode 100644 drivers/net/ntnic/nthw/model/nthw_fpga_model.c create mode 100644 drivers/net/ntnic/nthw/model/nthw_fpga_model.h create mode 100644 drivers/net/ntnic/nthw/nthw_register.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_instances.c create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_instances.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.c create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_param_defs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gfg.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gmf.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_hif.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_i2cm.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_iic.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_rd_tg.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_wr_tg.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcie3.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rac.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rst9563.h create mode 100644 drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_sdc.h
drivers/net/ntnic/include/fpga_model.h new file +104 -0
@@ -0,0 +1,104 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef _FPGA_MODEL_H_ +#define _FPGA_MODEL_H_ + +#include <unistd.h> +#include <stdint.h> +#include <inttypes.h> + +typedef uint32_t nthw_id_t ; + +enum nthw_fpga_bus_type { +NTHW_FPGA_BUS_TYPE_UNKNOWN = +0 ,/* Unknown/uninitialized - keep this as the first enum element */ +NTHW_FPGA_BUS_TYPE_BAR , +NTHW_FPGA_BUS_TYPE_PCI , +NTHW_FPGA_BUS_TYPE_CCIP , +NTHW_FPGA_BUS_TYPE_RAB0 , +NTHW_FPGA_BUS_TYPE_RAB1 , +NTHW_FPGA_BUS_TYPE_RAB2 , +NTHW_FPGA_BUS_TYPE_NMB , +NTHW_FPGA_BUS_TYPE_NDM , +NTHW_FPGA_BUS_TYPE_SPI0 , +NTHW_FPGA_BUS_TYPE_SPI =NTHW_FPGA_BUS_TYPE_SPI0 , +}; + +typedef enum nthw_fpga_bus_type nthw_fpga_bus_type_e ; + +enum nthw_fpga_register_type { +NTHW_FPGA_REG_TYPE_UNKNOWN = +0 ,/* Unknown/uninitialized - keep this as the first enum element */ +NTHW_FPGA_REG_TYPE_RW , +NTHW_FPGA_REG_TYPE_RO , +NTHW_FPGA_REG_TYPE_WO , +NTHW_FPGA_REG_TYPE_RC1 , +NTHW_FPGA_REG_TYPE_MIXED , +}; + +typedef enum nthw_fpga_register_type nthw_fpga_register_type_e ; + +struct nthw_fpga_field_init { +nthw_id_t id; +uint16_t bw; +uint16_t low; +uint64_t reset_val; +}; + +typedef struct nthw_fpga_field_init nthw_fpga_field_init_s ; + +struct nthw_fpga_register_init { +nthw_id_t id; +uint32_t addr_rel; +uint16_t bw; +nthw_fpga_register_type_e type; +uint64_t reset_val; +int nb_fields; +struct nthw_fpga_field_init *fields; +}; + +typedef struct nthw_fpga_register_init nthw_fpga_register_init_s ; + +struct nthw_fpga_module_init { +nthw_id_t id; +int instance; +nthw_id_t def_id; +int major_version; +int minor_version; +nthw_fpga_bus_type_e bus_id; +uint32_t addr_base; +int nb_registers; +struct nthw_fpga_register_init *registers; +}; + +typedef struct nthw_fpga_module_init nthw_fpga_module_init_s ; + +struct nthw_fpga_prod_param { +const nthw_id_t id; +const int value; +}; + +typedef struct nthw_fpga_prod_param nthw_fpga_prod_param_s ; + +struct nthw_fpga_prod_init { +int fpga_item_id; +int fpga_product_id; +int fpga_version; +int fpga_revision; +int fpga_patch_no; +int fpga_build_no; +uint32_t fpga_build_time; +int nb_prod_params; +struct nthw_fpga_prod_param *product_params; +int nb_modules; +struct nthw_fpga_module_init *modules; +}; + +typedef struct nthw_fpga_prod_init nthw_fpga_prod_init_s ; + +#endif /* _FPGA_MODEL_H_ */ + +/* EOF */
drivers/net/ntnic/meson.build +4 -0
@@ -19,11 +19,15 @@ includes = [ include_directories('ntlog/include'), include_directories('ntutil/include'), include_directories('nthw'), + include_directories('nthw/supported'), ] # all sources sources = files( 'adapter/nt4ga_adapter.c', + 'nthw/supported/nthw_fpga_9563_055_039_0000.c', + 'nthw/supported/nthw_fpga_instances.c', + 'nthw/supported/nthw_fpga_mod_str_map.c', 'nthw/nthw_platform.c', 'ntlog/ntlog.c', 'ntutil/nt_util.c',
drivers/net/ntnic/nthw/model/nthw_fpga_model.c new file +1194 -0
1,194 lines not on this page · raw message
drivers/net/ntnic/nthw/model/nthw_fpga_model.h new file +245 -0
245 lines not on this page · raw message
drivers/net/ntnic/nthw/nthw_register.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef NTHW_REGISTER_H_ +#define NTHW_REGISTER_H_ + +#include <unistd.h> +#include <stdint.h> +#include <stdbool.h> +#include <inttypes.h> + + +#include "fpga_model.h" + +#include "nthw_fpga_mod_defs.h" +#include "nthw_fpga_param_defs.h" +#include "nthw_fpga_reg_defs.h" + +#endif /* NTHW_REGISTER_H_ */
drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_039_0000.c new file +1233 -0
1,233 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_instances.c new file +6 -0
@@ -0,0 +1,6 @@ + + +#include "nthw_fpga_instances.h" +nthw_fpga_prod_init_s *nthw_fpga_instances[] = { &nthw_fpga_9563_055_039_0000,NULL }; + +/* EOF */
drivers/net/ntnic/nthw/supported/nthw_fpga_instances.h new file +7 -0
@@ -0,0 +1,7 @@ + + +#include "fpga_model.h" +extern nthw_fpga_prod_init_s *nthw_fpga_instances[]; +extern nthw_fpga_prod_init_s nthw_fpga_9563_055_039_0000; + +/* EOF */
drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h new file +36 -0
@@ -0,0 +1,36 @@ +/* +* nthw_fpga_mod_defs.h +* +* Auto-generated file - do *NOT* edit +* +*/ + +#ifndef _NTHW_FPGA_MOD_DEFS_H_ +#define _NTHW_FPGA_MOD_DEFS_H_ + +#define MOD_UNKNOWN (0L)/* Unknown/uninitialized - keep this as the first element */ +#define MOD_GFG (0xfc423807UL) +#define MOD_GMF (0x68b1d15aUL) +#define MOD_GPIO_PHY (0xbbe81659UL) +#define MOD_HIF (0x7815363UL) +#define MOD_I2CM (0x93bc7780UL) +#define MOD_IIC (0x7629cddbUL) +#define MOD_MAC_PCS (0x7abe24c7UL) +#define MOD_PCIE3 (0xfbc48c18UL) +#define MOD_PCI_RD_TG (0x9ad9eed2UL) +#define MOD_PCI_WR_TG (0x274b69e1UL) +#define MOD_RAC (0xae830b42UL) +#define MOD_RST9563 (0x385d6d1dUL) +#define MOD_SDC (0xd2369530UL) +#define MOD_IDX_COUNT (14) + +/* aliases - only aliases go below this point */ +#endif /* _NTHW_FPGA_MOD_DEFS_H_ */ + +/* +* Auto-generated file - do *NOT* edit +*/ + +/* +* EOF +*/
drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.c new file +21 -0
@@ -0,0 +1,21 @@ + + +#include "nthw_fpga_mod_str_map.h" +const struct nthw_fpga_mod_str_s sa_nthw_fpga_mod_str_map[] = { + {MOD_GFG ,"GFG" }, + {MOD_GMF ,"GMF" }, + {MOD_GPIO_PHY ,"GPIO_PHY" }, + {MOD_HIF ,"HIF" }, + {MOD_I2CM ,"I2CM" }, + {MOD_IIC ,"IIC" }, + {MOD_MAC_PCS ,"MAC_PCS" }, + {MOD_PCIE3 ,"PCIE3" }, + {MOD_PCI_RD_TG ,"PCI_RD_TG" }, + {MOD_PCI_WR_TG ,"PCI_WR_TG" }, + {MOD_RAC ,"RAC" }, + {MOD_RST9563 ,"RST9563" }, + {MOD_SDC ,"SDC" }, + {0UL ,NULL } +}; + +/* EOF */
drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.h new file +11 -0
@@ -0,0 +1,11 @@ + + +#include "nthw_fpga_mod_defs.h" +#include "fpga_model.h" +struct nthw_fpga_mod_str_s { +const nthw_id_t a; +const char *b; +}; +extern const struct nthw_fpga_mod_str_s sa_nthw_fpga_mod_str_map[]; + +/* EOF */
drivers/net/ntnic/nthw/supported/nthw_fpga_param_defs.h new file +232 -0
107 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs.h new file +35 -0
Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gfg.h new file +126 -0
126 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gmf.h new file +68 -0
68 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_gpio_phy.h new file +48 -0
48 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_hif.h new file +79 -0
79 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_i2cm.h new file +38 -0
Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_iic.h new file +96 -0
96 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_mac_pcs.h new file +298 -0
298 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_rd_tg.h new file +37 -0
Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pci_wr_tg.h new file +40 -0
Lines of this file are not shown. View the raw message.
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_pcie3.h new file +281 -0
281 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rac.h new file +72 -0
72 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_rst9563.h new file +59 -0
59 lines not on this page · raw message
drivers/net/ntnic/nthw/supported/nthw_fpga_reg_defs_sdc.h new file +44 -0
44 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.45.0
Part of the diff is not shown here. View the raw message.
PATCH v4 10/23 net/ntnic: add core platform functionality
In reply to Serhii IliushykAdd ntnic platform interfaces for FPGA registers
--- drivers/net/ntnic/meson.build | 1 + .../net/ntnic/nthw/core/include/nthw_core.h | 16 + .../net/ntnic/nthw/core/include/nthw_hif.h | 151 ++++ .../net/ntnic/nthw/core/include/nthw_iic.h | 100 +++ .../net/ntnic/nthw/core/include/nthw_pcie3.h | 96 +++ drivers/net/ntnic/nthw/core/nthw_hif.c | 312 +++++++ drivers/net/ntnic/nthw/core/nthw_iic.c | 527 ++++++++++++ drivers/net/ntnic/nthw/core/nthw_pcie3.c | 259 ++++++ drivers/net/ntnic/nthw/nthw_drv.h | 3 +- drivers/net/ntnic/nthw/nthw_rac.c | 785 ++++++++++++++++++ drivers/net/ntnic/nthw/nthw_rac.h | 153 ++++ 11 files changed, 2401 insertions(+), 2 deletions(-) create mode 100644 drivers/net/ntnic/nthw/core/include/nthw_core.h create mode 100644 drivers/net/ntnic/nthw/core/include/nthw_hif.h create mode 100644 drivers/net/ntnic/nthw/core/include/nthw_iic.h create mode 100644 drivers/net/ntnic/nthw/core/include/nthw_pcie3.h create mode 100644 drivers/net/ntnic/nthw/core/nthw_hif.c create mode 100644 drivers/net/ntnic/nthw/core/nthw_iic.c create mode 100644 drivers/net/ntnic/nthw/core/nthw_pcie3.c create mode 100644 drivers/net/ntnic/nthw/nthw_rac.c create mode 100644 drivers/net/ntnic/nthw/nthw_rac.h
drivers/net/ntnic/meson.build +1 -0
@@ -18,6 +18,7 @@ includes = [ include_directories('include'), include_directories('ntlog/include'), include_directories('ntutil/include'), + include_directories('nthw/core/include'), include_directories('nthw'), include_directories('nthw/supported'), ]
drivers/net/ntnic/nthw/core/include/nthw_core.h new file +16 -0
@@ -0,0 +1,16 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef __NTHW_CORE_H__ +#define __NTHW_CORE_H__ + +#include <stdlib.h> +#include <string.h> +#include <stdint.h> + +#include "nthw_platform_drv.h" + + +#endif /* __NTHW_CORE_H__ */
drivers/net/ntnic/nthw/core/include/nthw_hif.h new file +151 -0
151 lines not on this page · raw message
drivers/net/ntnic/nthw/core/include/nthw_iic.h new file +100 -0
100 lines not on this page · raw message
drivers/net/ntnic/nthw/core/include/nthw_pcie3.h new file +96 -0
96 lines not on this page · raw message
drivers/net/ntnic/nthw/core/nthw_hif.c new file +312 -0
312 lines not on this page · raw message
drivers/net/ntnic/nthw/core/nthw_iic.c new file +527 -0
527 lines not on this page · raw message
drivers/net/ntnic/nthw/core/nthw_pcie3.c new file +259 -0
259 lines not on this page · raw message
drivers/net/ntnic/nthw/nthw_drv.h +1 -2
@@ -6,8 +6,7 @@ #ifndef __NTHW_DRV_H__ #define __NTHW_DRV_H__ -#include <stddef.h> -#include "nthw_platform_drv.h" +#include "nthw_core.h" typedef enum nt_meta_port_type_e { PORT_TYPE_PHYSICAL,
drivers/net/ntnic/nthw/nthw_rac.c new file +785 -0
785 lines not on this page · raw message
drivers/net/ntnic/nthw/nthw_rac.h new file +153 -0
153 lines not on this page · raw message
Signature · 1 line
2.45.0
PATCH v4 11/23 net/ntnic: add FPGA initialization functionality
In reply to Serhii IliushykEnable FPGA initalization
--- drivers/net/ntnic/adapter/nt4ga_adapter.c | 52 +++- drivers/net/ntnic/meson.build | 7 + .../net/ntnic/nthw/core/include/nthw_core.h | 4 + .../net/ntnic/nthw/core/include/nthw_fpga.h | 22 ++ drivers/net/ntnic/nthw/core/nthw_fpga.c | 222 ++++++++++++++++++ drivers/net/ntnic/nthw/nthw_drv.h | 1 + drivers/net/ntnic/nthw/nthw_register.h | 1 + drivers/net/ntnic/ntnic_ethdev.c | 39 ++- drivers/net/ntnic/ntnic_mod_reg.h | 1 + 9 files changed, 345 insertions(+), 4 deletions(-) create mode 100644 drivers/net/ntnic/nthw/core/include/nthw_fpga.h create mode 100644 drivers/net/ntnic/nthw/core/nthw_fpga.c
drivers/net/ntnic/adapter/nt4ga_adapter.c +49 -3
@@ -6,7 +6,7 @@#include <rte_thread.h> #include "ntlog.h" -#include "nt_util.h" +#include "nthw_fpga.h" #include "ntnic_mod_reg.h" static int nt4ga_adapter_show_info (struct adapter_info_s *p_adapter_info,FILE *pfh)
@@ -15,6 +15,7 @@ static int nt4ga_adapter_show_info(struct adapter_info_s *p_adapter_info, FILE *const char *const p_adapter_id_str = p_adapter_info->mp_adapter_id_str;fpga_info_t *p_fpga_info = &p_adapter_info->fpga_info;hw_info_t *p_hw_info = &p_adapter_info->hw_info; +mcu_info_t *mcu_info = &p_adapter_info->fpga_info.mcu_info;char a_pci_ident_str[32 ]; snprintf(a_pci_ident_str, sizeof(a_pci_ident_str), PCIIDENT_PRINT_STR,
@@ -37,7 +38,8 @@ static int nt4ga_adapter_show_info(struct adapter_info_s *p_adapter_info, FILE *fprintf (pfh,"%s: Hw=0x%02X_rev%d: %s\n" , p_adapter_id_str, p_hw_info->hw_platform_id, p_fpga_info->nthw_hw_info.hw_id, p_fpga_info->nthw_hw_info.hw_plat_id_str);fprintf (pfh,"%s: MCU Details:\n" , p_adapter_id_str); - +fprintf (pfh,"%s: HasMcu=%d McuType=%d McuDramSize=%d\n" , p_adapter_id_str, + mcu_info->mb_has_mcu, mcu_info->mn_mcu_type, mcu_info->mn_mcu_dram_size);return 0 ; }
@@ -49,6 +51,13 @@ static int nt4ga_adapter_init(struct adapter_info_s *p_adapter_info)fpga_info_t *fpga_info = &p_adapter_info->fpga_info;hw_info_t *p_hw_info = &p_adapter_info->hw_info; +/* +* IMPORTANT: Most variables cannot be determined before nthw fpga model is instantiated +* (nthw_fpga_init()) +*/ +int n_phy_ports =-1 ; +int res =-1 ; +nthw_fpga_t *p_fpga =NULL ; p_hw_info->n_nthw_adapter_id =nthw_platform_get_nthw_adapter_id (p_hw_info->pci_device_id);
@@ -102,6 +111,39 @@ static int nt4ga_adapter_init(struct adapter_info_s *p_adapter_info) } } + res =nthw_fpga_init (&p_adapter_info->fpga_info); + +if (res) { +NT_LOG_DBGX (ERR ,NTNIC ,"%s: %s: FPGA=%04d res=x%08X\n" , p_adapter_id_str, + p_dev_name, fpga_info->n_fpga_prod_id, res); +return res; + } + +assert (fpga_info); + p_fpga = fpga_info->mp_fpga; +assert (p_fpga); + n_phy_ports = fpga_info->n_phy_ports; +assert (n_phy_ports >=1 ); + + { +assert (fpga_info->n_fpga_prod_id >0 ); + +switch (fpga_info->n_fpga_prod_id) { +default : +NT_LOG (ERR ,NTNIC ,"Unsupported FPGA product: %04d\n" , + fpga_info->n_fpga_prod_id); + res =-1 ; +break ; + } + +if (res) { +NT_LOG_DBGX (ERR ,NTNIC ,"%s: %s: FPGA=%04d res=x%08X\n" , + p_adapter_id_str, p_dev_name, + fpga_info->n_fpga_prod_id, res); +return res; + } + } +return 0 ; }
@@ -109,8 +151,12 @@ static int nt4ga_adapter_deinit(struct adapter_info_s *p_adapter_info) {fpga_info_t *fpga_info = &p_adapter_info->fpga_info;int i; -int res =-1 ; +int res; + +nthw_fpga_shutdown (&p_adapter_info->fpga_info); +/* Rac rab reset flip flop */ + res =nthw_rac_rab_reset (fpga_info->mp_nthw_rac);/* Free adapter port ident strings */ for (i =0 ; i < fpga_info->n_phy_ports; i++) {
drivers/net/ntnic/meson.build +7 -0
@@ -21,6 +21,7 @@ includes = [ include_directories('nthw/core/include'), include_directories('nthw'), include_directories('nthw/supported'), + include_directories('nthw/model'), ] # all sources
@@ -29,7 +30,13 @@ sources = files( 'nthw/supported/nthw_fpga_9563_055_039_0000.c', 'nthw/supported/nthw_fpga_instances.c', 'nthw/supported/nthw_fpga_mod_str_map.c', + 'nthw/core/nthw_fpga.c', + 'nthw/core/nthw_hif.c', + 'nthw/core/nthw_iic.c', + 'nthw/core/nthw_pcie3.c', + 'nthw/model/nthw_fpga_model.c', 'nthw/nthw_platform.c', + 'nthw/nthw_rac.c', 'ntlog/ntlog.c', 'ntutil/nt_util.c', 'ntnic_mod_reg.c',
drivers/net/ntnic/nthw/core/include/nthw_core.h +4 -0
@@ -11,6 +11,10 @@#include <stdint.h> #include "nthw_platform_drv.h" +#include "nthw_fpga_model.h" +#include "nthw_hif.h" +#include "nthw_pcie3.h" +#include "nthw_iic.h" #endif /* __NTHW_CORE_H__ */
drivers/net/ntnic/nthw/core/include/nthw_fpga.h new file +22 -0
@@ -0,0 +1,22 @@ +/* +* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2023 Napatech A/S +*/ + +#ifndef __NTHW_FPGA_H__ +#define __NTHW_FPGA_H__ + +#include "nthw_drv.h" + +#include "nthw_fpga_model.h" + +#include "nthw_rac.h" +#include "nthw_iic.h" + +int nthw_fpga_init (struct fpga_info_s *p_fpga_info); +int nthw_fpga_shutdown (struct fpga_info_s *p_fpga_info); + +int nthw_fpga_get_param_info (struct fpga_info_s *p_fpga_info,nthw_fpga_t *p_fpga); + + +#endif /* __NTHW_FPGA_H__ */
drivers/net/ntnic/nthw/core/nthw_fpga.c new file +222 -0
222 lines not on this page · raw message
drivers/net/ntnic/nthw/nthw_drv.h +1 -0
@@ -22,6 +22,7 @@ enum fpga_info_profile { };typedef struct mcu_info_s { +bool mb_has_mcu;int mn_mcu_type;int mn_mcu_dram_size; }mcu_info_t ;
drivers/net/ntnic/nthw/nthw_register.h +1 -0
@@ -11,6 +11,7 @@#include <stdbool.h> #include <inttypes.h> +#include "nthw_fpga_model.h" #include "fpga_model.h"
drivers/net/ntnic/ntnic_ethdev.c +38 -1
@@ -197,12 +197,33 @@ eth_dev_close(struct rte_eth_dev *eth_dev)return 0 ; } +static int +eth_fw_version_get (struct rte_eth_dev *eth_dev,char *fw_version,size_t fw_size) +{ +struct pmd_internals *internals = (struct pmd_internals *)eth_dev->data->dev_private; + +fpga_info_t *fpga_info = &internals->p_drv->ntdrv.adapter_info.fpga_info; +const int length =snprintf (fw_version, fw_size,"%03d-%04d-%02d-%02d" , + fpga_info->n_fpga_type_id, fpga_info->n_fpga_prod_id, + fpga_info->n_fpga_ver_id, fpga_info->n_fpga_rev_id); + +if ((size_t )length < fw_size) { +/* We have space for the version string */ +return 0 ; + + }else { +/* We do not have space for the version string -return the needed space */ +return length +1 ; + } +} +static struct eth_dev_ops nthw_eth_dev_ops = { .dev_configure = eth_dev_configure, .dev_start = eth_dev_start, .dev_stop = eth_dev_stop, .dev_close = eth_dev_close, .dev_infos_get = eth_dev_infos_get, + .fw_version_get = eth_fw_version_get, }; static int
@@ -219,6 +240,7 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev)struct drv_s *p_drv;ntdrv_4ga_t *p_nt_drv; +fpga_info_t *fpga_info;hw_info_t *p_hw_info; (void )p_hw_info;uint32_t n_port_mask =-1 ;/* All ports enabled by default */
@@ -252,6 +274,7 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev)/* context */ p_nt_drv = &p_drv->ntdrv; + fpga_info = &p_nt_drv->adapter_info.fpga_info; p_hw_info = &p_nt_drv->adapter_info.hw_info; p_drv->p_dev = pci_dev;
@@ -262,6 +285,11 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev) p_nt_drv->adapter_info.n_rx_host_buffers = nb_rx_queues; p_nt_drv->adapter_info.n_tx_host_buffers = nb_tx_queues; + fpga_info->bar0_addr = (void *)pci_dev->mem_resource[0 ].addr; + fpga_info->bar0_size = pci_dev->mem_resource[0 ].len; + fpga_info->numa_node = pci_dev->device.numa_node; + fpga_info->pciident = p_nt_drv->pciident; + fpga_info->adapter_no = p_drv->adapter_no; p_nt_drv->adapter_info.hw_info.pci_class_id = pci_dev->id.class_id; p_nt_drv->adapter_info.hw_info.pci_vendor_id = pci_dev->id.vendor_id;
@@ -298,6 +326,15 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev)/* mp_adapter_id_str is initialized after nt4ga_adapter_init(p_nt_drv) */ const char *const p_adapter_id_str = p_nt_drv->adapter_info.mp_adapter_id_str; (void )p_adapter_id_str; +NT_LOG (DBG ,NTNIC , +"%s: %s: AdapterPCI=" PCIIDENT_PRINT_STR " Hw=0x%02X_rev%d PhyPorts=%d\n" , + (pci_dev->name[0 ] ? pci_dev->name :"NA" ), p_adapter_id_str, +PCIIDENT_TO_DOMAIN (p_nt_drv->adapter_info.fpga_info.pciident), +PCIIDENT_TO_BUSNR (p_nt_drv->adapter_info.fpga_info.pciident), +PCIIDENT_TO_DEVNR (p_nt_drv->adapter_info.fpga_info.pciident), +PCIIDENT_TO_FUNCNR (p_nt_drv->adapter_info.fpga_info.pciident), + p_hw_info->hw_platform_id, fpga_info->nthw_hw_info.hw_id, + fpga_info->n_phy_ports); }else { NT_LOG_DBGX(ERR, NTNIC, "%s: error=%d\n",
@@ -305,7 +342,7 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev)return -1 ; } - n_phy_ports =0 ; + n_phy_ports = fpga_info->n_phy_ports;for (int n_intf_no =0 ; n_intf_no < n_phy_ports; n_intf_no++) {const char *const p_port_id_str = p_nt_drv->adapter_info.mp_port_id_str[n_intf_no];
drivers/net/ntnic/ntnic_mod_reg.h +1 -0
@@ -7,6 +7,7 @@#define __NTNIC_MOD_REG_H__#include <stdint.h> +#include "nthw_fpga_model.h" #include "nthw_platform_drv.h" #include "nthw_drv.h" #include "nt4ga_adapter.h"
Signature · 1 line
2.45.0