xref: /dpdk/drivers/net/ntnic/include/hw_mod_pdb_v9.h (revision 7d65ee1accfb3ee909f4147971738d824243d161)
1 /*
2  * SPDX-License-Identifier: BSD-3-Clause
3  * Copyright(c) 2023 Napatech A/S
4  */
5 
6 #ifndef _HW_MOD_PDB_V9_H_
7 #define _HW_MOD_PDB_V9_H_
8 
9 #include <stdint.h>
10 
11 struct pdb_v9_rcp_s {
12 	uint32_t descriptor;
13 	uint32_t desc_len;
14 	uint32_t tx_port;
15 	uint32_t tx_ignore;
16 	uint32_t tx_now;
17 	uint32_t crc_overwrite;
18 	uint32_t align;
19 	uint32_t ofs0_dyn;
20 	int32_t ofs0_rel;
21 	uint32_t ofs1_dyn;
22 	int32_t ofs1_rel;
23 	uint32_t ofs2_dyn;
24 	int32_t ofs2_rel;
25 	uint32_t ip_prot_tnl;
26 	uint32_t ppc_hsh;
27 	uint32_t duplicate_en;
28 	uint32_t duplicate_bit;
29 	uint32_t pcap_keep_fcs;	/* only field added to v9 cmp to v7/8 */
30 };
31 
32 struct pdb_v9_config_s {
33 	uint32_t ts_format;
34 	uint32_t port_ofs;
35 };
36 
37 struct hw_mod_pdb_v9_s {
38 	struct pdb_v9_rcp_s *rcp;
39 	struct pdb_v9_config_s *config;
40 };
41 
42 #endif	/* _HW_MOD_PDB_V9_H_ */
43