Greg Ungerer | 375d1c7 | 2009-01-29 16:05:35 +1000 | [diff] [blame] | 1 | #ifndef _M68K_SCATTERLIST_H |
| 2 | #define _M68K_SCATTERLIST_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | |
| 6 | struct scatterlist { |
| 7 | #ifdef CONFIG_DEBUG_SG |
| 8 | unsigned long sg_magic; |
Sam Ravnborg | 4914802 | 2009-01-16 21:58:10 +1000 | [diff] [blame] | 9 | #endif |
Greg Ungerer | 375d1c7 | 2009-01-29 16:05:35 +1000 | [diff] [blame] | 10 | unsigned long page_link; |
| 11 | unsigned int offset; |
| 12 | unsigned int length; |
| 13 | |
Geert Uytterhoeven | 15ee04c | 2009-02-05 10:05:25 +1000 | [diff] [blame] | 14 | dma_addr_t dma_address; /* A place to hang host-specific addresses at. */ |
Greg Ungerer | 375d1c7 | 2009-01-29 16:05:35 +1000 | [diff] [blame] | 15 | }; |
| 16 | |
| 17 | /* This is bogus and should go away. */ |
| 18 | #define ISA_DMA_THRESHOLD (0x00ffffff) |
| 19 | |
| 20 | #define sg_dma_address(sg) ((sg)->dma_address) |
| 21 | #define sg_dma_len(sg) ((sg)->length) |
| 22 | |
| 23 | #endif /* !(_M68K_SCATTERLIST_H) */ |