Browse Source

qcacmn: Abstract BMI and add export symbols for ko separation

Abstract BMI callback from common module and move it to specific component.
Add Export symbols to support modularization in WIN. (BMI)

CRs-Fixed: 2324081
Change-Id: I1ec463d41d238ce81254ecc1f0bb1dc545e1248e
Pratik Gandhi 6 years ago
parent
commit
8af026a2ca

+ 5 - 0
hif/src/ce/ce_service.c

@@ -359,6 +359,7 @@ ce_send(struct CE_handle *copyeng,
 
 	return status;
 }
+qdf_export_symbol(ce_send);
 
 unsigned int ce_sendlist_sizeof(void)
 {
@@ -887,6 +888,7 @@ ce_recv_buf_enqueue(struct CE_handle *copyeng,
 	return hif_state->ce_services->ce_recv_buf_enqueue(copyeng,
 			per_recv_context, buffer);
 }
+qdf_export_symbol(ce_recv_buf_enqueue);
 
 void
 ce_send_watermarks_set(struct CE_handle *copyeng,
@@ -1043,6 +1045,7 @@ ce_cancel_send_next(struct CE_handle *copyeng,
 		(copyeng, per_CE_contextp, per_transfer_contextp,
 		 bufferp, nbytesp, transfer_idp, toeplitz_hash_result);
 }
+qdf_export_symbol(ce_cancel_send_next);
 
 int
 ce_completed_send_next(struct CE_handle *copyeng,
@@ -1765,6 +1768,7 @@ ce_send_cb_register(struct CE_handle *copyeng,
 	hif_state->ce_services->ce_per_engine_handler_adjust(CE_state,
 							disable_interrupts);
 }
+qdf_export_symbol(ce_send_cb_register);
 
 /**
  * ce_recv_cb_register(): register completion handler
@@ -1802,6 +1806,7 @@ ce_recv_cb_register(struct CE_handle *copyeng,
 	hif_state->ce_services->ce_per_engine_handler_adjust(CE_state,
 							disable_interrupts);
 }
+qdf_export_symbol(ce_recv_cb_register);
 
 /**
  * ce_watermark_cb_register(): register completion handler

+ 1 - 0
hif/src/dispatcher/multibus.c

@@ -517,4 +517,5 @@ bool hif_needs_bmi(struct hif_opaque_softc *scn)
 
 	return hif_sc->bus_ops.hif_needs_bmi(hif_sc);
 }
+qdf_export_symbol(hif_needs_bmi);
 #endif /* WLAN_FEATURE_BMI */

+ 0 - 1
hif/src/pcie/if_pci.c

@@ -2000,7 +2000,6 @@ int hif_pci_bus_configure(struct hif_softc *hif_sc)
 
 		HIF_INFO_MED("%s: hif_set_hia done", __func__);
 
-		hif_register_bmi_callbacks(hif_sc);
 	}
 
 	if (((hif_sc->target_info.target_type == TARGET_TYPE_QCA8074) ||

+ 1 - 0
target_if/init_deinit/src/init_deinit_lmac.c

@@ -136,6 +136,7 @@ uint32_t lmac_get_tgt_version(struct wlan_objmgr_psoc *psoc)
 
 	return target_psoc_get_target_ver(tgt_hdl);
 }
+qdf_export_symbol(lmac_get_tgt_version);
 
 uint32_t lmac_get_tgt_revision(struct wlan_objmgr_psoc *psoc)
 {

+ 1 - 0
utils/fwlog/fw_dbglog_api.c

@@ -57,6 +57,7 @@ int fwdbg_parse_debug_logs(struct common_dbglog_handle *dbg_handle,
 
 	return 0;
 }
+qdf_export_symbol(fwdbg_parse_debug_logs);
 
 void fwdbg_ratelimit_set(struct common_dbglog_handle *dbg_handle,
 		uint32_t burst_limit)