|
@@ -872,6 +872,14 @@ void *pld_smmu_get_mapping(struct device *dev);
|
|
#endif
|
|
#endif
|
|
int pld_smmu_map(struct device *dev, phys_addr_t paddr,
|
|
int pld_smmu_map(struct device *dev, phys_addr_t paddr,
|
|
uint32_t *iova_addr, size_t size);
|
|
uint32_t *iova_addr, size_t size);
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
|
|
|
|
+struct kobject *pld_get_wifi_kobj(struct device *dev);
|
|
|
|
+#else
|
|
|
|
+static inline struct kobject *pld_get_wifi_kobj(struct device *dev)
|
|
|
|
+{
|
|
|
|
+ return NULL;
|
|
|
|
+}
|
|
|
|
+#endif
|
|
#ifdef CONFIG_SMMU_S1_UNMAP
|
|
#ifdef CONFIG_SMMU_S1_UNMAP
|
|
int pld_smmu_unmap(struct device *dev,
|
|
int pld_smmu_unmap(struct device *dev,
|
|
uint32_t iova_addr, size_t size);
|
|
uint32_t iova_addr, size_t size);
|