fs: use kmem_cache_zalloc instead
[pv_ops_mirror.git] / include / asm-m68knommu / scatterlist.h
blob4da79d3d3f34d03f07c7b34529f4e30502e2e3bf
1 #ifndef _M68KNOMMU_SCATTERLIST_H
2 #define _M68KNOMMU_SCATTERLIST_H
4 #include <linux/mm.h>
5 #include <asm/types.h>
7 struct scatterlist {
8 struct page *page;
9 unsigned int offset;
10 dma_addr_t dma_address;
11 unsigned int length;
14 #define sg_address(sg) (page_address((sg)->page) + (sg)->offset)
15 #define sg_dma_address(sg) ((sg)->dma_address)
16 #define sg_dma_len(sg) ((sg)->length)
18 #define ISA_DMA_THRESHOLD (0xffffffff)
20 #endif /* !(_M68KNOMMU_SCATTERLIST_H) */