Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _M68KNOMMU_SCATTERLIST_H |
| 2 | #define _M68KNOMMU_SCATTERLIST_H |
| 3 | |
Greg Ungerer | 7cf27cb | 2005-09-13 11:14:08 +1000 | [diff] [blame] | 4 | #include <linux/mm.h> |
Jean Delvare | a9dfd28 | 2007-03-06 02:45:12 -0800 | [diff] [blame] | 5 | #include <asm/types.h> |
Greg Ungerer | 7cf27cb | 2005-09-13 11:14:08 +1000 | [diff] [blame] | 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | struct scatterlist { |
Jens Axboe | d6ec084 | 2007-10-22 20:01:06 +0200 | [diff] [blame] | 8 | #ifdef CONFIG_DEBUG_SG |
| 9 | unsigned long sg_magic; |
| 10 | #endif |
Jens Axboe | 18dabf4 | 2007-10-22 19:57:20 +0200 | [diff] [blame] | 11 | unsigned long page_link; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | unsigned int offset; |
| 13 | dma_addr_t dma_address; |
| 14 | unsigned int length; |
| 15 | }; |
| 16 | |
Greg Ungerer | 7cf27cb | 2005-09-13 11:14:08 +1000 | [diff] [blame] | 17 | #define sg_dma_address(sg) ((sg)->dma_address) |
| 18 | #define sg_dma_len(sg) ((sg)->length) |
| 19 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #define ISA_DMA_THRESHOLD (0xffffffff) |
| 21 | |
| 22 | #endif /* !(_M68KNOMMU_SCATTERLIST_H) */ |