mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 13:32:40 -04:00
powerpc/cell: use the generic iommu bypass code
This gets rid of a lot of clumsy code and finally allows us to mark dma_iommu_ops const. Includes fixes from Michael Ellerman. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
cc9c156db5
commit
ba767b5283
@@ -319,5 +319,11 @@ extern void iommu_release_ownership(struct iommu_table *tbl);
|
||||
extern enum dma_data_direction iommu_tce_direction(unsigned long tce);
|
||||
extern unsigned long iommu_direction_to_tce_perm(enum dma_data_direction dir);
|
||||
|
||||
#ifdef CONFIG_PPC_CELL_NATIVE
|
||||
extern bool iommu_fixed_is_weak;
|
||||
#else
|
||||
#define iommu_fixed_is_weak false
|
||||
#endif
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _ASM_IOMMU_H */
|
||||
|
||||
Reference in New Issue
Block a user