소스 검색

qcacmn: Abstract BMI CE callbacks

As part of WIN BMI modularization, hif_bmi_register_callbacks
are removed from if_pci.c in qcacmn project. As a result,
MCL needs to invoke hif_bmi_register_callbacks in qcacld project.

Fix is to define hif_bmi_register_callbacks for SDIO and USB builds
so that SDIO and USB products can build when WLAN_FEATURE_BMI is
defined.

Change-Id: I559af0205dd4671214a8d7f2972fdba379e10b6a
CRs-Fixed: 2332250
jiad 6 년 전
부모
커밋
a007ac831b
4개의 변경된 파일12개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      hif/inc/hif.h
  2. 2 1
      hif/src/ce/ce_bmi.c
  3. 4 0
      hif/src/sdio/hif_bmi_reg_access.c
  4. 4 0
      hif/src/usb/hif_usb.c

+ 2 - 2
hif/inc/hif.h

@@ -455,11 +455,11 @@ QDF_STATUS hif_exchange_bmi_msg(struct hif_opaque_softc *hif_ctx,
 				uint8_t *pSendMessage, uint32_t Length,
 				uint8_t *pResponseMessage,
 				uint32_t *pResponseLength, uint32_t TimeoutMS);
-void hif_register_bmi_callbacks(struct hif_softc *hif_sc);
+void hif_register_bmi_callbacks(struct hif_opaque_softc *hif_ctx);
 bool hif_needs_bmi(struct hif_opaque_softc *hif_ctx);
 #else /* WLAN_FEATURE_BMI */
 static inline void
-hif_register_bmi_callbacks(struct hif_softc *hif_sc)
+hif_register_bmi_callbacks(struct hif_opaque_softc *hif_ctx)
 {
 }
 

+ 2 - 1
hif/src/ce/ce_bmi.c

@@ -296,9 +296,10 @@ qdf_export_symbol(hif_exchange_bmi_msg);
  *
  * Bmi phase uses different copy complete callbacks than mission mode.
  */
-void hif_register_bmi_callbacks(struct hif_softc *hif_sc)
+void hif_register_bmi_callbacks(struct hif_opaque_softc *hif_ctx)
 {
 	struct HIF_CE_pipe_info *pipe_info;
+	struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
 	struct HIF_CE_state *hif_state = HIF_GET_CE_STATE(hif_sc);
 
 	/*

+ 4 - 0
hif/src/sdio/hif_bmi_reg_access.c

@@ -434,6 +434,10 @@ QDF_STATUS hif_exchange_bmi_msg(struct hif_opaque_softc *hif_ctx,
 	return status;
 }
 
+void hif_register_bmi_callbacks(struct hif_opaque_softc *hif_ctx)
+{
+}
+
 #ifdef BRINGUP_DEBUG
 #define SDIO_SCRATCH_1_ADDRESS 0x864
 /*Functions used for debugging*/

+ 4 - 0
hif/src/usb/hif_usb.c

@@ -695,6 +695,10 @@ QDF_STATUS hif_exchange_bmi_msg(struct hif_opaque_softc *scn,
 				USB_CONTROL_REQ_RECV_BMI_RESP,
 				bmi_response, bmi_response_lengthp);
 }
+
+void hif_register_bmi_callbacks(struct hif_opaque_softc *hif_ctx)
+{
+}
 #endif /* WLAN_FEATURE_BMI */
 
 /**