Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _M68KNOMMU_SCATTERLIST_H |
2 | #define _M68KNOMMU_SCATTERLIST_H | |
3 | ||
7cf27cb4 | 4 | #include <linux/mm.h> |
a9dfd281 | 5 | #include <asm/types.h> |
7cf27cb4 | 6 | |
1da177e4 | 7 | struct 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 | dma_addr_t dma_address; | |
14 | unsigned int length; | |
15 | }; | |
16 | ||
7cf27cb4 GU |
17 | #define sg_dma_address(sg) ((sg)->dma_address) |
18 | #define sg_dma_len(sg) ((sg)->length) | |
19 | ||
1da177e4 LT |
20 | #define ISA_DMA_THRESHOLD (0xffffffff) |
21 | ||
22 | #endif /* !(_M68KNOMMU_SCATTERLIST_H) */ |