[PATCH] m68knommu: implement scatter/gather support macros

Implement the scattergather support macros for m68knommu targets.
Patch originally submitted by Leon Woestenberg <leonw@mailcan.com>.

Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Greg Ungerer and committed by Linus Torvalds 7cf27cb4 962d69ed

+6
+6
include/asm-m68knommu/scatterlist.h
··· 1 #ifndef _M68KNOMMU_SCATTERLIST_H 2 #define _M68KNOMMU_SCATTERLIST_H 3 4 struct scatterlist { 5 struct page *page; 6 unsigned int offset; 7 dma_addr_t dma_address; 8 unsigned int length; 9 }; 10 11 #define ISA_DMA_THRESHOLD (0xffffffff) 12
··· 1 #ifndef _M68KNOMMU_SCATTERLIST_H 2 #define _M68KNOMMU_SCATTERLIST_H 3 4 + #include <linux/mm.h> 5 + 6 struct scatterlist { 7 struct page *page; 8 unsigned int offset; 9 dma_addr_t dma_address; 10 unsigned int length; 11 }; 12 + 13 + #define sg_address(sg) (page_address((sg)->page) + (sg)->offset 14 + #define sg_dma_address(sg) ((sg)->dma_address) 15 + #define sg_dma_len(sg) ((sg)->length) 16 17 #define ISA_DMA_THRESHOLD (0xffffffff) 18