diff options
Diffstat (limited to 'include/asm-blackfin/scatterlist.h')
| -rw-r--r-- | include/asm-blackfin/scatterlist.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-blackfin/scatterlist.h b/include/asm-blackfin/scatterlist.h index 60e07b92044c..04f448711cd0 100644 --- a/include/asm-blackfin/scatterlist.h +++ b/include/asm-blackfin/scatterlist.h | |||
| @@ -4,7 +4,10 @@ | |||
| 4 | #include <linux/mm.h> | 4 | #include <linux/mm.h> |
| 5 | 5 | ||
| 6 | struct scatterlist { | 6 | struct scatterlist { |
| 7 | struct page *page; | 7 | #ifdef CONFIG_DEBUG_SG |
| 8 | unsigned long sg_magic; | ||
| 9 | #endif | ||
| 10 | unsigned long page_link; | ||
| 8 | unsigned int offset; | 11 | unsigned int offset; |
| 9 | dma_addr_t dma_address; | 12 | dma_addr_t dma_address; |
| 10 | unsigned int length; | 13 | unsigned int length; |
| @@ -17,7 +20,6 @@ struct scatterlist { | |||
| 17 | * returns, or alternatively stop on the first sg_dma_len(sg) which | 20 | * returns, or alternatively stop on the first sg_dma_len(sg) which |
| 18 | * is 0. | 21 | * is 0. |
| 19 | */ | 22 | */ |
| 20 | #define sg_address(sg) (page_address((sg)->page) + (sg)->offset) | ||
| 21 | #define sg_dma_address(sg) ((sg)->dma_address) | 23 | #define sg_dma_address(sg) ((sg)->dma_address) |
| 22 | #define sg_dma_len(sg) ((sg)->length) | 24 | #define sg_dma_len(sg) ((sg)->length) |
| 23 | 25 | ||
