Parcourir la source

qcacmn: Add support for SMMU IPA WDI unified API

IPA driver adds unified WDI API for ipa_wdi_create_smmu_mapping
and ipa_wdi_release_smmu_mapping. WLAN driver needs to adopt the
change accordingly.

Change-Id: Ibbf10e4beb579a6a3d3e6b0e8e6d2c853f7e629a
CRs-Fixed: 2238493
jiad il y a 7 ans
Parent
commit
efc0b71831
2 fichiers modifiés avec 60 ajouts et 0 suppressions
  1. 30 0
      qdf/inc/qdf_ipa_wdi3.h
  2. 30 0
      qdf/linux/src/i_qdf_ipa_wdi3.h

+ 30 - 0
qdf/inc/qdf_ipa_wdi3.h

@@ -207,6 +207,36 @@ static inline int qdf_ipa_wdi_set_perf_profile(
 	return __qdf_ipa_wdi_set_perf_profile(profile);
 }
 
+/**
+ * qdf_ipa_wdi_create_smmu_mapping() - Client should call this function to
+ *		create smmu mapping
+ *
+ * @num_buffers: [in] number of buffers
+ * @info: [in] wdi buffer info
+ *
+ * Returns: 0 on success, negative on failure
+ */
+static inline int qdf_ipa_wdi_create_smmu_mapping(uint32_t num_buffers,
+		qdf_ipa_wdi_buffer_info_t *info)
+{
+	return __qdf_ipa_wdi_create_smmu_mapping(num_buffers, info);
+}
+
+/**
+ * qdf_ipa_wdi_release_smmu_mapping() - Client should call this function to
+ *		release smmu mapping
+ *
+ * @num_buffers: [in] number of buffers
+ * @info: [in] wdi buffer info
+ *
+ * Returns: 0 on success, negative on failure
+ */
+static inline int qdf_ipa_wdi_release_smmu_mapping(uint32_t num_buffers,
+		qdf_ipa_wdi_buffer_info_t *info)
+{
+	return __qdf_ipa_wdi_release_smmu_mapping(num_buffers, info);
+}
+
 #else /* CONFIG_IPA_WDI_UNIFIED_API */
 
 #include <i_qdf_ipa_wdi3.h>

+ 30 - 0
qdf/linux/src/i_qdf_ipa_wdi3.h

@@ -339,6 +339,36 @@ static inline int __qdf_ipa_wdi_set_perf_profile(
 	return ipa_wdi_set_perf_profile(profile);
 }
 
+/**
+ * __qdf_ipa_wdi_create_smmu_mapping() - Client should call this function to
+ *		create smmu mapping
+ *
+ * @num_buffers: [in] number of buffers
+ * @info: [in] wdi buffer info
+ *
+ * Returns: 0 on success, negative on failure
+ */
+static inline int __qdf_ipa_wdi_create_smmu_mapping(u32 num_buffers,
+		struct ipa_wdi_buffer_info *info)
+{
+	return ipa_wdi_create_smmu_mapping(num_buffers, info);
+}
+
+/**
+ * __qdf_ipa_wdi_release_smmu_mapping() - Client should call this function to
+ *		release smmu mapping
+ *
+ * @num_buffers: [in] number of buffers
+ * @info: [in] wdi buffer info
+ *
+ * Returns: 0 on success, negative on failure
+ */
+static inline int __qdf_ipa_wdi_release_smmu_mapping(u32 num_buffers,
+		struct ipa_wdi_buffer_info *info)
+{
+	return ipa_wdi_release_smmu_mapping(num_buffers, info);
+}
+
 #else /* CONFIG_IPA_WDI_UNIFIED_API */
 
 /**