aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm/io-unit.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-08-27 05:29:50 -0400
committerDavid S. Miller <davem@davemloft.net>2008-08-29 05:15:03 -0400
commitb1387c35bef6da55f6f2c27dfb748c86a4ef7ef9 (patch)
tree00d3a5e9b9a37c8b1ea757f1383ec1866316e162 /arch/sparc/mm/io-unit.c
parentaba945e76b9caeae5b6cfff179ca7bebb9bac805 (diff)
sparc32: Kill mmu_translate_dvma and implementations.
No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/io-unit.c')
-rw-r--r--arch/sparc/mm/io-unit.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/sparc/mm/io-unit.c b/arch/sparc/mm/io-unit.c
index 4239655a6aaf..6b469820fb92 100644
--- a/arch/sparc/mm/io-unit.c
+++ b/arch/sparc/mm/io-unit.c
@@ -233,19 +233,6 @@ static void iounit_unmap_dma_area(unsigned long addr, int len)
233{ 233{
234 /* XXX Somebody please fill this in */ 234 /* XXX Somebody please fill this in */
235} 235}
236
237/* XXX We do not pass sbus device here, bad. */
238static struct page *iounit_translate_dvma(unsigned long addr)
239{
240 struct sbus_bus *sbus = sbus_root; /* They are all the same */
241 struct iounit_struct *iounit = sbus->ofdev.dev.archdata.iommu;
242 int i;
243 iopte_t *iopte;
244
245 i = ((addr - IOUNIT_DMA_BASE) >> PAGE_SHIFT);
246 iopte = (iopte_t *)(iounit->page_table + i);
247 return pfn_to_page(iopte_val(*iopte) >> (PAGE_SHIFT-4)); /* XXX sun4d guru, help */
248}
249#endif 236#endif
250 237
251static char *iounit_lockarea(char *vaddr, unsigned long len) 238static char *iounit_lockarea(char *vaddr, unsigned long len)
@@ -272,7 +259,6 @@ void __init ld_mmu_iounit(void)
272#ifdef CONFIG_SBUS 259#ifdef CONFIG_SBUS
273 BTFIXUPSET_CALL(mmu_map_dma_area, iounit_map_dma_area, BTFIXUPCALL_NORM); 260 BTFIXUPSET_CALL(mmu_map_dma_area, iounit_map_dma_area, BTFIXUPCALL_NORM);
274 BTFIXUPSET_CALL(mmu_unmap_dma_area, iounit_unmap_dma_area, BTFIXUPCALL_NORM); 261 BTFIXUPSET_CALL(mmu_unmap_dma_area, iounit_unmap_dma_area, BTFIXUPCALL_NORM);
275 BTFIXUPSET_CALL(mmu_translate_dvma, iounit_translate_dvma, BTFIXUPCALL_NORM);
276#endif 262#endif
277} 263}
278 264