Move ACCESS_ONCE() to <linux/compiler.h>
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / asm-m68knommu / scatterlist.h
blobafc4788b0d2c2f2a9c629c3836ab5d6b0c88e7e8
1 #ifndef _M68KNOMMU_SCATTERLIST_H
2 #define _M68KNOMMU_SCATTERLIST_H
4 #include <linux/mm.h>
5 #include <asm/types.h>
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;
17 #define sg_dma_address(sg) ((sg)->dma_address)
18 #define sg_dma_len(sg) ((sg)->length)
20 #define ISA_DMA_THRESHOLD (0xffffffff)
22 #endif /* !(_M68KNOMMU_SCATTERLIST_H) */