mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
video: rockchip: mpp_osal: Add func to get dma iommu mapping
Change-Id: I9c728c8b8048c16cdf85aa421a1192b11f53500c Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
This commit is contained in:
@@ -41,3 +41,13 @@ void mpp_device_add_driver(void *dev, void *drv)
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(mpp_device_add_driver);
|
||||
|
||||
struct dma_iommu_mapping *mpp_arm_iommu_get_mapping(struct device *dev)
|
||||
{
|
||||
#ifdef CONFIG_ARM_DMA_USE_IOMMU
|
||||
return dev->archdata.mapping;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(mpp_arm_iommu_get_mapping);
|
||||
|
||||
@@ -10,10 +10,13 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_wakeup.h>
|
||||
|
||||
struct dma_iommu_mapping;
|
||||
|
||||
struct device_node *mpp_dev_of_node(struct device *dev);
|
||||
void mpp_pm_relax(struct device *dev);
|
||||
void mpp_pm_stay_awake(struct device *dev);
|
||||
int mpp_device_init_wakeup(struct device *dev, bool enable);
|
||||
void mpp_device_add_driver(void *dev, void *drv);
|
||||
struct dma_iommu_mapping *mpp_arm_iommu_get_mapping(struct device *dev);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user