diff options
Diffstat (limited to 'include/asm-alpha/scatterlist.h')
-rw-r--r-- | include/asm-alpha/scatterlist.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/asm-alpha/scatterlist.h b/include/asm-alpha/scatterlist.h new file mode 100644 index 000000000000..6afb8bd3aaf9 --- /dev/null +++ b/include/asm-alpha/scatterlist.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef _ALPHA_SCATTERLIST_H | ||
2 | #define _ALPHA_SCATTERLIST_H | ||
3 | |||
4 | #include <asm/page.h> | ||
5 | |||
6 | struct scatterlist { | ||
7 | struct page *page; | ||
8 | unsigned int offset; | ||
9 | |||
10 | unsigned int length; | ||
11 | |||
12 | dma_addr_t dma_address; | ||
13 | __u32 dma_length; | ||
14 | }; | ||
15 | |||
16 | #define sg_dma_address(sg) ((sg)->dma_address) | ||
17 | #define sg_dma_len(sg) ((sg)->dma_length) | ||
18 | |||
19 | #define ISA_DMA_THRESHOLD (~0UL) | ||
20 | |||
21 | #endif /* !(_ALPHA_SCATTERLIST_H) */ | ||