+#define ULP_IDENTS_INVALID ((uint16_t)0xffff)
+
+/*
+ * The cache table opcode is used to convey informat from the cache handler
+ * to the tcam handler. The opcodes do the following:
+ * NORMAL - tcam should process all instructions as normal
+ * SKIP - tcam is using the cached entry and doesn't need to process the
+ * instruction.
+ * ALLOC - tcam needs to allocate the tcam index and store in the cache entry
+ */
+enum bnxt_ulp_cache_table_opc {
+ BNXT_ULP_MAPPER_TCAM_TBL_OPC_NORMAL,
+ BNXT_ULP_MAPPER_TCAM_TBL_OPC_CACHE_SKIP,
+ BNXT_ULP_MAPPER_TCAM_TBL_OPC_CACHE_ALLOC
+};
+
+struct bnxt_ulp_mapper_cache_entry {
+ uint32_t ref_count;
+ uint16_t tcam_idx;
+ uint16_t idents[BNXT_ULP_CACHE_TBL_IDENT_MAX_NUM];
+ uint8_t ident_types[BNXT_ULP_CACHE_TBL_IDENT_MAX_NUM];
+};
+
+struct bnxt_ulp_mapper_glb_resource_entry {
+ enum bnxt_ulp_resource_func resource_func;
+ uint32_t resource_type; /* TF_ enum type */
+ uint64_t resource_hndl;
+};
+
+struct bnxt_ulp_mapper_data {
+ struct bnxt_ulp_mapper_glb_resource_entry
+ glb_res_tbl[TF_DIR_MAX][BNXT_ULP_GLB_RESOURCE_TBL_MAX_SZ];
+ struct bnxt_ulp_mapper_cache_entry
+ *cache_tbl[BNXT_ULP_CACHE_TBL_MAX_SZ];
+};
+