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
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
2b7628c863
commit
a007ac831b
@@ -455,11 +455,11 @@ QDF_STATUS hif_exchange_bmi_msg(struct hif_opaque_softc *hif_ctx,
|
|||||||
uint8_t *pSendMessage, uint32_t Length,
|
uint8_t *pSendMessage, uint32_t Length,
|
||||||
uint8_t *pResponseMessage,
|
uint8_t *pResponseMessage,
|
||||||
uint32_t *pResponseLength, uint32_t TimeoutMS);
|
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);
|
bool hif_needs_bmi(struct hif_opaque_softc *hif_ctx);
|
||||||
#else /* WLAN_FEATURE_BMI */
|
#else /* WLAN_FEATURE_BMI */
|
||||||
static inline void
|
static inline void
|
||||||
hif_register_bmi_callbacks(struct hif_softc *hif_sc)
|
hif_register_bmi_callbacks(struct hif_opaque_softc *hif_ctx)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -296,9 +296,10 @@ qdf_export_symbol(hif_exchange_bmi_msg);
|
|||||||
*
|
*
|
||||||
* Bmi phase uses different copy complete callbacks than mission mode.
|
* 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_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);
|
struct HIF_CE_state *hif_state = HIF_GET_CE_STATE(hif_sc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -434,6 +434,10 @@ QDF_STATUS hif_exchange_bmi_msg(struct hif_opaque_softc *hif_ctx,
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void hif_register_bmi_callbacks(struct hif_opaque_softc *hif_ctx)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef BRINGUP_DEBUG
|
#ifdef BRINGUP_DEBUG
|
||||||
#define SDIO_SCRATCH_1_ADDRESS 0x864
|
#define SDIO_SCRATCH_1_ADDRESS 0x864
|
||||||
/*Functions used for debugging*/
|
/*Functions used for debugging*/
|
||||||
|
@@ -695,6 +695,10 @@ QDF_STATUS hif_exchange_bmi_msg(struct hif_opaque_softc *scn,
|
|||||||
USB_CONTROL_REQ_RECV_BMI_RESP,
|
USB_CONTROL_REQ_RECV_BMI_RESP,
|
||||||
bmi_response, bmi_response_lengthp);
|
bmi_response, bmi_response_lengthp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void hif_register_bmi_callbacks(struct hif_opaque_softc *hif_ctx)
|
||||||
|
{
|
||||||
|
}
|
||||||
#endif /* WLAN_FEATURE_BMI */
|
#endif /* WLAN_FEATURE_BMI */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user