diff options
Diffstat (limited to 'include/asm-powerpc/iommu.h')
-rw-r--r-- | include/asm-powerpc/iommu.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/asm-powerpc/iommu.h b/include/asm-powerpc/iommu.h index 4a82fdccee92..852e15f51a1e 100644 --- a/include/asm-powerpc/iommu.h +++ b/include/asm-powerpc/iommu.h | |||
@@ -69,10 +69,9 @@ struct iommu_table { | |||
69 | }; | 69 | }; |
70 | 70 | ||
71 | struct scatterlist; | 71 | struct scatterlist; |
72 | struct device_node; | ||
73 | 72 | ||
74 | /* Frees table for an individual device node */ | 73 | /* Frees table for an individual device node */ |
75 | extern void iommu_free_table(struct device_node *dn); | 74 | extern void iommu_free_table(struct iommu_table *tbl, const char *node_name); |
76 | 75 | ||
77 | /* Initializes an iommu_table based in values set in the passed-in | 76 | /* Initializes an iommu_table based in values set in the passed-in |
78 | * structure | 77 | * structure |
@@ -80,19 +79,19 @@ extern void iommu_free_table(struct device_node *dn); | |||
80 | extern struct iommu_table *iommu_init_table(struct iommu_table * tbl, | 79 | extern struct iommu_table *iommu_init_table(struct iommu_table * tbl, |
81 | int nid); | 80 | int nid); |
82 | 81 | ||
83 | extern int iommu_map_sg(struct iommu_table *tbl, struct scatterlist *sglist, | 82 | extern int iommu_map_sg(struct device *dev, struct scatterlist *sglist, |
84 | int nelems, unsigned long mask, | 83 | int nelems, unsigned long mask, |
85 | enum dma_data_direction direction); | 84 | enum dma_data_direction direction); |
86 | extern void iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, | 85 | extern void iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, |
87 | int nelems, enum dma_data_direction direction); | 86 | int nelems, enum dma_data_direction direction); |
88 | 87 | ||
89 | extern void *iommu_alloc_coherent(struct iommu_table *tbl, size_t size, | 88 | extern void *iommu_alloc_coherent(struct device *dev, struct iommu_table *tbl, |
90 | dma_addr_t *dma_handle, unsigned long mask, | 89 | size_t size, dma_addr_t *dma_handle, |
91 | gfp_t flag, int node); | 90 | unsigned long mask, gfp_t flag, int node); |
92 | extern void iommu_free_coherent(struct iommu_table *tbl, size_t size, | 91 | extern void iommu_free_coherent(struct iommu_table *tbl, size_t size, |
93 | void *vaddr, dma_addr_t dma_handle); | 92 | void *vaddr, dma_addr_t dma_handle); |
94 | extern dma_addr_t iommu_map_single(struct iommu_table *tbl, void *vaddr, | 93 | extern dma_addr_t iommu_map_single(struct device *dev, struct iommu_table *tbl, |
95 | size_t size, unsigned long mask, | 94 | void *vaddr, size_t size, unsigned long mask, |
96 | enum dma_data_direction direction); | 95 | enum dma_data_direction direction); |
97 | extern void iommu_unmap_single(struct iommu_table *tbl, dma_addr_t dma_handle, | 96 | extern void iommu_unmap_single(struct iommu_table *tbl, dma_addr_t dma_handle, |
98 | size_t size, enum dma_data_direction direction); | 97 | size_t size, enum dma_data_direction direction); |