qcacmn: Add more HAL APIs in hal_api_mon.h

Add the following macros:
1. HAL_REO_CONFIG
2. HAL_RX_MSDU_DESC_INFO_GET
3. HAL_RX_LINK_DESC_MSDU0_PTR

Add the relevant function pointers to
retrieve the descriptor info from the
above mentioned macros based on a
given chipset.

Change-Id: If44ae3d91397f1b1b0c36a49ce56a2c5e719434e
CRs-Fixed: 2522133
This commit is contained in:
Venkata Sharath Chandra Manchala
2019-09-23 17:16:51 -07:00
committed by nshrivas
父節點 b7d2df16b5
當前提交 222b2539cb
共有 15 個文件被更改,包括 449 次插入70 次删除

查看文件

@@ -803,6 +803,46 @@ hal_rx_get_ppdu_id_8074v2(uint8_t *buf)
return HAL_RX_GET_PPDU_ID(buf);
}
/**
* hal_reo_config_8074v2(): Set reo config parameters
* @soc: hal soc handle
* @reg_val: value to be set
* @reo_params: reo parameters
*
* Return: void
*/
static void
hal_reo_config_8074v2(struct hal_soc *soc,
uint32_t reg_val,
struct hal_reo_params *reo_params)
{
HAL_REO_R0_CONFIG(soc, reg_val, reo_params);
}
/**
* hal_rx_msdu_desc_info_get_ptr_8074v2() - Get msdu desc info ptr
* @msdu_details_ptr - Pointer to msdu_details_ptr
*
* Return - Pointer to rx_msdu_desc_info structure.
*
*/
static void *hal_rx_msdu_desc_info_get_ptr_8074v2(void *msdu_details_ptr)
{
return HAL_RX_MSDU_DESC_INFO_GET(msdu_details_ptr);
}
/**
* hal_rx_link_desc_msdu0_ptr_8074v2 - Get pointer to rx_msdu details
* @link_desc - Pointer to link desc
*
* Return - Pointer to rx_msdu_details structure
*
*/
static void *hal_rx_link_desc_msdu0_ptr_8074v2(void *link_desc)
{
return HAL_RX_LINK_DESC_MSDU0_PTR(link_desc);
}
struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
/* init and setup */
@@ -836,8 +876,8 @@ struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
hal_rx_mpdu_start_tid_get_8074v2,
hal_rx_msdu_start_reception_type_get_8074v2,
hal_rx_msdu_end_da_idx_get_8074v2,
hal_rx_msdu_desc_info_get_ptr_generic,
hal_rx_link_desc_msdu0_ptr_generic,
hal_rx_msdu_desc_info_get_ptr_8074v2,
hal_rx_link_desc_msdu0_ptr_8074v2,
hal_reo_status_get_header_8074v2,
hal_rx_status_get_tlv_info_generic,
hal_rx_wbm_err_info_get_generic,
@@ -881,6 +921,7 @@ struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
hal_rx_get_mac_addr2_valid_8074v2,
hal_rx_get_filter_category_8074v2,
hal_rx_get_ppdu_id_8074v2,
hal_reo_config_8074v2,
};
struct hal_hw_srng_config hw_srng_table_8074v2[] = {