Add CONFIG_DEBUG_SG sg validation
[linux-2.6.git] / include / asm-m68knommu / scatterlist.h
1 #ifndef _M68KNOMMU_SCATTERLIST_H
2 #define _M68KNOMMU_SCATTERLIST_H
3
4 #include <linux/mm.h>
5 #include <asm/types.h>
6
7 struct scatterlist {
8 #ifdef CONFIG_DEBUG_SG
9         unsigned long   sg_magic;
10 #endif
11         unsigned long   page_link;
12         unsigned int    offset;
13         dma_addr_t      dma_address;
14         unsigned int    length;
15 };
16
17 #define sg_address(sg)          (page_address((sg)->page) + (sg)->offset)
18 #define sg_dma_address(sg)      ((sg)->dma_address)
19 #define sg_dma_len(sg)          ((sg)->length)
20
21 #define ISA_DMA_THRESHOLD       (0xffffffff)
22
23 #endif /* !(_M68KNOMMU_SCATTERLIST_H) */