| #ifndef __ASM_GENERIC_SCATTERLIST_H |
| #define __ASM_GENERIC_SCATTERLIST_H |
| * These macros should be used after a dma_map_sg call has been done |
| * to get bus addresses of each of the SG entries and their lengths. |
| * You should only work with the number of sg entries pci_map_sg |
| * returns, or alternatively stop on the first sg_dma_len(sg) which |
| #define sg_dma_address(sg) ((sg)->dma_address) |
| * Normally, you have an iommu on 64 bit machines, but not on 32 bit |
| * machines. Architectures that are differnt should override this. |
| #if __BITS_PER_LONG == 64 |
| #define sg_dma_len(sg) ((sg)->dma_length) |
| #define sg_dma_len(sg) ((sg)->length) |
| #ifndef ISA_DMA_THRESHOLD |
| #define ISA_DMA_THRESHOLD (~0UL) |
| #define ARCH_HAS_SG_CHAIN |
| #endif /* __ASM_GENERIC_SCATTERLIST_H */ |