diff options
Diffstat (limited to 'arch/powerpc/include/asm/iommu.h')
-rw-r--r-- | arch/powerpc/include/asm/iommu.h | 17 |
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 | ||
216 | extern void iommu_register_group(struct iommu_table_group *table_group, | 216 | extern 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); |
218 | extern int iommu_add_device(struct device *dev); | 218 | extern int iommu_add_device(struct iommu_table_group *table_group, |
219 | struct device *dev); | ||
219 | extern void iommu_del_device(struct device *dev); | 220 | extern void iommu_del_device(struct device *dev); |
220 | extern int __init tce_iommu_bus_notifier_init(void); | 221 | extern long iommu_tce_xchg(struct mm_struct *mm, struct iommu_table *tbl, |
221 | extern 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 |
224 | static inline void iommu_register_group(struct iommu_table_group *table_group, | 225 | static 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 | ||
230 | static inline int iommu_add_device(struct device *dev) | 231 | static 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) | |||
235 | static inline void iommu_del_device(struct device *dev) | 237 | static inline void iommu_del_device(struct device *dev) |
236 | { | 238 | { |
237 | } | 239 | } |
238 | |||
239 | static 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 | ||
245 | int dma_iommu_mapping_error(struct device *dev, dma_addr_t dma_addr); | 242 | int dma_iommu_mapping_error(struct device *dev, dma_addr_t dma_addr); |