Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _M68K_SCATTERLIST_H |
| 2 | #define _M68K_SCATTERLIST_H |
| 3 | |
Geert Uytterhoeven | b590d2b | 2007-05-08 20:27:03 -0700 | [diff] [blame] | 4 | #include <linux/types.h> |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | struct scatterlist { |
Jens Axboe | d6ec084 | 2007-10-22 20:01:06 +0200 | [diff] [blame] | 7 | #ifdef CONFIG_DEBUG_SG |
| 8 | unsigned long sg_magic; |
| 9 | #endif |
Jens Axboe | 18dabf4 | 2007-10-22 19:57:20 +0200 | [diff] [blame] | 10 | unsigned long page_link; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | unsigned int offset; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | unsigned int length; |
| 13 | |
Roman Zippel | b035c96 | 2006-06-25 05:46:56 -0700 | [diff] [blame] | 14 | __u32 dma_address; /* A place to hang host-specific addresses at. */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | }; |
| 16 | |
| 17 | /* This is bogus and should go away. */ |
| 18 | #define ISA_DMA_THRESHOLD (0x00ffffff) |
| 19 | |
Roman Zippel | b035c96 | 2006-06-25 05:46:56 -0700 | [diff] [blame] | 20 | #define sg_dma_address(sg) ((sg)->dma_address) |
| 21 | #define sg_dma_len(sg) ((sg)->length) |
| 22 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #endif /* !(_M68K_SCATTERLIST_H) */ |