cm4000_cs: fix error paths
[linux-2.6/mini2440.git] / include / asm-parisc / scatterlist.h
blobe7211c748446d50cf38222395861fe684630e195
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 struct page *page;
9 unsigned int offset;
11 unsigned int length;
13 /* an IOVA can be 64-bits on some PA-Risc platforms. */
14 dma_addr_t iova; /* I/O Virtual Address */
15 __u32 iova_length; /* bytes mapped */
18 #define sg_virt_addr(sg) ((unsigned long)(page_address(sg->page) + sg->offset))
19 #define sg_dma_address(sg) ((sg)->iova)
20 #define sg_dma_len(sg) ((sg)->iova_length)
22 #define ISA_DMA_THRESHOLD (~0UL)
24 #endif /* _ASM_PARISC_SCATTERLIST_H */