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
Cette révision appartient à :

révisé par
nshrivas

Parent
b7d2df16b5
révision
222b2539cb
@@ -18,38 +18,6 @@
|
||||
#ifndef _HAL_GENERIC_API_H_
|
||||
#define _HAL_GENERIC_API_H_
|
||||
|
||||
#define HAL_RX_MSDU_DESC_INFO_GET(msdu_details_ptr) \
|
||||
((struct rx_msdu_desc_info *) \
|
||||
_OFFSET_TO_BYTE_PTR(msdu_details_ptr, \
|
||||
UNIFIED_RX_MSDU_DETAILS_2_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET))
|
||||
/**
|
||||
* hal_rx_msdu_desc_info_get_ptr_generic() - 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_generic(void *msdu_details_ptr)
|
||||
{
|
||||
return HAL_RX_MSDU_DESC_INFO_GET(msdu_details_ptr);
|
||||
}
|
||||
|
||||
|
||||
#define HAL_RX_LINK_DESC_MSDU0_PTR(link_desc) \
|
||||
((struct rx_msdu_details *) \
|
||||
_OFFSET_TO_BYTE_PTR((link_desc),\
|
||||
UNIFIED_RX_MSDU_LINK_8_RX_MSDU_DETAILS_MSDU_0_OFFSET))
|
||||
/**
|
||||
* hal_rx_link_desc_msdu0_ptr_generic - 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_generic(void *link_desc)
|
||||
{
|
||||
return HAL_RX_LINK_DESC_MSDU0_PTR(link_desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_tx_comp_get_status() - TQM Release reason
|
||||
* @hal_desc: completion ring Tx status
|
||||
@@ -1491,18 +1459,7 @@ static void hal_reo_setup_generic(struct hal_soc *soc,
|
||||
reg_val = HAL_REG_READ(soc, HWIO_REO_R0_GENERAL_ENABLE_ADDR(
|
||||
SEQ_WCSS_UMAC_REO_REG_OFFSET));
|
||||
|
||||
reg_val &= ~(HWIO_REO_R0_GENERAL_ENABLE_FRAGMENT_DEST_RING_BMSK |
|
||||
HWIO_REO_R0_GENERAL_ENABLE_AGING_LIST_ENABLE_BMSK |
|
||||
HWIO_REO_R0_GENERAL_ENABLE_AGING_FLUSH_ENABLE_BMSK);
|
||||
|
||||
reg_val |= HAL_SM(HWIO_REO_R0_GENERAL_ENABLE,
|
||||
FRAGMENT_DEST_RING, reo_params->frag_dst_ring) |
|
||||
HAL_SM(HWIO_REO_R0_GENERAL_ENABLE, AGING_LIST_ENABLE, 1) |
|
||||
HAL_SM(HWIO_REO_R0_GENERAL_ENABLE, AGING_FLUSH_ENABLE, 1);
|
||||
|
||||
HAL_REG_WRITE(soc, HWIO_REO_R0_GENERAL_ENABLE_ADDR(
|
||||
SEQ_WCSS_UMAC_REO_REG_OFFSET), reg_val);
|
||||
|
||||
hal_reo_config(soc, reg_val, reo_params);
|
||||
/* Other ring enable bits and REO_ENABLE will be set by FW */
|
||||
|
||||
/* TODO: Setup destination ring mapping if enabled */
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur