| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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) */ | ||||