1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2001-2021 Intel Corporation
8 #define ICE_PG_CAM_TABLE_SIZE 2048
9 #define ICE_PG_SP_CAM_TABLE_SIZE 128
10 #define ICE_PG_NM_CAM_TABLE_SIZE 1024
11 #define ICE_PG_NM_SP_CAM_TABLE_SIZE 64
13 struct ice_pg_cam_key {
25 struct ice_pg_nm_cam_key {
36 struct ice_pg_cam_action {
48 struct ice_pg_cam_item {
50 struct ice_pg_cam_key key;
51 struct ice_pg_cam_action action;
54 struct ice_pg_nm_cam_item {
56 struct ice_pg_nm_cam_key key;
57 struct ice_pg_cam_action action;
60 void ice_pg_cam_dump(struct ice_hw *hw, struct ice_pg_cam_item *item);
61 void ice_pg_nm_cam_dump(struct ice_hw *hw, struct ice_pg_nm_cam_item *item);
63 struct ice_pg_cam_item *ice_pg_cam_table_get(struct ice_hw *hw);
64 struct ice_pg_cam_item *ice_pg_sp_cam_table_get(struct ice_hw *hw);
66 struct ice_pg_nm_cam_item *ice_pg_nm_cam_table_get(struct ice_hw *hw);
67 struct ice_pg_nm_cam_item *ice_pg_nm_sp_cam_table_get(struct ice_hw *hw);
69 struct ice_pg_cam_item *ice_pg_cam_match(struct ice_pg_cam_item *table,
70 int size, struct ice_pg_cam_key *key);
71 struct ice_pg_nm_cam_item *
72 ice_pg_nm_cam_match(struct ice_pg_nm_cam_item *table, int size,
73 struct ice_pg_cam_key *key);
74 #endif /* _ICE_PG_CAM_H_ */