|
|
|
@ -1472,7 +1472,7 @@ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> |
|
|
|
|
}
|
|
|
|
|
--- a/include/linux/dma-iommu.h
|
|
|
|
|
+++ b/include/linux/dma-iommu.h
|
|
|
|
|
@@ -27,6 +27,7 @@ int iommu_dma_init(void);
|
|
|
|
|
@@ -28,6 +28,7 @@ int iommu_dma_init(void);
|
|
|
|
|
|
|
|
|
|
/* Domain management interface for IOMMU drivers */
|
|
|
|
|
int iommu_get_dma_cookie(struct iommu_domain *domain);
|
|
|
|
@ -1480,7 +1480,7 @@ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> |
|
|
|
|
void iommu_put_dma_cookie(struct iommu_domain *domain);
|
|
|
|
|
|
|
|
|
|
/* Setup call for arch DMA mapping code */
|
|
|
|
|
@@ -66,6 +67,7 @@ int iommu_dma_mapping_error(struct devic
|
|
|
|
|
@@ -67,6 +68,7 @@ int iommu_dma_mapping_error(struct devic
|
|
|
|
|
|
|
|
|
|
/* The DMA API isn't _quite_ the whole story, though... */
|
|
|
|
|
void iommu_dma_map_msi_msg(int irq, struct msi_msg *msg);
|
|
|
|
@ -1488,7 +1488,7 @@ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> |
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
@@ -82,6 +84,11 @@ static inline int iommu_get_dma_cookie(s
|
|
|
|
|
@@ -83,6 +85,11 @@ static inline int iommu_get_dma_cookie(s
|
|
|
|
|
return -ENODEV;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1500,7 +1500,7 @@ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> |
|
|
|
|
static inline void iommu_put_dma_cookie(struct iommu_domain *domain)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
@@ -90,6 +97,10 @@ static inline void iommu_dma_map_msi_msg
|
|
|
|
|
@@ -91,6 +98,10 @@ static inline void iommu_dma_map_msi_msg
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|