qcacmn: Fix REO reinjection path in hamilton DP

Add HAL APIs to fix REO reinjection path in hamilton DP

Change-Id: I73c6ec0aeb2f6d4bc72b366e22e9bc826f852426
CRs-Fixed: 3058549
This commit is contained in:
Ananya Gupta
2021-10-19 12:45:16 +05:30
committed by Madan Koyyalamudi
부모 6d6881fff4
커밋 122bc19864
8개의 변경된 파일123개의 추가작업 그리고 8개의 파일을 삭제

파일 보기

@@ -697,6 +697,50 @@ static inline uint32_t hal_rx_tlv_mic_err_get_be(uint8_t *buf)
return mic_err;
}
/**
* hal_get_reo_ent_desc_qdesc_addr_be(): API to get qdesc address of reo
* entrance ring desc
*
* @desc: reo entrance ring descriptor
* Return: qdesc adrress
*/
static inline uint8_t *hal_get_reo_ent_desc_qdesc_addr_be(uint8_t *desc)
{
return desc + REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET;
}
/**
* hal_rx_get_qdesc_addr_be(): API to get qdesc address of reo
* entrance ring desc
*
* @dst_ring_desc: reo dest ring descriptor (used for Lithium DP)
* @buf: pointer to the start of RX PKT TLV headers
* Return: qdesc adrress in reo destination ring buffer
*/
static inline uint8_t *hal_rx_get_qdesc_addr_be(uint8_t *dst_ring_desc,
uint8_t *buf)
{
struct rx_pkt_tlvs *rx_pkt_tlvs = (struct rx_pkt_tlvs *)buf;
return (uint8_t *)(&HAL_RX_MPDU_START(rx_pkt_tlvs) +
RX_MPDU_INFO_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET);
}
/**
* hal_set_reo_ent_desc_reo_dest_ind_be(): API to set reo destination
* indication of reo entrance ring desc
*
* @desc: reo ent ring descriptor
* @dst_ind: reo destination indication value
* Return: None
*/
static inline void
hal_set_reo_ent_desc_reo_dest_ind_be(uint8_t *desc, uint32_t dst_ind)
{
HAL_RX_FLD_SET(desc, REO_ENTRANCE_RING,
REO_DESTINATION_INDICATION, dst_ind);
}
/**
* hal_rx_mpdu_sequence_number_get() - Get mpdu sequence number
* @buf: pointer to packet buffer