Michal Simek | 69b1b78 | 2009-03-27 14:25:35 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 Michal Simek <monstr@monstr.eu> |
| 3 | * Copyright (C) 2006 Atmark Techno, Inc. |
| 4 | * |
| 5 | * This file is subject to the terms and conditions of the GNU General Public |
| 6 | * License. See the file "COPYING" in the main directory of this archive |
| 7 | * for more details. |
| 8 | */ |
| 9 | |
| 10 | #ifndef _ASM_MICROBLAZE_SCATTERLIST_H |
| 11 | #define _ASM_MICROBLAZE_SCATTERLIST_H |
| 12 | |
| 13 | struct scatterlist { |
| 14 | #ifdef CONFIG_DEBUG_SG |
| 15 | unsigned long sg_magic; |
| 16 | #endif |
| 17 | unsigned long page_link; |
| 18 | dma_addr_t dma_address; |
| 19 | unsigned int offset; |
| 20 | unsigned int length; |
| 21 | }; |
| 22 | |
| 23 | #define sg_dma_address(sg) ((sg)->dma_address) |
| 24 | #define sg_dma_len(sg) ((sg)->length) |
| 25 | |
| 26 | #define ISA_DMA_THRESHOLD (~0UL) |
| 27 | |
| 28 | #endif /* _ASM_MICROBLAZE_SCATTERLIST_H */ |