qcacmn: Carve Out hif_softc out of ol_softc
Carve out hif_softc for internal hif usage.
ol_softc acts a opaque handle to other modules.
Change-Id: I7633e70ed82fe2ee88a21e2502177d6a7388ff56
CRs-Fixed: 967765
diff --git a/hif/src/ce/ce_bmi.c b/hif/src/ce/ce_bmi.c
index 05e8157..eeef57e 100644
--- a/hif/src/ce/ce_bmi.c
+++ b/hif/src/ce/ce_bmi.c
@@ -88,7 +88,7 @@
{
struct BMI_transaction *transaction =
(struct BMI_transaction *)transfer_context;
- struct ol_softc *scn = HIF_GET_SOFTC(transaction->hif_state);
+ struct hif_softc *scn = HIF_GET_SOFTC(transaction->hif_state);
#ifdef BMI_RSP_POLLING
/*
@@ -124,7 +124,7 @@
{
struct BMI_transaction *transaction =
(struct BMI_transaction *)transfer_context;
- struct ol_softc *scn = HIF_GET_SOFTC(transaction->hif_state);
+ struct hif_softc *scn = HIF_GET_SOFTC(transaction->hif_state);
transaction->bmi_response_length = nbytes;
transaction->bmi_transaction_flags |= BMI_RESP_RECV_DONE;
@@ -143,7 +143,7 @@
uint8_t *bmi_response,
uint32_t *bmi_response_lengthp, uint32_t TimeoutMS)
{
- struct ol_softc *scn = HIF_GET_SOFTC(hif_ctx);
+ struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
struct HIF_CE_state *hif_state = HIF_GET_CE_STATE(hif_ctx);
struct HIF_CE_pipe_info *send_pipe_info =
&(hif_state->pipe_info[BMI_CE_NUM_TO_TARG]);
@@ -157,7 +157,7 @@
unsigned int mux_id = 0;
unsigned int transaction_id = 0xffff;
unsigned int user_flags = 0;
- struct bmi_info *info = hif_get_bmi_ctx(scn);
+ struct bmi_info *info = hif_get_bmi_ctx(hif_ctx);
#ifdef BMI_RSP_POLLING
cdf_dma_addr_t buf;
unsigned int completed_nbytes, id, flags;