Linux 2.6.25.20
[linux/fpc-iii.git] / include / asm-parisc / scatterlist.h
blob62269b31ebf4a89d404ec157cd653cba848de2f7
1 #ifndef _ASM_PARISC_SCATTERLIST_H
2 #define _ASM_PARISC_SCATTERLIST_H
4 #include <asm/page.h>
5 #include <asm/types.h>
7 struct scatterlist {
8 #ifdef CONFIG_DEBUG_SG
9 unsigned long sg_magic;
10 #endif
11 unsigned long page_link;
12 unsigned int offset;
14 unsigned int length;
16 /* an IOVA can be 64-bits on some PA-Risc platforms. */
17 dma_addr_t iova; /* I/O Virtual Address */
18 __u32 iova_length; /* bytes mapped */
21 #define sg_virt_addr(sg) ((unsigned long)sg_virt(sg))
22 #define sg_dma_address(sg) ((sg)->iova)
23 #define sg_dma_len(sg) ((sg)->iova_length)
25 #define ISA_DMA_THRESHOLD (~0UL)
27 #endif /* _ASM_PARISC_SCATTERLIST_H */