aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm/iommu.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/iommu.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/iommu.c')
-rw-r--r--arch/sparc/mm/iommu.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/sparc/mm/iommu.c b/arch/sparc/mm/iommu.c
index 8e9ab930f097..832d99f33470 100644
--- a/arch/sparc/mm/iommu.c
+++ b/arch/sparc/mm/iommu.c
@@ -421,15 +421,6 @@ static void iommu_unmap_dma_area(unsigned long busa, int len)
421 iommu_invalidate(iommu->regs); 421 iommu_invalidate(iommu->regs);
422 bit_map_clear(&iommu->usemap, ioptex, len >> PAGE_SHIFT); 422 bit_map_clear(&iommu->usemap, ioptex, len >> PAGE_SHIFT);
423} 423}
424
425static struct page *iommu_translate_dvma(unsigned long busa)
426{
427 struct iommu_struct *iommu = sbus_root->ofdev.dev.archdata.iommu;
428 iopte_t *iopte = iommu->page_table;
429
430 iopte += ((busa - iommu->start) >> PAGE_SHIFT);
431 return pfn_to_page((iopte_val(*iopte) & IOPTE_PAGE) >> (PAGE_SHIFT-4));
432}
433#endif 424#endif
434 425
435static char *iommu_lockarea(char *vaddr, unsigned long len) 426static char *iommu_lockarea(char *vaddr, unsigned long len)
@@ -465,7 +456,6 @@ void __init ld_mmu_iommu(void)
465#ifdef CONFIG_SBUS 456#ifdef CONFIG_SBUS
466 BTFIXUPSET_CALL(mmu_map_dma_area, iommu_map_dma_area, BTFIXUPCALL_NORM); 457 BTFIXUPSET_CALL(mmu_map_dma_area, iommu_map_dma_area, BTFIXUPCALL_NORM);
467 BTFIXUPSET_CALL(mmu_unmap_dma_area, iommu_unmap_dma_area, BTFIXUPCALL_NORM); 458 BTFIXUPSET_CALL(mmu_unmap_dma_area, iommu_unmap_dma_area, BTFIXUPCALL_NORM);
468 BTFIXUPSET_CALL(mmu_translate_dvma, iommu_translate_dvma, BTFIXUPCALL_NORM);
469#endif 459#endif
470 460
471 if (viking_mxcc_present || srmmu_modtype == HyperSparc) { 461 if (viking_mxcc_present || srmmu_modtype == HyperSparc) {