sparc: Replace sbus_map_single and sbus_unmap_single with sbus_map_page and sbus_unmap_page
This is a preparation for using asm-generic/pci-dma-compat.h; SPARC32 has two dma_map_ops structures for pci and sbus (removing arch/sparc/kernel/dma.c, PCI and SBUS DMA accessor). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Tested-by: Robert Reif <reif@earthlink.net> Acked-by: David S. Miller <davem@davemloft.net> Cc: tony.luck@intel.com Cc: fenghua.yu@intel.com LKML-Reference: <1249872797-1314-7-git-send-email-fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
595cc85607
commit
c2c07dbd87
@@ -68,8 +68,7 @@ static dma_addr_t dma32_map_page(struct device *dev, struct page *page,
|
||||
return pci_map_page(to_pci_dev(dev), page, offset,
|
||||
size, (int)direction);
|
||||
#endif
|
||||
return sbus_map_single(dev, page_address(page) + offset,
|
||||
size, (int)direction);
|
||||
return sbus_map_page(dev, page, offset, size, (int)direction);
|
||||
}
|
||||
|
||||
static void dma32_unmap_page(struct device *dev, dma_addr_t dma_address,
|
||||
@@ -83,7 +82,7 @@ static void dma32_unmap_page(struct device *dev, dma_addr_t dma_address,
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
sbus_unmap_single(dev, dma_address, size, (int)direction);
|
||||
sbus_unmap_page(dev, dma_address, size, (int)direction);
|
||||
}
|
||||
|
||||
static int dma32_map_sg(struct device *dev, struct scatterlist *sg,
|
||||
|
||||
Reference in New Issue
Block a user