1 /* $Id: scatterlist.h,v 1.7 2001/10/30 04:34:57 davem Exp $ */ 2 #ifndef _SPARC_SCATTERLIST_H 3 #define _SPARC_SCATTERLIST_H 4 5 #include <linux/types.h> 6 7 struct scatterlist { 8 /* This will disappear in 2.5.x */ 9 char *address; 10 11 /* These two are only valid if ADDRESS member of this 12 * struct is NULL. 13 */ 14 struct page *page; 15 unsigned int offset; 16 17 unsigned int length; 18 19 __u32 dvma_address; /* A place to hang host-specific addresses at. */ 20 __u32 dvma_length; 21 }; 22 23 #define sg_dma_address(sg) ((sg)->dvma_address) 24 #define sg_dma_len(sg) ((sg)->dvma_length) 25 26 #define ISA_DMA_THRESHOLD (~0UL) 27 28 #endif /* !(_SPARC_SCATTERLIST_H) */ 29