|
@@ -1,5 +1,6 @@
|
|
|
/*
|
|
|
* Copyright (c) 2011-2021 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -1018,6 +1019,8 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
qdf_nbuf_t msg;
|
|
|
uint32_t *msg_word;
|
|
|
unsigned int tx_count = 0;
|
|
|
+ uint32_t addr;
|
|
|
+ qdf_mem_info_t *mem_info_t;
|
|
|
|
|
|
pkt = htt_htc_pkt_alloc(pdev);
|
|
|
if (!pkt)
|
|
@@ -1053,13 +1056,14 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
- /* TX COMP RING BASE LO */
|
|
|
HTT_WDI_IPA_CFG_TX_COMP_RING_BASE_ADDR_LO_SET(*msg_word,
|
|
|
(unsigned int)qdf_mem_get_dma_addr(pdev->osdev,
|
|
|
&pdev->ipa_uc_tx_rsc.tx_comp_ring->mem_info));
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
- /* TX COMP RING BASE HI, NONE */
|
|
|
+ mem_info_t = &pdev->ipa_uc_tx_rsc.tx_comp_ring->mem_info;
|
|
|
+ addr = (uint32_t)(qdf_mem_get_dma_addr(pdev->osdev, mem_info_t) >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_TX_COMP_RING_BASE_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
@@ -1072,6 +1076,8 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
(unsigned int)pdev->ipa_uc_tx_rsc.tx_comp_idx_paddr);
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
+ addr = (uint32_t)(pdev->ipa_uc_tx_rsc.tx_comp_idx_paddr >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_TX_COMP_WR_IDX_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
@@ -1080,6 +1086,9 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
&pdev->ipa_uc_tx_rsc.tx_ce_idx->mem_info));
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
+ mem_info_t = &pdev->ipa_uc_tx_rsc.tx_ce_idx->mem_info;
|
|
|
+ addr = (uint32_t)(qdf_mem_get_dma_addr(pdev->osdev, mem_info_t) >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_TX_CE_WR_IDX_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
@@ -1088,8 +1097,9 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
&pdev->ipa_uc_rx_rsc.rx_ind_ring->mem_info));
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
- HTT_WDI_IPA_CFG_RX_IND_RING_BASE_ADDR_HI_SET(*msg_word,
|
|
|
- 0);
|
|
|
+ mem_info_t = &pdev->ipa_uc_rx_rsc.rx_ind_ring->mem_info;
|
|
|
+ addr = (uint32_t)(qdf_mem_get_dma_addr(pdev->osdev, mem_info_t) >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_RX_IND_RING_BASE_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
@@ -1103,8 +1113,9 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
&pdev->ipa_uc_rx_rsc.rx_ipa_prc_done_idx->mem_info));
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
- HTT_WDI_IPA_CFG_RX_IND_RD_IDX_ADDR_HI_SET(*msg_word,
|
|
|
- 0);
|
|
|
+ mem_info_t = &pdev->ipa_uc_rx_rsc.rx_ipa_prc_done_idx->mem_info;
|
|
|
+ addr = (uint32_t)(qdf_mem_get_dma_addr(pdev->osdev, mem_info_t) >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_RX_IND_RD_IDX_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
@@ -1112,8 +1123,8 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
(unsigned int)pdev->ipa_uc_rx_rsc.rx_rdy_idx_paddr);
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
- HTT_WDI_IPA_CFG_RX_IND_WR_IDX_ADDR_HI_SET(*msg_word,
|
|
|
- 0);
|
|
|
+ addr = (uint32_t)(pdev->ipa_uc_rx_rsc.rx_rdy_idx_paddr >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_RX_IND_WR_IDX_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
@@ -1122,8 +1133,9 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
&pdev->ipa_uc_rx_rsc.rx2_ind_ring->mem_info));
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
- HTT_WDI_IPA_CFG_RX_RING2_BASE_ADDR_HI_SET(*msg_word,
|
|
|
- 0);
|
|
|
+ mem_info_t = &pdev->ipa_uc_rx_rsc.rx2_ind_ring->mem_info;
|
|
|
+ addr = (uint32_t)(qdf_mem_get_dma_addr(pdev->osdev, mem_info_t) >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_RX_RING2_BASE_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
@@ -1137,8 +1149,9 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
&pdev->ipa_uc_rx_rsc.rx2_ipa_prc_done_idx->mem_info));
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
- HTT_WDI_IPA_CFG_RX_RING2_RD_IDX_ADDR_HI_SET(*msg_word,
|
|
|
- 0);
|
|
|
+ mem_info_t = &pdev->ipa_uc_rx_rsc.rx2_ipa_prc_done_idx->mem_info;
|
|
|
+ addr = (uint32_t)(qdf_mem_get_dma_addr(pdev->osdev, mem_info_t) >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_RX_RING2_RD_IDX_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
@@ -1147,8 +1160,9 @@ int htt_h2t_ipa_uc_rsc_cfg_msg(struct htt_pdev_t *pdev)
|
|
|
&pdev->ipa_uc_rx_rsc.rx2_ipa_prc_done_idx->mem_info));
|
|
|
msg_word++;
|
|
|
*msg_word = 0;
|
|
|
- HTT_WDI_IPA_CFG_RX_RING2_WR_IDX_ADDR_HI_SET(*msg_word,
|
|
|
- 0);
|
|
|
+ mem_info_t = &pdev->ipa_uc_rx_rsc.rx2_ipa_prc_done_idx->mem_info;
|
|
|
+ addr = (uint32_t)(qdf_mem_get_dma_addr(pdev->osdev, mem_info_t) >> 32);
|
|
|
+ HTT_WDI_IPA_CFG_RX_RING2_WR_IDX_ADDR_HI_SET(*msg_word, addr);
|
|
|
|
|
|
SET_HTC_PACKET_INFO_TX(&pkt->htc_pkt,
|
|
|
htt_h2t_send_complete_free_netbuf,
|