import of ftp.dlink.com/GPL/DSMG-600_reB/ppclinux.tar.gz
[linux-2.4.21-pre4.git] / include / asm-sparc / scatterlist.h
1 /* $Id: scatterlist.h,v 1.1.1.1 2005/04/11 02:50:56 jack 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) */