blob: 440747ca6349058d31f04b6191ed2de0870ce557 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ALPHA_SCATTERLIST_H
2#define _ALPHA_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
25#endif /* !(_ALPHA_SCATTERLIST_H) */