mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-14 21:48:49 +00:00
c2c07dbd87
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>
15 lines
746 B
C
15 lines
746 B
C
void *sbus_alloc_consistent(struct device *dev, long len, u32 *dma_addrp);
|
|
void sbus_free_consistent(struct device *dev, long n, void *p, u32 ba);
|
|
dma_addr_t sbus_map_page(struct device *dev, struct page *page,
|
|
unsigned long offset, size_t len, int direction);
|
|
void sbus_unmap_page(struct device *dev, dma_addr_t ba,
|
|
size_t n, int direction);
|
|
int sbus_map_sg(struct device *dev, struct scatterlist *sg,
|
|
int n, int direction);
|
|
void sbus_unmap_sg(struct device *dev, struct scatterlist *sg,
|
|
int n, int direction);
|
|
void sbus_dma_sync_single_for_cpu(struct device *dev, dma_addr_t ba,
|
|
size_t size, int direction);
|
|
void sbus_dma_sync_single_for_device(struct device *dev, dma_addr_t ba,
|
|
size_t size, int direction);
|