Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

FRV: move DMA macros to scatterlist.h for consistency.

To be consistent with other architectures, these two DMA macros should
be defined in scatterlist.h as opposed to dma-mapping.h

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Robert P. J. Day and committed by
Linus Torvalds
82b12e23 7038220a

+10 -10
-10
include/asm-frv/dma-mapping.h
··· 17 17 void dma_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle); 18 18 19 19 /* 20 - * These macros should be used after a pci_map_sg call has been done 21 - * to get bus addresses of each of the SG entries and their lengths. 22 - * You should only work with the number of sg entries pci_map_sg 23 - * returns, or alternatively stop on the first sg_dma_len(sg) which 24 - * is 0. 25 - */ 26 - #define sg_dma_address(sg) ((sg)->dma_address) 27 - #define sg_dma_len(sg) ((sg)->length) 28 - 29 - /* 30 20 * Map a single buffer of the indicated size for DMA in streaming mode. 31 21 * The 32-bit bus address to use is returned. 32 22 *
+10
include/asm-frv/scatterlist.h
··· 31 31 unsigned int length; 32 32 }; 33 33 34 + /* 35 + * These macros should be used after a pci_map_sg call has been done 36 + * to get bus addresses of each of the SG entries and their lengths. 37 + * You should only work with the number of sg entries pci_map_sg 38 + * returns, or alternatively stop on the first sg_dma_len(sg) which 39 + * is 0. 40 + */ 41 + #define sg_dma_address(sg) ((sg)->dma_address) 42 + #define sg_dma_len(sg) ((sg)->length) 43 + 34 44 #define ISA_DMA_THRESHOLD (0xffffffffUL) 35 45 36 46 #endif /* !_ASM_SCATTERLIST_H */