Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_CRIS_SCATTERLIST_H |
| 2 | #define __ASM_CRIS_SCATTERLIST_H |
| 3 | |
| 4 | struct scatterlist { |
Jens Axboe | d6ec084 | 2007-10-22 20:01:06 +0200 | [diff] [blame] | 5 | #ifdef CONFIG_DEBUG_SG |
| 6 | unsigned long sg_magic; |
| 7 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | char * address; /* Location data is to be transferred to */ |
| 9 | unsigned int length; |
| 10 | |
| 11 | /* The following is i386 highmem junk - not used by us */ |
Jens Axboe | 18dabf4 | 2007-10-22 19:57:20 +0200 | [diff] [blame] | 12 | unsigned long page_link; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | unsigned int offset;/* for highmem, page offset */ |
| 14 | |
| 15 | }; |
| 16 | |
| 17 | #define sg_dma_address(sg) ((sg)->address) |
| 18 | #define sg_dma_len(sg) ((sg)->length) |
| 19 | /* i386 junk */ |
| 20 | |
| 21 | #define ISA_DMA_THRESHOLD (0x1fffffff) |
| 22 | |
| 23 | #endif /* !(__ASM_CRIS_SCATTERLIST_H) */ |