qcacmn: DSC-Add search_idx tbl alloc framework

In STA mode ast idx override approach is used. In DSc to use ast idx
Need to configure a search idx register with ast idx and cache set number.

Added needed logic to instantiate search index register and
use it for STA mode in DSC path.

Change-Id: I6b3fb7c01a39b16ff1d473381c6155436fe2b27a
CRs-Fixed: 3375219
This commit is contained in:
Radha Krishna Simha Jiguru
2023-01-07 21:06:44 +05:30
کامیت شده توسط Madan Koyyalamudi
والد 07e72e4e7e
کامیت 2776d767a2
4فایلهای تغییر یافته به همراه52 افزوده شده و 5 حذف شده

مشاهده پرونده

@@ -832,7 +832,7 @@ hal_tx_mcast_mlo_reinject_routing_set(
}
#endif
/*
/**
* hal_reo_config_reo2ppe_dest_info() - Configure reo2ppe dest info
* @hal_soc_hdl: HAL SoC Context
*
@@ -847,7 +847,7 @@ void hal_reo_config_reo2ppe_dest_info(hal_soc_handle_t hal_soc_hdl)
hal_soc->ops->hal_reo_config_reo2ppe_dest_info(hal_soc_hdl);
}
/*
/**
* hal_tx_get_num_ppe_vp_tbl_entries() - Get the total number of VP table
* @hal_soc: HAL SoC Context
*
@@ -861,6 +861,20 @@ uint32_t hal_tx_get_num_ppe_vp_tbl_entries(hal_soc_handle_t hal_soc_hdl)
return hal_soc->ops->hal_tx_get_num_ppe_vp_tbl_entries(hal_soc_hdl);
}
/**
* hal_tx_get_num_ppe_vp_search_idx_tbl_entries() - Get the total number of search idx registers
* @hal_soc: HAL SoC Context
*
* Return: Total number of entries.
*/
static inline
uint32_t hal_tx_get_num_ppe_vp_search_idx_tbl_entries(hal_soc_handle_t hal_soc_hdl)
{
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
return hal_soc->ops->hal_tx_get_num_ppe_vp_search_idx_tbl_entries(hal_soc_hdl);
}
/**
* hal_tx_set_ppe_cmn_cfg()- Set the PPE common config
* @hal_soc: HAL SoC context