net/ice/base: init ptype marker TCAM table for parser
[dpdk.git] / drivers / net / ice / base / ice_parser.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2001-2021 Intel Corporation
3  */
4
5 #ifndef _ICE_PARSER_H_
6 #define _ICE_PARSER_H_
7
8 #include "ice_metainit.h"
9 #include "ice_imem.h"
10 #include "ice_pg_cam.h"
11 #include "ice_bst_tcam.h"
12 #include "ice_ptype_mk.h"
13
14 struct ice_parser {
15         struct ice_hw *hw; /* pointer to the hardware structure */
16
17         /* load data from section ICE_SID_RX_PARSER_IMEM */
18         struct ice_imem_item *imem_table;
19         /* load data from section ICE_SID_RXPARSER_METADATA_INIT */
20         struct ice_metainit_item *mi_table;
21         /* load data from section ICE_SID_RXPARSER_CAM */
22         struct ice_pg_cam_item *pg_cam_table;
23         /* load data from section ICE_SID_RXPARSER_PG_SPILL */
24         struct ice_pg_cam_item *pg_sp_cam_table;
25         /* load data from section ICE_SID_RXPARSER_NOMATCH_CAM */
26         struct ice_pg_nm_cam_item *pg_nm_cam_table;
27         /* load data from section ICE_SID_RXPARSER_NOMATCH_SPILL */
28         struct ice_pg_nm_cam_item *pg_nm_sp_cam_table;
29         /* load data from section ICE_SID_RXPARSER_BOOST_TCAM */
30         struct ice_bst_tcam_item *bst_tcam_table;
31         /* load data from section ICE_SID_LBL_RXPARSER_TMEM */
32         struct ice_lbl_item *bst_lbl_table;
33         /* load data from section ICE_SID_RXPARSER_MARKER_PTYPE */
34         struct ice_ptype_mk_tcam_item *ptype_mk_tcam_table;
35 };
36
37 enum ice_status ice_parser_create(struct ice_hw *hw, struct ice_parser **psr);
38 void ice_parser_destroy(struct ice_parser *psr);
39 #endif /* _ICE_PARSER_H_ */