qcacmn: Core DP RX path changes for WCN7850
Implement core DP rx processing to functions in to corresponding architecture specific be/li rx files. Keep common utility functions in DP common files. Change-Id: I40083e10772fd2b6ce2f1fa9e197f2ad92d0522a CRs-Fixed: 2891021
Šī revīzija ir iekļauta:

revīziju iesūtīja
Rakesh Pillai

vecāks
27d6b43bfb
revīzija
477928661c
@@ -465,23 +465,6 @@ static uint16_t hal_rx_attn_phy_ppdu_id_get_li(uint8_t *buf)
|
||||
return phy_ppdu_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_attn_msdu_done_get_li() - Get msdi done flag from RX TLV
|
||||
* @buf: RX tlv address
|
||||
*
|
||||
* Return: msdu done flag
|
||||
*/
|
||||
static uint32_t hal_rx_attn_msdu_done_get_li(uint8_t *buf)
|
||||
{
|
||||
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
|
||||
struct rx_attention *rx_attn = &pkt_tlvs->attn_tlv.rx_attn;
|
||||
uint32_t msdu_done;
|
||||
|
||||
msdu_done = HAL_RX_ATTN_MSDU_DONE_GET(rx_attn);
|
||||
|
||||
return msdu_done;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_start_msdu_len_get(): API to get the MSDU length
|
||||
* from rx_msdu_start TLV
|
||||
@@ -936,26 +919,6 @@ hal_rx_tlv_csum_err_get_li(uint8_t *rx_tlv_hdr, uint32_t *ip_csum_err,
|
||||
*tcp_udp_csum_err = hal_rx_attn_tcp_udp_cksum_fail_get(rx_tlv_hdr);
|
||||
}
|
||||
|
||||
void hal_rx_mpdu_desc_info_get_li(void *desc_addr,
|
||||
void *mpdu_desc_info_hdl)
|
||||
{
|
||||
struct reo_destination_ring *reo_dst_ring;
|
||||
struct hal_rx_mpdu_desc_info *mpdu_desc_info =
|
||||
(struct hal_rx_mpdu_desc_info *)mpdu_desc_info_hdl;
|
||||
uint32_t *mpdu_info;
|
||||
|
||||
reo_dst_ring = (struct reo_destination_ring *)desc_addr;
|
||||
|
||||
mpdu_info = (uint32_t *)&reo_dst_ring->rx_mpdu_desc_info_details;
|
||||
|
||||
mpdu_desc_info->msdu_count = HAL_RX_MPDU_MSDU_COUNT_GET(mpdu_info);
|
||||
mpdu_desc_info->mpdu_seq = HAL_RX_MPDU_SEQUENCE_NUMBER_GET(mpdu_info);
|
||||
mpdu_desc_info->mpdu_flags = HAL_RX_MPDU_FLAGS_GET(mpdu_info);
|
||||
mpdu_desc_info->peer_meta_data =
|
||||
HAL_RX_MPDU_DESC_PEER_META_DATA_GET(mpdu_info);
|
||||
mpdu_desc_info->bar_frame = HAL_RX_MPDU_BAR_FRAME_GET(mpdu_info);
|
||||
}
|
||||
|
||||
static uint8_t hal_rx_err_status_get_li(hal_ring_desc_t rx_desc)
|
||||
{
|
||||
return HAL_RX_ERROR_STATUS_GET(rx_desc);
|
||||
|
@@ -1218,6 +1218,44 @@ uint8_t hal_rx_get_rx_more_frag_bit(uint8_t *buf)
|
||||
return frame_ctrl;
|
||||
}
|
||||
|
||||
static inline
|
||||
void hal_rx_mpdu_desc_info_get_li(void *desc_addr,
|
||||
void *mpdu_desc_info_hdl)
|
||||
{
|
||||
struct reo_destination_ring *reo_dst_ring;
|
||||
struct hal_rx_mpdu_desc_info *mpdu_desc_info =
|
||||
(struct hal_rx_mpdu_desc_info *)mpdu_desc_info_hdl;
|
||||
uint32_t *mpdu_info;
|
||||
|
||||
reo_dst_ring = (struct reo_destination_ring *)desc_addr;
|
||||
|
||||
mpdu_info = (uint32_t *)&reo_dst_ring->rx_mpdu_desc_info_details;
|
||||
|
||||
mpdu_desc_info->msdu_count = HAL_RX_MPDU_MSDU_COUNT_GET(mpdu_info);
|
||||
mpdu_desc_info->mpdu_seq = HAL_RX_MPDU_SEQUENCE_NUMBER_GET(mpdu_info);
|
||||
mpdu_desc_info->mpdu_flags = HAL_RX_MPDU_FLAGS_GET(mpdu_info);
|
||||
mpdu_desc_info->peer_meta_data =
|
||||
HAL_RX_MPDU_DESC_PEER_META_DATA_GET(mpdu_info);
|
||||
mpdu_desc_info->bar_frame = HAL_RX_MPDU_BAR_FRAME_GET(mpdu_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_attn_msdu_done_get_li() - Get msdi done flag from RX TLV
|
||||
* @buf: RX tlv address
|
||||
*
|
||||
* Return: msdu done flag
|
||||
*/
|
||||
static inline uint32_t hal_rx_attn_msdu_done_get_li(uint8_t *buf)
|
||||
{
|
||||
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
|
||||
struct rx_attention *rx_attn = &pkt_tlvs->attn_tlv.rx_attn;
|
||||
uint32_t msdu_done;
|
||||
|
||||
msdu_done = HAL_RX_ATTN_MSDU_DONE_GET(rx_attn);
|
||||
|
||||
return msdu_done;
|
||||
}
|
||||
|
||||
#define HAL_RX_MSDU_START_NSS_GET(_rx_msdu_start) \
|
||||
(_HAL_MS((*_OFFSET_TO_WORD_PTR((_rx_msdu_start), \
|
||||
RX_MSDU_START_5_NSS_OFFSET)), \
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user