Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _M68K_SCATTERLIST_H |
2 | #define _M68K_SCATTERLIST_H | |
3 | ||
b590d2ba GU |
4 | #include <linux/types.h> |
5 | ||
1da177e4 | 6 | struct scatterlist { |
1da177e4 LT |
7 | struct page *page; |
8 | unsigned int offset; | |
1da177e4 LT |
9 | unsigned int length; |
10 | ||
b035c96b | 11 | __u32 dma_address; /* A place to hang host-specific addresses at. */ |
1da177e4 LT |
12 | }; |
13 | ||
14 | /* This is bogus and should go away. */ | |
15 | #define ISA_DMA_THRESHOLD (0x00ffffff) | |
16 | ||
b035c96b RZ |
17 | #define sg_dma_address(sg) ((sg)->dma_address) |
18 | #define sg_dma_len(sg) ((sg)->length) | |
19 | ||
1da177e4 | 20 | #endif /* !(_M68K_SCATTERLIST_H) */ |