blob: c82609ca1d0faa6ae9a85bd23b062cf386081608 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _SPARC_SCATTERLIST_H
2#define _SPARC_SCATTERLIST_H
3
4#include <linux/types.h>
5
6struct scatterlist {
Jens Axboed6ec0842007-10-22 20:01:06 +02007#ifdef CONFIG_DEBUG_SG
8 unsigned long sg_magic;
9#endif
Jens Axboe18dabf42007-10-22 19:57:20 +020010 unsigned long page_link;
Linus Torvalds1da177e2005-04-16 15:20:36 -070011 unsigned int offset;
12
13 unsigned int length;
14
15 __u32 dvma_address; /* A place to hang host-specific addresses at. */
16 __u32 dvma_length;
17};
18
19#define sg_dma_address(sg) ((sg)->dvma_address)
20#define sg_dma_len(sg) ((sg)->dvma_length)
21
22#define ISA_DMA_THRESHOLD (~0UL)
23
Jens Axboe0912a5d2007-05-14 15:44:38 +020024#define ARCH_HAS_SG_CHAIN
25
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#endif /* !(_SPARC_SCATTERLIST_H) */