Browse Source

qcacmn: Add target_if support for CFR

Add target_if support for CFR.

CRs-Fixed: 2372061
Change-Id: I8ad14d714306acc20c9a7e09c8d6f17f7caeae16
Abhiram Jogadenu 6 years ago
parent
commit
880ba01add

+ 11 - 0
target_if/core/src/target_if_main.c

@@ -29,6 +29,9 @@
 #ifdef WLAN_SA_API_ENABLE
 #include "target_if_sa_api.h"
 #endif
+#ifdef WLAN_CFR_ENABLE
+#include "target_if_cfr.h"
+#endif
 #ifdef WLAN_CONV_SPECTRAL_ENABLE
 #include "target_if_spectral.h"
 #endif
@@ -218,6 +221,12 @@ static void target_if_sa_api_tx_ops_register(struct wlan_lmac_if_tx_ops *tx_ops)
 }
 #endif /* WLAN_SA_API_ENABLE */
 
+#ifndef WLAN_CFR_ENABLE
+static void target_if_cfr_tx_ops_register(struct wlan_lmac_if_tx_ops *tx_ops)
+{
+}
+#endif
+
 #ifdef WLAN_SUPPORT_FILS
 static void target_if_fd_tx_ops_register(struct wlan_lmac_if_tx_ops *tx_ops)
 {
@@ -414,6 +423,8 @@ QDF_STATUS target_if_register_umac_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
 
 	target_if_sa_api_tx_ops_register(tx_ops);
 
+	target_if_cfr_tx_ops_register(tx_ops);
+
 	target_if_wifi_pos_tx_ops_register(tx_ops);
 
 	target_if_dfs_tx_ops_register(tx_ops);

+ 3 - 1
target_if/direct_buf_rx/src/target_if_direct_buf_rx_main.c

@@ -34,6 +34,7 @@ struct module_name {
 
 static const struct module_name g_dbr_module_name[DBR_MODULE_MAX] = {
 	[DBR_MODULE_SPECTRAL] = {"SPECTRAL"},
+	[DBR_MODULE_CFR]      = {"CFR"},
 };
 
 static uint8_t get_num_dbr_modules_per_pdev(struct wlan_objmgr_pdev *pdev)
@@ -493,7 +494,8 @@ static QDF_STATUS target_if_dbr_init_ring(struct wlan_objmgr_pdev *pdev,
 	ring_params.ring_base_paddr =
 		(qdf_dma_addr_t)dbr_ring_cfg->base_paddr_aligned;
 	ring_params.num_entries = num_entries;
-	srng = hal_srng_setup(dbr_psoc_obj->hal_soc, DIR_BUF_RX_DMA_SRC, 0,
+	srng = hal_srng_setup(dbr_psoc_obj->hal_soc, DIR_BUF_RX_DMA_SRC,
+			      mod_param->mod_id,
 			      wlan_objmgr_pdev_get_pdev_id(pdev), &ring_params);
 
 	if (!srng) {

+ 2 - 0
target_if/direct_buf_rx/src/target_if_direct_buf_rx_main.h

@@ -33,10 +33,12 @@ struct direct_buf_rx_data;
 /**
  * enum DBR_MODULE - Enum containing the modules supporting direct buf rx
  * @DBR_MODULE_SPECTRAL: Module ID for Spectral
+ * @DBR_MODULE_CFR: Module ID for CFR
  * @DBR_MODULE_MAX: Max module ID
  */
 enum DBR_MODULE {
 	DBR_MODULE_SPECTRAL = 0,
+	DBR_MODULE_CFR      = 1,
 	DBR_MODULE_MAX,
 };