Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
[linux-2.6] / 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_dma_address(sg)      ((sg)->dma_address)
18 #define sg_dma_len(sg)          ((sg)->length)
19
20 #define ISA_DMA_THRESHOLD       (0xffffffff)
21
22 #endif /* !(_M68KNOMMU_SCATTERLIST_H) */