blob: 81bd058f9382e50bd9e257d50296d604a5e94cf3 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _SPARC64_SCATTERLIST_H
2#define _SPARC64_SCATTERLIST_H
3
4#include <asm/page.h>
Jean Delvarea9dfd282007-03-06 02:45:12 -08005#include <asm/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
7struct scatterlist {
Jens Axboed6ec0842007-10-22 20:01:06 +02008#ifdef CONFIG_DEBUG_SG
9 unsigned long sg_magic;
10#endif
Jens Axboe18dabf42007-10-22 19:57:20 +020011 unsigned long page_link;
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 unsigned int offset;
13
14 unsigned int length;
15
16 dma_addr_t dma_address;
17 __u32 dma_length;
18};
19
20#define sg_dma_address(sg) ((sg)->dma_address)
21#define sg_dma_len(sg) ((sg)->dma_length)
22
23#define ISA_DMA_THRESHOLD (~0UL)
24
Jens Axboe2c941a22007-08-07 09:37:10 +020025#define ARCH_HAS_SG_CHAIN
26
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#endif /* !(_SPARC64_SCATTERLIST_H) */