aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/iommu.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/iommu.h')
-rw-r--r--arch/powerpc/include/asm/iommu.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/arch/powerpc/include/asm/iommu.h b/arch/powerpc/include/asm/iommu.h
index 35db0cbc9222..e847ff69cb2b 100644
--- a/arch/powerpc/include/asm/iommu.h
+++ b/arch/powerpc/include/asm/iommu.h
@@ -215,11 +215,12 @@ struct iommu_table_group {
215 215
216extern void iommu_register_group(struct iommu_table_group *table_group, 216extern void iommu_register_group(struct iommu_table_group *table_group,
217 int pci_domain_number, unsigned long pe_num); 217 int pci_domain_number, unsigned long pe_num);
218extern int iommu_add_device(struct device *dev); 218extern int iommu_add_device(struct iommu_table_group *table_group,
219 struct device *dev);
219extern void iommu_del_device(struct device *dev); 220extern void iommu_del_device(struct device *dev);
220extern int __init tce_iommu_bus_notifier_init(void); 221extern long iommu_tce_xchg(struct mm_struct *mm, struct iommu_table *tbl,
221extern long iommu_tce_xchg(struct iommu_table *tbl, unsigned long entry, 222 unsigned long entry, unsigned long *hpa,
222 unsigned long *hpa, enum dma_data_direction *direction); 223 enum dma_data_direction *direction);
223#else 224#else
224static inline void iommu_register_group(struct iommu_table_group *table_group, 225static inline void iommu_register_group(struct iommu_table_group *table_group,
225 int pci_domain_number, 226 int pci_domain_number,
@@ -227,7 +228,8 @@ static inline void iommu_register_group(struct iommu_table_group *table_group,
227{ 228{
228} 229}
229 230
230static inline int iommu_add_device(struct device *dev) 231static inline int iommu_add_device(struct iommu_table_group *table_group,
232 struct device *dev)
231{ 233{
232 return 0; 234 return 0;
233} 235}
@@ -235,11 +237,6 @@ static inline int iommu_add_device(struct device *dev)
235static inline void iommu_del_device(struct device *dev) 237static inline void iommu_del_device(struct device *dev)
236{ 238{
237} 239}
238
239static inline int __init tce_iommu_bus_notifier_init(void)
240{
241 return 0;
242}
243#endif /* !CONFIG_IOMMU_API */ 240#endif /* !CONFIG_IOMMU_API */
244 241
245int dma_iommu_mapping_error(struct device *dev, dma_addr_t dma_addr); 242int dma_iommu_mapping_error(struct device *dev, dma_addr_t dma_addr);