qcacmn: Add APIs to get IPA SMMU status

Add APIs to get the IPA SMMU status

Change-Id: I5889f35739b220bd4ad38f4278c133cd97141b22
CRs-Fixed: 2176318
这个提交包含在:
Sravan Kumar Kairam
2018-02-28 17:03:24 +05:30
提交者 nshrivas
父节点 58e0adfb53
当前提交 4e417e0ad0
修改 2 个文件,包含 32 行新增0 行删除

查看文件

@@ -646,5 +646,18 @@ static inline int qdf_ipa_broadcast_wdi_quota_reach_ind(uint32_t index,
return __qdf_ipa_broadcast_wdi_quota_reach_ind(index, quota_bytes);
}
#endif
#ifdef ENABLE_SMMU_S1_TRANSLATION
/**
* qdf_get_ipa_smmu_enabled() - to get IPA SMMU enable status
*
* Return: true when IPA SMMU enabled, otherwise false
*/
static inline bool qdf_get_ipa_smmu_enabled(void)
{
return __qdf_get_ipa_smmu_enabled();
}
#endif
#endif /* IPA_OFFLOAD */
#endif /* _QDF_IPA_H */

查看文件

@@ -914,5 +914,24 @@ static inline int __qdf_ipa_broadcast_wdi_quota_reach_ind(uint32_t index,
#endif
void __qdf_ipa_set_meta_msg_type(__qdf_ipa_msg_meta_t *meta, int type);
#ifdef ENABLE_SMMU_S1_TRANSLATION
/**
* __qdf_get_ipa_smmu_enabled() - to get IPA SMMU enable status
*
* Return: true when IPA SMMU enabled, otherwise false
*/
static bool __qdf_get_ipa_smmu_enabled(void)
{
struct ipa_smmu_in_params params_in;
struct ipa_smmu_out_params params_out;
params_in.smmu_client = IPA_SMMU_WLAN_CLIENT;
ipa_get_smmu_params(&params_in, &params_out);
return params_out.smmu_enable;
}
#endif
#endif /* IPA_OFFLOAD */
#endif /* _I_QDF_IPA_H */