4b9d0b22cfb1f073b3b644e77451a706b7672638
[dpdk.git] / drivers / net / bnxt / tf_ulp / ulp_template_struct.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2014-2019 Broadcom
3  * All rights reserved.
4  */
5
6 #ifndef _ULP_TEMPLATE_STRUCT_H_
7 #define _ULP_TEMPLATE_STRUCT_H_
8
9 #include <stdint.h>
10 #include "rte_ether.h"
11 #include "rte_icmp.h"
12 #include "rte_ip.h"
13 #include "rte_tcp.h"
14 #include "rte_udp.h"
15 #include "rte_esp.h"
16 #include "rte_sctp.h"
17 #include "rte_flow.h"
18 #include "tf_core.h"
19
20 /* Device specific parameters. */
21 struct bnxt_ulp_device_params {
22         uint8_t                         description[16];
23         uint32_t                        global_fid_enable;
24         enum bnxt_ulp_byte_order        byte_order;
25         uint8_t                         encap_byte_swap;
26         uint32_t                        lfid_entries;
27         uint32_t                        lfid_entry_size;
28         uint64_t                        gfid_entries;
29         uint32_t                        gfid_entry_size;
30         uint64_t                        num_flows;
31         uint32_t                        num_resources_per_flow;
32 };
33
34 /*
35  * The ulp_device_params is indexed by the dev_id.
36  * This table maintains the device specific parameters.
37  */
38 extern struct bnxt_ulp_device_params ulp_device_params[];
39
40 #endif /* _ULP_TEMPLATE_STRUCT_H_ */