]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/parisc/include/asm/scatterlist.h
parisc: move include/asm-parisc to arch/parisc/include/asm
[net-next-2.6.git] / arch / parisc / include / asm / scatterlist.h
CommitLineData
1da177e4
LT
1#ifndef _ASM_PARISC_SCATTERLIST_H
2#define _ASM_PARISC_SCATTERLIST_H
3
4#include <asm/page.h>
a9dfd281 5#include <asm/types.h>
1da177e4
LT
6
7struct scatterlist {
d6ec0842
JA
8#ifdef CONFIG_DEBUG_SG
9 unsigned long sg_magic;
10#endif
18dabf47 11 unsigned long page_link;
1da177e4
LT
12 unsigned int offset;
13
14 unsigned int length;
15
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 */
19};
20
b61e8f48 21#define sg_virt_addr(sg) ((unsigned long)sg_virt(sg))
1da177e4
LT
22#define sg_dma_address(sg) ((sg)->iova)
23#define sg_dma_len(sg) ((sg)->iova_length)
24
25#define ISA_DMA_THRESHOLD (~0UL)
26
27#endif /* _ASM_PARISC_SCATTERLIST_H */