|
@@ -153,6 +153,12 @@ pld_pcie_smmu_map(struct device *dev,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static inline int
|
|
|
+pld_pcie_smmu_unmap(struct device *dev, uint32_t iova_addr, size_t size)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
static inline int
|
|
|
pld_pcie_get_fw_files_for_target(struct device *dev,
|
|
|
struct pld_fw_files *pfw_files,
|
|
@@ -444,6 +450,20 @@ pld_pcie_smmu_map(struct device *dev,
|
|
|
return cnss_smmu_map(dev, paddr, iova_addr, size);
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_SMMU_S1_UNMAP
|
|
|
+static inline int
|
|
|
+pld_pcie_smmu_unmap(struct device *dev, uint32_t iova_addr, size_t size)
|
|
|
+{
|
|
|
+ return cnss_smmu_unmap(dev, iova_addr, size);
|
|
|
+}
|
|
|
+#else /* !CONFIG_SMMU_S1_UNMAP */
|
|
|
+static inline int
|
|
|
+pld_pcie_smmu_unmap(struct device *dev, uint32_t iova_addr, size_t size)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#endif /* CONFIG_SMMU_S1_UNMAP */
|
|
|
+
|
|
|
static inline int pld_pcie_prevent_l1(struct device *dev)
|
|
|
{
|
|
|
return cnss_pci_prevent_l1(dev);
|