|
@@ -916,6 +916,19 @@ struct hif_opaque_softc *hif_open(qdf_device_t qdf_ctx,
|
|
|
struct hif_driver_state_callbacks *cbk,
|
|
|
struct wlan_objmgr_psoc *psoc);
|
|
|
|
|
|
+/**
|
|
|
+ * hif_init_dma_mask() - Set dma mask for the dev
|
|
|
+ * @dev: dev for which DMA mask is to be set
|
|
|
+ * @bus_type: bus type for the target
|
|
|
+ *
|
|
|
+ * This API sets the DMA mask for the device. before the datapath
|
|
|
+ * memory pre-allocation is done. If the DMA mask is not set before
|
|
|
+ * requesting the DMA memory, kernel defaults to a 32-bit DMA mask,
|
|
|
+ * and does not utilize the full device capability.
|
|
|
+ *
|
|
|
+ * Return: 0 - success, non-zero on failure.
|
|
|
+ */
|
|
|
+int hif_init_dma_mask(struct device *dev, enum qdf_bus_type bus_type);
|
|
|
void hif_close(struct hif_opaque_softc *hif_ctx);
|
|
|
QDF_STATUS hif_enable(struct hif_opaque_softc *hif_ctx, struct device *dev,
|
|
|
void *bdev, const struct hif_bus_id *bid,
|