blob: 6df23f070b1a31b6c916528ca870b52b538dc6f4 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* $Id: scatterlist.h,v 1.11 2001/12/17 07:05:15 davem Exp $ */
2#ifndef _SPARC64_SCATTERLIST_H
3#define _SPARC64_SCATTERLIST_H
4
5#include <asm/page.h>
Jean Delvarea9dfd282007-03-06 02:45:12 -08006#include <asm/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
8struct scatterlist {
Jens Axboed6ec0842007-10-22 20:01:06 +02009#ifdef CONFIG_DEBUG_SG
10 unsigned long sg_magic;
11#endif
Jens Axboe18dabf42007-10-22 19:57:20 +020012 unsigned long page_link;
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 unsigned int offset;
14
15 unsigned int length;
16
17 dma_addr_t dma_address;
18 __u32 dma_length;
19};
20
21#define sg_dma_address(sg) ((sg)->dma_address)
22#define sg_dma_len(sg) ((sg)->dma_length)
23
24#define ISA_DMA_THRESHOLD (~0UL)
25
Jens Axboe2c941a22007-08-07 09:37:10 +020026#define ARCH_HAS_SG_CHAIN
27
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#endif /* !(_SPARC64_SCATTERLIST_H) */