|
@@ -315,6 +315,10 @@ struct hif_softc {
|
|
qdf_atomic_t dp_ep_vote_access;
|
|
qdf_atomic_t dp_ep_vote_access;
|
|
qdf_atomic_t ep_vote_access;
|
|
qdf_atomic_t ep_vote_access;
|
|
#endif
|
|
#endif
|
|
|
|
+ /* CMEM address target reserved for host usage */
|
|
|
|
+ uint64_t cmem_start;
|
|
|
|
+ /* CMEM size target reserved */
|
|
|
|
+ uint64_t cmem_size;
|
|
};
|
|
};
|
|
|
|
|
|
static inline
|
|
static inline
|
|
@@ -328,6 +332,25 @@ void *hif_get_hal_handle(struct hif_opaque_softc *hif_hdl)
|
|
return sc->hal_soc;
|
|
return sc->hal_soc;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * hif_get_cmem_info() - get CMEM address and size from HIF handle
|
|
|
|
+ * @hif_hdl: HIF handle pointer
|
|
|
|
+ * @cmem_start: pointer for CMEM address
|
|
|
|
+ * @cmem_size: pointer for CMEM size
|
|
|
|
+ *
|
|
|
|
+ * Return: None.
|
|
|
|
+ */
|
|
|
|
+static inline
|
|
|
|
+void hif_get_cmem_info(struct hif_opaque_softc *hif_hdl,
|
|
|
|
+ uint64_t *cmem_start,
|
|
|
|
+ uint64_t *cmem_size)
|
|
|
|
+{
|
|
|
|
+ struct hif_softc *sc = (struct hif_softc *)hif_hdl;
|
|
|
|
+
|
|
|
|
+ *cmem_start = sc->cmem_start;
|
|
|
|
+ *cmem_size = sc->cmem_size;
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Max waiting time during Runtime PM suspend to finish all
|
|
* Max waiting time during Runtime PM suspend to finish all
|
|
* the tasks. This is in the multiple of 10ms.
|
|
* the tasks. This is in the multiple of 10ms.
|